Monitor Prevention

I turn off the monitor using SendMessage(HWND_BROUADCART, WM_SYSCOMMAND, SC_MONITORRPOWER, 2) .

This works, but the monitor turns on again when someone touches the keyboard or mouse. I tried to get rid of this using the DevicePowerSetDeviceState function using DEVICEPOWER_CLEAR_WAKEENABLED for the keyboard and mouse: it does not return errors, but has no effect.

How can I prevent the monitor from turning on in Vista and Windows7?

+4
source share
1 answer

Connect all monitors to one outlet (or two, three, ... outlets if you have many monitors) and put the power switch on the desk.

Not all problems must be resolved using software.

0
source

Source: https://habr.com/ru/post/1311375/


All Articles