阅读:1986回复:2
关于IoCreateNotificationEvent
请问各位大侠,以下代码为什么总是不成功?有没有相关代码可以参考?
HANDLE hErrorHandle; UNICODE_STRING SourceString; //////////////////////////////// RtlInitUnicodeString(&SourceString, L"ErrorEvent"); //////////////////////////////// if( NULL == IoCreateNotificationEvent(&SourceString,&hErrorHandle)) { return false; } return true; 谢谢! |
|
|
沙发#
发布于:2001-07-17 11:27
不是RtlInitUnicodeString(&SourceString, L"ErrorEvent");
而是RtlInitUnicodeString(&SourceString, L"\\BaseNamedObjects\\ErrorEvent"); |
|
板凳#
发布于:2001-07-17 14:43
非常感谢版主的大力帮助,感激不尽!
|
|
|