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

How to get windows 10 "Active signal resolution" #17

Closed sam321526 closed 3 years ago

sam321526 commented 3 years ago

Hi All, Is there any way to get "Active signal resolution", there is no way to get it in the WindowsDisplayAPI project image

sam321526 commented 3 years ago

You can refer to the link, use C++ to obtain active signal resolution https://social.msdn.microsoft.com/Forums/zh-TW/88527bc4-a2fc-405a-b3dd-ad9254da4a43/c-22914203092146224471win10?forum=233

falahati commented 3 years ago

Sorry for the late response.

DisplayConfigVideoSignalInfo.ActiveSize is the active signal resolution you are searching for. This structure is then wrapped with the PathTargetSignalInfo class and is accessible from the PathTargetInfo.SignalInfo property.

sam321526 commented 3 years ago

Yes, it work thank you for help!!