-
-
[求助]诡异的编译错误
-
发表于:
2014-7-4 17:35
4795
-
#include <F:\WINDDK\3790.1830\inc\ddk\ntifs.h>
NTSTATUS DriverEntry( IN PDRIVER_OBJECT theDriverObject, IN PUNICODE_STRING theRegistryPath )
{
UNICODE_STRING Ring0_Mutex_Name=RTL_CONSTANT_STRING(L"\\BaseNamedObjects\\gdvGH515DFG");
OBJECT_ATTRIBUTES EVENT_OBJECT_ATTRIBUTES;
HANDLE Ring0_Mutex_Handle;
EVENT_OBJECT_ATTRIBUTES={ sizeof(OBJECT_ATTRIBUTES),NULL,&Ring0_Mutex_Name,OBJ_CASE_INSENSITIVE,NULL,NULL};
return 0;
}
怎样都编译不过...
只有一个错误,提示:
e:\testd\testd.c(8) : error C2059: syntax error : '{'
testd.c(8) 第8行就是这行 :
EVENT_OBJECT_ATTRIBUTES={ sizeof(OBJECT_ATTRIBUTES),NULL,&Ring0_Mutex_Name,OBJ_CASE_INSENSITIVE,NULL,NULL};
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课