Named notification events in Windows 2000 drivers (using KEvent)

0 Likes

Problem:

Running a driver  under Windows 2000 the named notification events fail to register and get called when using a new KEvent.

Resolution:

The underlying DDK call that KEvent wraps is IoCreateNotificationEvent. You can view the documentation for this online at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/kmarch/k104_7bg2.asp

Essentially, the problem is that in Windows 2000 drivers loaded at boot cannot create event objects in DriverEntry routines that are visible to user mode programs because the \\BasedNamedObjects object directory is not created until the Win32® system initializes. It is also suggested in the IoCreateNotificationEvent that the preferred method to share event objects between user mode and kernel mode is for the user-mode program to create the event object and pass it to the driver through an IOCTL

Old KB# 11683
Comment List
Anonymous
Related Discussions
Recommended