4
我创建了简单的“Hello world”windows驱动程序。Windows驱动程序C1083错误
的hello.c
#include <ntddk.h>
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
DbgPrint("Hello, World\n");
return STATUS_SUCCESS;
}
的makefile
!INCLUDE $(NTMAKEENV)\makefile.def
来源
TARGETNAME = hello
TARGETPATH = obj
TARGETTYPE = DRIVER
INCLUDES = %BUILD%\inc
LIBS = %BUILD%\lib
SOURCES = hello.c
如果我建立由选中生成恩司机vironment,我得到:
错误C1083:无法打开包含文件: 'codeanalysis \ sourceannotations.h':没有这样的文件或目录
sourceannotations.h
包括在C:\WinDDK\7600.16385.1\inc\crt
和C:\Program Files\Microsoft Visual Studio 10.0\VC\include\CodeAnalysis
,但我只能使用Winddk目录中包含的文件。
你有什么建议我该怎么做?