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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function SetProcessDpiAwarenessContext (
value As IntPtr
) As Boolean
Dim value As IntPtr
Dim returnValue As Boolean
returnValue = User32.SetProcessDpiAwarenessContext(value)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static bool SetProcessDpiAwarenessContext(
IntPtr value
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member SetProcessDpiAwarenessContext :
value : IntPtr -> bool
No code example is currently available or this language may not be supported.
- value IntPtr
-
A DPI_AWARENESS_CONTEXT handle to set.
Boolean
This function returns
if the operation was successful, and
otherwise.