开发者

Howto create a C# Application that blocks pc hibernation?

开发者 https://www.devze.com 2022-12-30 05:26 出处:网络
I want to make a program to wake me up, but if I leave it and go to sleep the pc ends up sleeping. How can I force it to never sleep if this application i开发者_如何学Gos running?

I want to make a program to wake me up, but if I leave it and go to sleep the pc ends up sleeping. How can I force it to never sleep if this application i开发者_如何学Gos running?

I'm on Windows 7 x64.


The keyword you are looking for is "Power Management".

Try this article: http://msdn.microsoft.com/en-us/magazine/cc163386.aspx

Or even better, another similar StackOverflow question:

Prevent windows from going into sleep when my program is running?

0

精彩评论

暂无评论...
验证码 换一张
取 消