Click here to Skip to main content
15,747,637 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanna hibernate the OS with visual C++ 2010, how I do this?
Thank you
Updated 26-Apr-11 21:03pm
Sandeep Mewara 27-Apr-11 1:41am    
Tried anything?

Please see this link:[^]

This detail in the remarks should be noted too:

The calling process must have the SE_SHUTDOWN_NAME privilege. To enable the SE_SHUTDOWN_NAME privilege, use the AdjustTokenPrivileges function.
Share this answer
Before hibernating the OS, wake-up Google :-).

Share this answer
CPallini 27-Apr-11 3:02am    
Sergey Alexandrovich Kryukov 27-Apr-11 3:18am    
Thank you. This is a working idea, isn't it?
CPallini 27-Apr-11 3:22am    
Don't know: I'm hibernated.
Sergey Alexandrovich Kryukov 27-Apr-11 3:44am    
Oh, good idea. I really need it right now, too :-)
CPallini 27-Apr-11 3:49am    
We all need your hibernation, at least for a while. Even the Q&A antitrust suggested it. :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900