Hi. I need detect situation when PC go to standby mode, b/c I need kill one process before it. I found something about it on MS pages: http://msdn.microsoft.com/en-us/library/aa394362%28VS.85%29.aspx
I´d like to detect value 4 and then kill a process. Could U help me please?
This isan example of how to detect power events
;by martin
#include <GUIConstantsEx.au3>
Global Const $WM_POWERBROADCAST = 0x218
Global Const $PBT_APMRESUMEAUTOMATIC = 0x12
Global Const $PBT_APMQUERYSUSPEND = 0x0000
Global Const $PBT_APMQUERYSTANDBY = 0x0001
Global Const $PBT_APMQUERYSUSPENDFAILED = 0x0002
Global Const $PBT_APMQUERYSTANDBYFAILED = 0x0003
Global Const $PBT_APMSUSPEND = 0x0004
Global Const $PBT_APMSTANDBY = 0x0005
Global Const $PBT_APMRESUMECRITICAL = 0x0006
Glob