Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1550870
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

分类: Windows平台

2015-02-05 23:02:43

Windows Driver Kit: Driver Development Tools

Conditional Compilation and the Build Environment

You should conditionally compile the debugging code in your driver by testing the DBG preprocessor constant.

The value of DBG depends on the build environment window you use to build your driver:

  • If you create your driver by running the Build utility in a checked build environment, DBG will equal 1.
  • If you create your driver by running the Build utility from a free build environment, DBG will equal 0 (or will be undefined if neither wdm.h nor ntddk.h is included).


The debugging routines , , , , , and are actually macros that are conditionally defined depending on the value of DBG. If it is 0, these macros are no-ops. Therefore, these macros are active only in the checked build of a driver.

Note  All debugging routines beginning with the letters "Kd" have no effect in a free build of a driver, except for KdRefreshDebuggerNotPresent.

For more information about the build environments that allow you to create free and checked builds of a driver, see .

阅读(1285) | 评论(0) | 转发(0) |
0

上一篇:windbg 入门

下一篇:VXD WDM WDF 发展历史

给主人留下些什么吧!~~