1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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