Which DpiAwareness is effective for UDF? #4136
-
I know the UDF (user-data-folder) is dependent on the DPI awareness and only works for a single DPI awareness. If you need to work with different, you need a separate UDF for each one. I have lot of exceptions with HRESULT 0x8007139F although I'm using different UDFs. But how is Microsoft determining the effective DPI awareness used in conjunction with the UDF? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Any news on that? What if the DpiAwareness is Unaware at the beginning but changes later to Aware? |
Beta Was this translation helpful? Give feedback.
-
It should be the values of DPI_AWARENESS https://learn.microsoft.com/en-us/windows/win32/api/windef/ne-windef-dpi_awareness |
Beta Was this translation helpful? Give feedback.
GetWindowDpiAwarenessContext, and fallback to GetProcessDpiAwareness if GetWindowDpiAwarenessContext is not supported for that version of the OS.
Note that there are app compat settings that could forcefully alter the dpiawareness of the processes.