Getting an event on monitor hotplug for windows
Asked Answered
K

1

3

I'd really like to listen for when a monitor gets hotplugged like when a laptop docs or has a external monitor plugged in.

I'm hoping I can do this in .net maybe with some pinvoke.

Kordula answered 16/7, 2010 at 18:14 Comment(2)
Oh I've had a little more luck with a similar question differently worded: #5982020Outstay
Does this answer your question? Detect external display being connected or removed under Windows 7Chartres
C
0

As said here:

When adding a monitor on Windows 7 x64 I see registered messages "UxdDisplayChangeMessage" and "HotplugDetected". You can use RegisterWindowMessage to get the identifier for these messages and later just handle messages with this identifier.

Chartres answered 17/11, 2015 at 16:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.