Hello The monitor numbers shown in the Windows Display Settings and those obtained through EnumDisplayMonitors or EnumDisplayDevices may not always match. This is because Windows assigns display numbers based on the order in which they were detected or added, and this order may not correspond to the physical arrangement of your monitors. Unfortunately, there’s no built-in function in Windows that directly maps the display numbers from the Display Settings to the identifiers obtained from EnumDisplayMonitors or EnumDisplayDevices. However, you can identify the displays and their corresponding numbers through the Display Settings: Press Win + I to access Settings. Select the System tab, then click on Display. Click on Identify to display a number on each screen. This number identifies which screen is primary and which is secondary. Please note that these numbers are used by Windows and its applications to identify displays and may not correspond to the “\DISPLAYn” identifiers. If you need to change the order of the displays as recognized by Windows, you might need to modify the registry. However, this should be done with caution as incorrect changes to the registry can cause serious system issues. Always back up your registry before making changes. [Windows 10 - Change Display Numbers / Identity - Super User](https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsuperuser.com%2Fquestions%2F1455322%2Fwindows-10-change-display-numbers-identity&data=05%7C02%7Cwesleyl%40wicresoft.com%7Cbff3f795d20b4ee5a73d08dc343de32c%7Cb2ae8dd9097749768706861b488b1512%7C0%7C0%7C638442687633006243%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=dA6cdWvMGM%2BrXjOaDaLKm9SlgNyQvvg41MysgViy2N4%3D&reserved=0"原始 URL: https://superuser.com/questions/1455322/windows-10-change-display-numbers-identity。如果你信任此链接, 请单击或点击。") If you’re developing an application and need to map the display numbers to the “\DISPLAYn” identifiers, you might need to implement a custom solution. One approach could be to allow users to manually map the display numbers to the “\DISPLAYn” identifiers within your application.
How to get the Monitor number displayed in the system display settings
Leon
0
Reputation points
I have three monitors and use EnumDisplayMonitors/EnumDisplayDevices to get the monitor info, they can result something like "\DISPLAY1","\DISPLAY2","\DISPLAY3", but they do not match the number show in windows display setting. Is there any other way to obtain this information? Thanks!