Expand Minimize

EngUnmapEvent function

The EngUnmapEvent function cleans up the kernel-mode resources allocated for a mapped user-mode event.

Syntax


BOOL EngUnmapEvent(
  _In_  PEVENT pEvent
);

Parameters

pEvent [in]

Pointer to an event object returned from a previous call to EngMapEvent.

Return value

EngUnmapEvent returns TRUE upon success. Otherwise, it returns FALSE.

Remarks

The display driver should call EngUnmapEvent when it is notified that the process (typically EngCreateDriverObj) that created the user-mode event has terminated. The display driver can also call EngUnmapEvent to perform its own cleanup. The display and miniport drivers should not touch the event object after EngUnmapEvent has been called.

The display driver can call EngUnmapEvent only for an event object returned by EngMapEvent. It must not call this function for an event object returned by EngCreateEvent.

Requirements

Version

This function is available in Windows XP and later.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngMapEvent
EngCreateEvent
EngCreateDriverObj

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft