Windows driver error C1083

I created a simple Hello World driver.

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 

Sources

 TARGETNAME = hello TARGETPATH = obj TARGETTYPE = DRIVER INCLUDES = %BUILD%\inc LIBS = %BUILD%\lib SOURCES = hello.c 

If I create a driver using a verified build environment, I get:

Error C1083: Cannot open include file: 'codeanalysis \ sourceannotations.h': No such file or directory

sourceannotations.h included in C:\WinDDK\7600.16385.1\inc\crt and C:\Program Files\Microsoft Visual Studio 10.0\VC\include\CodeAnalysis , but I can only use the included files from the Winddk directory.

Do you have any suggestion what should I do?

+4
source share
1 answer

Perhaps I did not install DDK correctly, because after reinstalling DDK I compiled the files without any problems.

0
source

Source: https://habr.com/ru/post/1394813/


All Articles