How can to set Power setting turn off: never , by c#

5.7k Views Asked by At

How can to set Power setting turn off: never , by c#? manualy: Control Panel-> Power Options -> Edit Plan Setting -> trun off the display = never Put the computer to sleep = never

anther Question: to set: Don't require a password manualy: Control Panel-> Power Options -> System Setting * Don't require a password

2

There are 2 best solutions below

0
On
0
On

Also check out http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx, it's win32 API but allows you to set some of the power/screen saver settings.