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
.
After you get a DisplayDevice.DeviceName
like //./DisplayX
from EnumDisplayDevices
, you are supposed to call 'EnumDisplayDevices' a second time, this time providing the 'DisplayDevice.DeviceName' that you got from the previous call as lpDevice
, and '0' as iDevNum
. Then you'll have the monitor name in DisplayDevice.DeviceString
.