Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Configuring a s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 6038 of 6114
Post > Topic >>

Configuring a screen saver from Delphi

by Dodgy <Dodgy@[EMAIL PROTECTED] > Apr 17, 2008 at 05:14 PM

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
 




 2 Posts in Topic:
Configuring a screen saver from Delphi
Dodgy <Dodgy@[EMAIL PR  2008-04-17 17:14:08 
Re: Configuring a screen saver from Delphi
"Maarten Wiltink&quo  2008-04-17 23:13:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:54:15 CDT 2008.