Pep*_*i_1 1 c c++ debugging driver windows-7
我有这个不能编译的驱动程序.我一直在网上搜索错误,并没有找到解决方案.有什么想法吗?
#include <wdm.h>
VOID Unload(IN PDRIVER_OBJECT pDriverObject)
{
DbgPrint("Received signal to unload the driver");
return;
}
NTSTATUS DriverEntry(IN PDRIVER_OBJECT pDriverObject, IN PUNICODE_STRING regPath)
{
DbgPrint("Driver has been loaded");
(*pDriverObject).DriverUnload = Unload;
return(STATUS_SUCCESS);
}
Run Code Online (Sandbox Code Playgroud)
错误如下:
1>------ Build started: Project: KMDF Test, Configuration: Win7 Debug Win32 ------
1> Stamping Win7Debug\KMDFTest.inf [Version] section with DriverVer=12/04/2012,10.12.25.726
1> cl wpp
1>wpp : error : (WppCreateFile)Cannot open file trace.h, error 2
2>------ Build started: Project: KMDF Test Package, Configuration: Win7 Debug Win32 ------
2>C:\Program Files\Windows Kits\8.0\build\WindowsDriver8.0.common.targets(1347,5): error MSB3030: Could not copy the file "C:\Users\Administrator\documents\visual studio 2012\Projects\KMDF Test\Win7Debug\KMDFTest.sys" because it was not found.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)
小智 11
以下是我修复此问题的方法:
在Solution Explorer窗口中,右键单击您的驱动程序项目,然后选择Properties.在Wpp Tracing> All Options中,将Run Wpp tracing设置为No.单击OK.
萨米