打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Building a New Driver

Building a New Driver

To build a driver, open a build environment, then use the cd commandto set your default directory to one containing a sources file or a dirs file.

After setting the directory, invoke the Build utility with the -cZoption as in the following example:

E:\NTDDK>cd mydriver\src
E:\NTDDK\mydriver\src>build -cZ

Running build -cZ compiles and links your driver. It creates a "cleanbuild" (by deleting all pre-existing .obj files) and inhibits dependencychecking of source and header files.

Output files are placed in a subdirectory named either \objfre or\objchk, depending on whether you are using the free or checked buildenvironment.

For more information, see How to Use the BuildUtility.

Building a WDM Driver

To build a WDM driver, use the DRIVERTYPEmacro in your sources file:

DRIVERTYPE=WDM

When this macro is set, the Build utility sets the path for include filesequal to the value of WDM_INC_PATH instead ofDDK_INC_PATH. This means that the WDM-onlyheader files will be used in your driver.

For information about creating drivers that will run on multiple versions ofWDM, see Determining the WDM Versionand Differences in WDM Versions.


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
指压振颤推拿手法治疗血管神经性头痛疗效观察_韩广顺
doll_Andy
cz 805
cz
腾讯内容开放平台
linux源码Makefile的详细分析
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服