开发者

prevent sleep mode and automatic update/shutdown - windows 7

开发者 https://www.devze.com 2022-12-25 02:51 出处:网络
I need to run a program - probably for a couple of days. I am just 开发者_StackOverflowwondering how I can prevent windows 7 to go into sleep mode/hibernate and prevent automatic update.

I need to run a program - probably for a couple of days.

I am just 开发者_StackOverflowwondering how I can prevent windows 7 to go into sleep mode/hibernate and prevent automatic update.

Thanks.

Christian


As for preventing sleep/hibernate try to look in MSDN at SetThreadExecutionState, WM_POWERBROADCAST. Read also the following document.


Or you can just right click on the power icon near the clock, or type power in the Start Menu and select power options. Next choose one of the currnet power plan your computer is set to, and click on the Change plan settings. Simply set ALL the parameter to Never... you computer will run forever...

There are two great sample chapters on Windows Phone and Silverlight for Windows Phone on the LearningWindosPhone.com site. There is great Windows Phone Trainng material , and dont forget the Windows Phone Develoeprs Blog

0

精彩评论

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

关注公众号