How do I get the actual Monitor name? as seen in the resolution dialog

前端 未结 5 2022
旧巷少年郎
旧巷少年郎 2020-11-27 19:31

I am trying to grab the friendly name for the monitors on my system. I am using C#.

I have tried Screen, which just gives me //./DisplayXX.

5条回答
  •  抹茶落季
    2020-11-27 20:22

    This information is almost certainly obtained through the SetupAPI family of functions. I don't recall the specifics off the top of my head, but you will need to get all monitor devices (GUID_DEVINTERFACE_MONITOR) and obtain their friendly names (SPDRP_FRIENDLYNAME).

提交回复
热议问题