Hello,
I'd like to check if the system is in standby mode, is there any Win32 API for that? I'm not sure if it's the same as the sleep mode.
There's some code that gets executed in my app, which causes it to hang when coming out of standby (it's executed during the standby mode), so I'd like to avoid running that code when the computer is sleeping/standing by.
Thanks in advance!
Dennis
edit: perhaps it's impossible, because the program shouldn't be running as was pointed out in the answer below, so I'll count that as an answer :)