locked
See if computer can wake up programmatically under Windows 7 RRS feed

  • Question

  • 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?

    Saturday, July 17, 2010 2:29 AM

Answers

  • On Sat, 17 Jul 2010 03:29:02 +0100, <ahmd0> wrote:

    >
    >
    > 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?

    The place to look is
    http://msdn.microsoft.com/en-us/library/aa373163(v=VS.85).aspx

    You will need to do some investigation to find the correct function and
    parameters to get what you want.


    --
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


    • Proposed as answer by Yi Feng Li Friday, July 23, 2010 2:07 AM
    • Marked as answer by Yi Feng Li Friday, July 23, 2010 2:09 AM
    Saturday, July 17, 2010 3:56 PM