Enable Per-Monitor V2 DPI awareness for the current process
(SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2)).
Call this before creating any AppWindow, WindowsXamlManager, or Win32
window so WinUI 3 renders crisp HiDPI visuals instead of bitmap-scaled 96 DPI.
Returns true if awareness was updated, false if already set or unavailable.
Enable Per-Monitor V2 DPI awareness for the current process (
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2)).Call this before creating any
AppWindow,WindowsXamlManager, or Win32 window so WinUI 3 renders crisp HiDPI visuals instead of bitmap-scaled 96 DPI. Returnstrueif awareness was updated,falseif already set or unavailable.