User32GetWindowDpiAwarenessContext Method
Returns the DPI_AWARENESS_CONTEXT associated with a window.
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)]
public static IntPtr GetWindowDpiAwarenessContext(
IntPtr hWnd
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function GetWindowDpiAwarenessContext (
hWnd As IntPtr
) As IntPtr
Dim hWnd As IntPtr
Dim returnValue As IntPtr
returnValue = User32.GetWindowDpiAwarenessContext(hWnd)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static IntPtr GetWindowDpiAwarenessContext(
IntPtr hWnd
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member GetWindowDpiAwarenessContext :
hWnd : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
The window to query.
IntPtr
The DPI_AWARENESS_CONTEXT for the provided window.
If the window is not valid, the return value is
Zero.