Notification on Hibernate?
-
Hello! Is there any way to get a notification when Windows enters the hibernate state? Is a windows message sent, or can one register a callback? I've found the
WM_POWERBROADCAST
message, however it seems that you can only detect the standby modus with it, not hibernation. Best regards Dominik
Too many passwords to remember? Try KeePass Password Safe!
-
Hello! Is there any way to get a notification when Windows enters the hibernate state? Is a windows message sent, or can one register a callback? I've found the
WM_POWERBROADCAST
message, however it seems that you can only detect the standby modus with it, not hibernation. Best regards Dominik
Too many passwords to remember? Try KeePass Password Safe!
The PBT_APMSUSPEND event (in a WM_POWERBROADCAST message) doesn't indicate the system is entering hibernate state? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
The PBT_APMSUSPEND event (in a WM_POWERBROADCAST message) doesn't indicate the system is entering hibernate state? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
It seems Windows does not send
PBT_APMSUSPEND
norPBT_APMQUERYSUSPEND
(inWM_POWERBROADCAST
) when going to sleep. I've found some other power functions in the meanwhile (CallNtPowerInformation
,GetActivePwrScheme
, ...), maybe one of these helps... Thanks anyway for your reply, best regards Dominik
Too many passwords to remember? Try KeePass Password Safe!