How to fetch data of display resolution and display orientation in Winui3

mohan Raj 6 Reputation points

Hi i am working on an winui3 application , My requirement is that i have two combo box name display resolution and display orientation.

For the both combo box i need to add values from display setting like need to fetch the value of display resolution and orientation from the settings.

thanks in advance

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
655 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,289 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 79,921 Reputation points

    I posted a test code with EnumDisplaySettingsEx in your thread on Github :

    1 person found this answer helpful.