I have a callback
WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) {}
that checks if the windows system goes to sleep/hibernation by using WM_POWERBROADCAST
event. But the same is not working for windows 7.
So for Windows 7, how it can be done? Which events is to be used? What's the difference between windows xp and windows 7 in the way of handling power events.