Can windows detect when monitor, mouse, keyboard are disabled?
3 answers
Not sure about the monitor, but a disabled keyboard and mouse should message WM_DEVICECHANGE if they are USB devices. See this link for more information: WM_DEVICECHANGE
There is a good discussion of WM_DEVICECHANGE in this forum regarding its use with HID devices (Mouse / Keyboard / etc.)
For more detailed notification you can use the RegisterDeviceNotification function RegisterDeviceNotification
+3
source to share
To respond to monitor changes, handle WM_DISPLAYCHANGE (see http://msdn.microsoft.com/en-us/library/dd145210%28VS.85%29.aspx ).
+1
source to share