Prevent Windows From Entering Hibernate Mode in WINDOWS 7

Discussion in 'Meet and Greet' started by prabhakar.rishav, Dec 15, 2011.

  1. prabhakar.rishav

    prabhakar.rishav New Member

    Joined:
    Dec 15, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    I have to prevent Windows 7 from entering Hibernate mode.



    Preventing it to enter SLEEP mode was done by

    "SetThreadExecutionState(ES_CONTINUOUS |ES_AWAYMODE_REQUIRED|ES_SYSTEM_REQUIRED|ES_DISPLAY_REQUIRED);"


    but this code doesn't stop windows from entering Hibernation.

    what can be done to achieve the above..??
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice