Control the screensaver in C#

  • Thread starter Thread starter Marcus Ahlberg
  • Start date Start date
M

Marcus Ahlberg

I want to write a program that can enable/disable the screensaver and the
powersaving mode with a single click on a notification icon. Does anyone now
how to change these settings in C#. Is there any API method I can invoke?

_______________________________________
Marcus Ahlberg
(e-mail address removed)
 
Marcus,
I want to write a program that can enable/disable the screensaver and the
powersaving mode with a single click on a notification icon. Does anyone now
how to change these settings in C#. Is there any API method I can invoke?

Check out the SystemParametersInfo Win32 API.



Mattias
 
Back
Top