突然有一天,编32位驱动正常,编64位驱动就编不过了,说是 wdm.h 找不到,我都没改过设置环境,不知道怎么搞的就变了。没办法只有改回来了。
Executable Directories:
32 Bit:$(ExecutablePath);$(WDKContentRoot)bin\x86;$(WDKContentRoot)bin\x86\x86;$(WDKContentRoot)tools\pfd\bin\bin\x86;$(WDKContentRoot)tools\tracing\x86
64 Bit:$(ExecutablePath);$(WDKContentRoot)bin\x64;$(WDKContentRoot)bin\x64;$(WDKContentRoot)tools\pfd\bin\bin\AMD64;$(WDKContentRoot)tools\tracing\x64
Include Directories:
C:\boost_1_57_0;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);C:\Program Files (x86)\Windows Kits\8.0\Include\km;C:\Program Files (x86)\Windows Kits\8.0\Include\wdf\kmdf\1.11
这只是我的环境,具体安装的wdk不同,路径也不同。