Windows Driver Kit DBG宏

来源:互联网 发布:获取手机号码软件 编辑:程序博客网 时间:2024/05/15 09:02
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 ASSERT, ASSERTMSG, KdBreakPoint, KdBreakPointWithStatus, KdPrint, and KdPrintEx 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 Setting Up the Build Environment.

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(492) | 评论(0) | 转发(0) |
0

上一篇:windbg 入门

下一篇:VXD WDM WDF 发展历史

相关热门文章
  • LNK1123: 转换到 COFF 期间失...
  • WIN7访问共享:0x80070035 找不...
  • Delphi 2010下载+完美破解...
  • vs2010调试C++程序时提示 无...
  • VISIO,不规则封闭图形填充方...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击