Home All Groups Group Topic Archive Search About

Programmatically Disabling & Enabling Windows' Screen Saver

Author
27 May 2005 3:08 AM
Compu-Celebi
How can Windows' screen saver be programmatically disabled or enabled?

Author
27 May 2005 12:37 PM
MikeD
"Compu-Celebi" <c o m p u - c e l e b i @ v a l i n t . n e t> wrote in
message news:119d40jpbd2g1e6@corp.supernews.com...
> How can Windows' screen saver be programmatically disabled or enabled?


Use the SystemParametersInfo API function along with
SPI_SETSCREENSAVEACTIVE.

--
Mike
Microsoft MVP Visual Basic
Author
27 May 2005 1:31 PM
Compu-Celebi
"MikeD" <nob***@nowhere.edu> wrote in message
news:OOdzOjrYFHA.1344@TK2MSFTNGP15.phx.gbl...
> Use the SystemParametersInfo API function along with
> SPI_SETSCREENSAVEACTIVE.

That was already attempted, without success.  However, due to your response,
in case of incorrect parameters, I retried, and it worked.