User32SetProcessDpiAwarenessContext Method

Sets the current process to a specified dots per inch (dpi) awareness context.

The DPI awareness contexts are from the DPI_AWARENESS_CONTEXT value.

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, SetLastError = true)]
public static bool SetProcessDpiAwarenessContext(
	IntPtr value
)

Parameters

value  IntPtr
A DPI_AWARENESS_CONTEXT handle to set.

Return Value

Boolean
This function returns if the operation was successful, and otherwise.

Remarks

See Also