Skip to content

Instantly share code, notes, and snippets.

View piomar123's full-sized avatar

Piotr Marcińczyk piomar123

View GitHub Profile
@piomar123
piomar123 / code16challenge.cpp
Created February 10, 2021 14:46
piomar123 #code16challenge
#ifdef _WIN32
#include <windows.h>
#pragma comment(lib, "user32.lib")
int main() {
return DefWindowProc(GetDesktopWindow(), WM_SYSCOMMAND, SC_MONITORPOWER, 2);
}
#else
#include <stdlib.h>
int main() {
return system("xset dpms force off");