I need some kind of event from Windows whenever there is a monitor that's getting plugged into system. Is there any API in Windows to do that. BTW, it is an C++ application
How to detect hot plugging of monitor in a win32 application?
Use RegisterDeviceNotification to register for getting WM_DEVICECHANGE notification.
It depends on how "turn off" function is implemented in the monitor and in the its driver. –
Effluent
Just turn off the monitor and check whether it is disappeared in the Device Manager. –
Effluent
You can do it via WMI, AFAIK. I've never tried it though so I can't give much help
© 2022 - 2024 — McMap. All rights reserved.