(C++ Win32) LockScreen
https://github.com/kimtg/LockScreen Turns off the monitor and locks the screen 모니터 끄고 컴퓨터 잠그기 #include int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { LockWorkStation(); // Turn off monitor SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2); return 0; }