1 write to _originalDpiAwarenessContext
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
42
_originalDpiAwarenessContext
= PInvoke.GetThreadDpiAwarenessContext();
3 references to _originalDpiAwarenessContext
System.Windows.Forms.Primitives (3)
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (3)
45
if (!PInvoke.AreDpiAwarenessContextsEqual(
_originalDpiAwarenessContext
, context))
83
&& PInvoke.SetThreadDpiAwarenessContext(
_originalDpiAwarenessContext
) == IntPtr.Zero)
85
throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiContextFailed,
_originalDpiAwarenessContext
));