关闭屏幕的WinAPI

Code

#include <windows.h>

int main()
{
    SendMessage(FindWindow(0, 0), WM_SYSCOMMAND, SC_MONITORPOWER, 2);
    return 0;
}

https://pan.baidu.com/s/1WyT73ZVCK6FikQ3gH6ZL3g