Thank you,
Frank
> I created an Event with IoCreateNotificationEvent.
> I am able to access it from the user mode but read- only.
Use ZwCreateEvent() instead, then call ObReferenceObjectByHandle().
ZwCreateEvent() is documented in Gary Nebbett's "Windows NT/2000 Native
API Reference".
--
Cheers,
Felix.
If you post a reply, kindly refrain from emailing it, too.
Please consider migrating to microsoft.public.platformsdk.*
where the MS folks plan on hanging around. See you there!
Bye,
Frank
P.s. Gary Nebbetts book is really handy isn't it ?
"Felix Kasza [MVP]" <fel...@mvps.org> schrieb im Newsbeitrag
news:3a2877a0....@207.46.180.24...
I tried it again but it still doesn't work.
The event is read- only from user mode.
Here's what I've done :
InitializeObjectAttributes(&EventAttributes,
&name,
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
Status = ZwCreateEvent(&hEvent,
EVENT_ALL_ACCESS,
&EventAttributes,
NotificationEvent,
TRUE);
Status = ObReferenceObjectByHandle(hEvent,
EVENT_ALL_ACCESS,
0,
KernelMode,
&kEvent,
0);
Is there something wrong with the code ??
Thank you,
Frank
"Frank Jensen" <f...@stueber.de> schrieb im Newsbeitrag
news:#9rQW42WAHA.280@cppssbbsa05...
you never said anything about the users creating/accessing your event.
Methinks you need a valid security descriptor with a properly filled-in
DACL in your OBJECT_ATTRIBUTES.