4.4. EventUnregister()

Purpose

Unregisters from receiving Plug-and-Play and power management event notifications.

Prototype
DWORD EventUnregister(HANDLE hEvent);
Parameters
NameTypeInput/Output
hEventHANDLEInput
Description
NameDescription
hEventHandle received from EventRegister() [4.3]
Return Value

Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise [A].

Remarks

This function wraps WD_EventUnregister() and InterruptDisable() [2.18].

Example
EventUnregister(event_handle);