User32GetWindowDpiAwarenessContext Method

Returns the DPI_AWARENESS_CONTEXT associated with a window.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true)]
public static IntPtr GetWindowDpiAwarenessContext(
	IntPtr hWnd
)

Parameters

hWnd  IntPtr
The window to query.

Return Value

IntPtr
The DPI_AWARENESS_CONTEXT for the provided window. If the window is not valid, the return value is Zero.

Remarks

See Also