I know that under Windows 7 there's a new Power Options setting that controls whether a computer can be woken up programmatically from a sleep mode. (It is under advanced Power Options -> Sleep -> Allow Wake Timers, and if it set to Disable then system
will not wake up.)
Is there any way to see if this option is disabled? And if yes, to somehow control it from a program?