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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top