2010-07-16 31 views
3

事件我真的很喜歡聽,當顯示器被熱插拔喜歡當一臺筆記本電腦文檔或有一個外接顯示器插上了。獲取有關顯示器熱插拔的Windows

我希望我能做到這一點.net也許有一些pinvoke。

+0

哦,我有一個更多的運氣與類似的問題措辭不同:http://stackoverflow.com/questions/5981520/detect-external-display-being-connected-or-removed-under-windows-7 – hippietrail 2011-05-13 07:46:22

回答

0

至於說here

在Windows 7 64位添加監視我看到註冊信息 「UxdDisplayChangeMes​​sage」 和 「HotplugDetected」。您可以使用RegisterWindowMessage來獲取這些消息的標識符,並稍後使用此標識符處理消息。