WDK7600驱动程序移植到VS2019平台

把以前老的WDK7600驱动程序移植到VS2019平台:

创建新项目:C++     widows      Driver
Empty WDM Driver

项目->添加现有项,把驱动文件全部添加到现有项目中。

编译前
a.移除项目自动生成的.inf文件
b.配置属性 - C/C++ -常规
警告等级 设置为 等级3
将警告视为错误 设置为 否

c.配置属性 - 链接器 -常规
将链接器警告视为错误 设置为 否


链接器——》输入-》附加依赖项 :%(AdditionalDependencies);$(DDK_LIB_PATH)\ks.lib;
$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\ksguid.lib;$(DDK_LIB_PATH)\bdasup.lib;
$(DDK_LIB_PATH)\ntstrsafe.lib;$(DDK_LIB_PATH)\rtlver.lib;msvcrt.lib

%(AdditionalDependencies)
$(DDK_LIB_PATH)\ks.lib
$(DDK_LIB_PATH)\ntoskrnl.lib
$(DDK_LIB_PATH)\ksguid.lib
$(DDK_LIB_PATH)\bdasup.lib
$(DDK_LIB_PATH)\ntstrsafe.lib
$(DDK_LIB_PATH)\rtlver.lib
msvcrt.lib

你可能感兴趣的:(windows)