Hi,
Anyone knows how to share a named event object between
kernel and user mode program in Windows 2K? I try to to
IoCreateNotificationEvent() at kernel to create a named event
object and use OpenEvent() at user mode. however, the OpenEvent
call fail. Any clues? Thanks
Probably the security on the event object in question prevents your opening
it from user mode. If possible create the event in the other direction: from
user mode. Otherwise you will have to figure out how to change the security
on the event object.
Mark Roddy
Windows 2000/NT Consultant
Hollis Technology Solutions
www.hollistech.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@hotmail.com
Sent: Friday, July 07, 2000 7:01 PM
To: NT Developers Interest List
Subject: [ntdev] sharing named event object
Hi,
Anyone knows how to share a named event object between
kernel and user mode program in Windows 2K? I try to to
IoCreateNotificationEvent() at kernel to create a named event
object and use OpenEvent() at user mode. however, the OpenEvent
call fail. Any clues? Thanks
You are currently subscribed to ntdev as: xxxxx@wattanuck.mv.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
I guess you are creating events in the system context (possibly in
DriverEntry)
All events so created will have system’s security permission and cannot
be opened from an non- administrative account.
Create events in driver routines which run in the process’s context
(possibly in read, ioctl handler etc ). This will give the event the
process’s security attribute and so can be opened in the process’s user
mode.
However IoCreateNotificationEvent is not supported in 98 so it is always
better to create events in user mode and access them in kernel mode.
regards
jeseem
mailto:xxxxx@nestec.net
http://www.nesttech.com
----- Original Message -----
From: “Mark Roddy”
To: “NT Developers Interest List”
Sent: Friday, July 07, 2000 8:16 PM
Subject: [ntdev] RE: sharing named event object
> Probably the security on the event object in question prevents your
opening
> it from user mode. If possible create the event in the other direction:
from
> user mode. Otherwise you will have to figure out how to change the
security
> on the event object.
>
> Mark Roddy
> Windows 2000/NT Consultant
> Hollis Technology Solutions
> www.hollistech.com
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of
> xxxxx@hotmail.com
> Sent: Friday, July 07, 2000 7:01 PM
> To: NT Developers Interest List
> Subject: [ntdev] sharing named event object
>
>
> Hi,
>
> Anyone knows how to share a named event object between
> kernel and user mode program in Windows 2K? I try to to
> IoCreateNotificationEvent() at kernel to create a named event
> object and use OpenEvent() at user mode. however, the OpenEvent
> call fail. Any clues? Thanks
>
> —
> You are currently subscribed to ntdev as: xxxxx@wattanuck.mv.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>
> IoCreateNotificationEvent() at kernel to create a named event
object and use OpenEvent() at user mode. however, the OpenEvent
Use “\BaseNamedObjects\path” in IoCreateNotificationEvent and “path” in
OpenEvent.
Max