Skip to content

Instantly share code, notes, and snippets.

@davidglezz
Created November 5, 2013 10:52
Show Gist options
  • Save davidglezz/7317250 to your computer and use it in GitHub Desktop.
Save davidglezz/7317250 to your computer and use it in GitHub Desktop.
Launch Screensaver
#include <windows.h>
int main()
{
SendMessage(GetForegroundWindow(), WM_SYSCOMMAND, SC_SCREENSAVE, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment