prevent sleep mode and automatic update/shutdown - windows 7
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
精彩评论