Last active
October 23, 2019 15:11
-
-
Save poi519/3efdd6007948c89de8f2382132b0b34a to your computer and use it in GitHub Desktop.
Turns off the screen. Build `cl screenoff.c user32.lib`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
int main() { | |
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment