hi guys...

just a quick help required if possible...

i know i can use:
API: GetSystemPowerStatus
to get the current power status etc...

but how can i detect [live] when the power switches to AC [power cord in] and Battery power?...

- if switching to battery i need to turn off laptop monitor etc, and then enable it when back on power... - cant work out how, except a timer to keep checking, which will run the battery power faster... hooking the window could do this? ive search the forum and cant work it out...

cheers guys.