Skip to main content
gamedev.net
🔒 Locked

Active Screensaver Programmatically

Started by JoeZhang Mar 20, 2003 at 6:06 AM 3 replies 200+ views
Original Post
JoeZhang
JoeZhang
Does anyone can tell me how to active the screensaver programmatically on MS Windows platform? Thanks!
Jaco vd Westhuizen
Jaco vd Westhuizen
#include <windows.h>

void ActivateScreenSaver()
{
SystemParametersInfo( SPI_SETSCREENSAVEACTIVE, TRUE, 0, 0 );
}


Enjoy!
<$1,000,000 signature goes here>
Jaco vd Westhuizen
Jaco vd Westhuizen
OK, my previous post will tell Windows to start the screen saver you have selected in the display Properties.

Explain in a little more detail what your program must do.
<$1,000,000 signature goes here>

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.