Delete

0

Delete123123123

0

pomijam ze nie napisales systemu operacyjnego dlatego napisalem wszystko pod windowsa

https://www.google.nl/search?q=c%2B%2B+check+if+monitor+is+power+on&oq=c%2B%2B+check+if+monitor+is+power+on&aqs=chrome..69i57.6015j1j7&sourceid=chrome&ie=UTF-8

https://stackoverflow.com/questions/203355/is-there-any-way-to-detect-the-monitor-state-in-windows-on-or-off

GetDevicePowerState sometimes works for monitors. If it's present, you can open the \.\LCD device. Close it immediately after you've finished with it.

Essentially, you're out of luck -- there is no reliable way to detect the monitor power state, short of writing a device driver and filtering all of the power IRPs up and down the display driver chain. And that's not very reliable either.

1

Delete123123

1 użytkowników online, w tym zalogowanych: 0, gości: 1