tags:

views:

51

answers:

2

Hi,

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

I am just wondering how I can prevent windows 7 to go into sleep mode/hibernate and prevent automatic update.

Thanks.

Christian

A: 

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

VitalyVal
sorry is this done on the OS level or programmatically. I would like to set it on the OS level.
csetzkorn
actually this was quite helpful:http://windows.microsoft.com/en-US/windows7/Sleep-and-hibernation-frequently-asked-questions
csetzkorn
A: 

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

Yochay Kiriaty