Detect System state hibernate sleep awake #828
Answered
by
alihassan143
alihassan143
asked this question in
Q&A
|
is their any api to detect that ? |
Answered by
alihassan143
Mar 6, 2024
Replies: 1 comment 1 reply
|
I couldn't find an API to achieve this, sorry! |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RegisterPowerSettingNotification(GetHandle(), &GUID_CONSOLE_DISPLAY_STATE, DEVICE_NOTIFY_WINDOW_HANDLE)WTSRegisterSessionNotification(GetHandle(),NOTIFY_FOR_THIS_SESSION);