2 writes to _originalDpiHostingBehavior
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (2)
55
_originalDpiHostingBehavior
= PInvoke.GetThreadDpiHostingBehavior();
61
_originalDpiHostingBehavior
= PInvoke.SetThreadDpiHostingBehavior(behavior);
4 references to _originalDpiHostingBehavior
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (4)
56
if (behavior ==
_originalDpiHostingBehavior
)
62
if (
_originalDpiHostingBehavior
== DPI_HOSTING_BEHAVIOR.DPI_HOSTING_BEHAVIOR_INVALID)
77
&& PInvoke.SetThreadDpiHostingBehavior(
_originalDpiHostingBehavior
) == DPI_HOSTING_BEHAVIOR.DPI_HOSTING_BEHAVIOR_INVALID)
79
throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed,
_originalDpiHostingBehavior
));