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

前端 未结 5 2020
旧巷少年郎
旧巷少年郎 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:12

    I have been seraching for an answer to this same question. In this link it is mentioned that generic pnp monitor is shown, because there is no driver installed for the monitor and the device is running with the Generic PnP Monitor Driver.

    For windows 7 and higher there seems to be a different function than EnumDisplayDevices to get the desired display names as shown in the control panel. This can be done with the DisplayConfigGetDeviceInfo function as explained here. I hope someone soon can translate this to Delphi, which I am looking for.

提交回复
热议问题