falahati / WindowsDisplayAPI

WindowsDisplayAPI is a .Net wrapper for Windows Display and Windows CCD APIs
GNU Lesser General Public License v3.0
104 stars 21 forks source link

There is a way to retrieve the display number where my app run? #18

Closed Groboto closed 1 year ago

Groboto commented 3 years ago

I trying to retrieve number of monitor where my wpf app is running. TIs possible to retrieve that data with WindowsDisplayAPI? Winform method retrieve that data, but there is no correlation on numbers with what windows display config menu show.

falahati commented 3 years ago

I am not sure how Windows selects these numbers, but it should be based on the order of PathDisplaySources instances. If it is not, I really have no idea how Windows decides to order display devices in Settings/Control Panel.