How to identify monitor or projector connect to pc?

半腔热情 提交于 2019-12-12 03:56:41

问题


I am writing a small C# application to identify which type of display connect to pc

  1. A Monitor
  2. A TV screen
  3. A projector

I try to do with

Screen.AllScreens
EnumDisplayDevices()

but it does not help anything.

When I use

var mbs = new ManagementObjectSearcher("Select * From CIM_LogicalDevice");
ManagementObjectCollection mbsList = mbs.Get();

I can get device id:

DISPLAY\OTMFB0E\4&9C24ACE&0&UID16843008
DISPLAY\DELD058\4&9C24ACE&0&UID50725632

But there is not any value which is used to identify between a normal monitor and a projector.

Is there any way to do? Or which information will be different of these display types?

来源:https://stackoverflow.com/questions/41688646/how-to-identify-monitor-or-projector-connect-to-pc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!