在线笔记
全部博文(596)
分类: Windows平台
2015-02-05 23:02:43
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:
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 .