Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Meet and Greet (http://www.go4expert.com/community/meet-and-greet/)
-   -   Prevent Windows From Entering Hibernate Mode in WINDOWS 7 (http://www.go4expert.com/community/prevent-windows-entering-hibernate-mode-t27382/)

prabhakar.rishav 15Dec2011 13:00

Prevent Windows From Entering Hibernate Mode in WINDOWS 7
 
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_DISPLA Y_REQUIRED);"


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

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


All times are GMT +5.5. The time now is 08:47.