'How to match display devices from EnumDisplayDevices to QueryDisplayConfig
I have an Unreal Engine project for which I need to query information about attached displays. Unreal uses the EnumDisplayDevices call.
However, I have a display-like device, for which this call doesn't work correctly. I get incorrect information (e.g. for the resolution).
I now have tried to use QueryDisplayConfig together with DisplayConfigGetDeviceInfo and that yields the correct resolution for my device(s), however I have to somehow match the Unreal display devices to my newly read devices. This however seems to be tricky, as the id I get for "Unreal's" method is different from the Id(s) and device path I get for "my" method.
Which leads me to my question, how can I match the devices I get from these two ways of reading display info?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
