GetDpiFromDpiAwarenessContext function user32

int GetDpiFromDpiAwarenessContext(
  1. DPI_AWARENESS_CONTEXT value
)

Retrieves the DPI from a given DPI_AWARENESS_CONTEXT handle.

This enables you to determine the DPI of a thread without needed to examine a window created within that thread.

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

Implementation

@pragma('vm:prefer-inline')
int GetDpiFromDpiAwarenessContext(DPI_AWARENESS_CONTEXT value) =>
    _GetDpiFromDpiAwarenessContext(value);