I need to detect the system power state mode. To be precise, I need an event which fires up when windows 7 wakes up from sleep. I am already using:
SystemEve
You need to inspect the Mode property of the PowerModeChangedEventArgs that is passed to the event.
From MSDN:
ResumeThe operating system is about to resume from a suspended state.
StatusChangeA power mode status notification event has been raised by the operating system. This might indicate a weak or charging battery, a transition between AC power and battery, or another change in the status of the system power supply.
SuspendThe operating system is about to be suspended.