Is it possible to subscribe to a Windows event that fires when Windows is going into or coming out of Sleep or Hibernate state?
I need my application to be made awar
In .NET, use the PowerModeChanged event. In Win32, use the WM_POWERBROADCAST message.