Is there any way to find out when Windows will enter sleep mode/is in sleep mode?
Notification when Windows enters in sleep mode
1k views Asked by Mircea Ispas At
1
Is there any way to find out when Windows will enter sleep mode/is in sleep mode?
If you're using managed code then this is exposed in the
SystemEvents.PowerModeChangedevent.If you're using native code then you want to listen for the
WM_POWERBROADCASTmessage in yourWindowProchandler.