detect power state change
<p>What is the best way to detect when Windows power state is changing?</p>

<p>I need to preform some actions depending on wether the computer is going to Stanby/Hibernate/Shut Down</p>

<p>Thanks
Sp</p>
