GetWindowDpiAwarenessContext function user32

DPI_AWARENESS_CONTEXT GetWindowDpiAwarenessContext(
  1. HWND hwnd
)

Returns the DPI_AWARENESS_CONTEXT associated with a window.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getwindowdpiawarenesscontext.

Implementation

@pragma('vm:prefer-inline')
DPI_AWARENESS_CONTEXT GetWindowDpiAwarenessContext(HWND hwnd) =>
    DPI_AWARENESS_CONTEXT(_GetWindowDpiAwarenessContext(hwnd));