SendMessage((HWND)65535, 274, 61808, 2);
SendMessage(hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
WM_SYSCOMMAND 意为“窗口消息_系统指令”
SC_MONITORPOWER 意为“系统指令_显示器电源”
-1 (the display is powering on) 打开显示器
1 (the display is going to low power) 低电状态
2 (the display is being shut off) 关闭显示器
关闭显示器
最新推荐文章于 2022-10-15 13:26:27 发布