-->

How to identify monitor or projector connect to pc

2019-09-11 23:38发布

问题:

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?