Look for a demo at www.codehound.com/vb/ that shows how to call
SPI_SETSCREENSAVEACTIVE. In general, the call is
Call SystemParametersInfo( SPI_SETSCREENSAVEACTIVE, _
1&, _
0&, _
SPIF_SENDWININICHANGE )
--
Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
# Hi
#
# Visual basic 6 Question
#
# How can we changed or init programatically (when none) the screensaver
# file name without rebooting the pc.
# Can we give me an example. I think with SystemParametersInfo it'not
# possible to set the file for the screen saver!!
#
# Thanks