Does anyone know how I can set a screen saver from Delphi?
I don't want to write, one, I know how to do that. What I want to know
is how to set windows to use a specific screen saver, how long to wait
before starting it, and most im****tantly, enable the password on
resume?
I've found 1 api call so far that lets me set the time delay
SystemParametersInfo(SPI_SETSCREENSAVETIMEOUT, 600,0,0);
but unfortunately this won't enable a screen saver if it's currently
set to none, and won't tick the password on resume.
I've seen some mention of
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 1, nil, 0);
But I have no idea what it does... I've had a play and the answer
seems to be "Nothing".
Any ideas?
I would prefer API calls to registry digging if possible.
Cheers,
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES


|