extern "C"
{
#include <ntddk.h>
}
// 驱动程序加载时调用DriverEntry例程
NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObj, PUNICODE_STRING pRegistryString)
{ // 请视情况返回DriverEntry例程执行结果
return STATUS_DEVICE_CONFIGURATION_ERROR;
}出现以下错误 :--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
Test.cpp
c:\ntddk\inc\ddk\ntddk.h(4565) : error C2146: syntax error : missing ';' before identifier 'NTSTATUS'
c:\ntddk\inc\ddk\ntddk.h(4565) : error C2501: 'NTSYSCALLAPI' : missing storage-class or type specifiers
c:\ntddk\inc\ddk\ntddk.h(4565) : fatal error C1004: unexpected end of file found
Error executing cl.exe.Test.sys - 3 error(s), 0 warning(s)
The following environment variables were not found
$(ddkroot)
麻烦大侠了