2009-07-15 08:27:20 UTC
I would like to detect resume from hibernation in my service.
Interactive processes receive a WM_POWERBROADCAST message with the
wParam set to PBT_APMRESUMESUSPEND in this case.
The HandlerEx documentation for services says, that the service can
receive a SERVICE_CONTROL_POWEREVENT notification in this case but it
seems to me like the Guids that are sent with this notification (a
POWERBROADCAST_SETTING structure) only describe changes in the power
settings, not the power modes, as is necessary for detection of resume
Can someone confirm that a service cannot receive power mode change
notifications or otherwise tell me what event could be used for this
purpose in a service?
Any help appreciated,