_VPOWERD_Register_Power_Handler


POWERRET _VPOWERD_Register_Power_Handler(POWER_HANDLER Power_Handler, 
    DWORD Priority);

Registers a power handler to be notified of standby, suspend, and resume events.

This is intended for use by Configuration Manager only. Virtual devices that require notification of power changes should install a message hook procedure using the _SHELL_HookSystemBroadcast service.

Power_Handler

Address of the callback function that is notified of power management events. For more information about this callback, see the VPowerHandlerProc function.

Priority

Notification-order value. Callback functions with high values, relative to other callback functions, receive power-suspension event notifications before the other callbacks, but receive power-resumption event notifications after others.

This service may only be called synchronously, that is, not at interrupt time.