19 references to CriticalHandle
PresentationCore (19)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
140return new InputPane(source?.CriticalHandle ?? null);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (2)
176HandleRef handleRef = new HandleRef(inputSource, inputSource.CriticalHandle); 199HandleRef handleRef = new HandleRef(inputSource, inputSource.CriticalHandle);
System\Windows\Input\InputElement.cs (2)
279if(sourceFrom != null && sourceFrom.CriticalHandle != IntPtr.Zero && sourceFrom.CompositionTarget != null && 280sourceTo != null && sourceTo.CriticalHandle != IntPtr.Zero && sourceTo.CompositionTarget != null)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
39if(hwndSource == null || IntPtr.Zero == (hwndSource).CriticalHandle)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (3)
648IntPtr hwnd = hwndSource != null ? hwndSource.CriticalHandle : IntPtr.Zero; 3166int style = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, hwndSource.CriticalHandle), NativeMethods.GWL_STYLE); 3204if (UnsafeNativeMethods.IsWindow(new HandleRef(hwndSource, hwndSource.CriticalHandle)))
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
507if (focus == thisSource.CriticalHandle)
System\Windows\InterOp\HwndPanningFeedback.cs (1)
52IntPtr handle = _hwndSource.CriticalHandle;
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
84int style = MS.Win32.UnsafeNativeMethods.GetWindowLong(new HandleRef(this, source.CriticalHandle), MS.Win32.NativeMethods.GWL_STYLE);
System\Windows\InterOp\HwndSource.cs (7)
690if (test != null && test.CriticalHandle == hwnd) 867IntPtr hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, CriticalHandle), NativeMethods.GA_ROOT); 935return CriticalHandle; 962return ( capture == CriticalHandle ); 1552hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, CriticalHandle), NativeMethods.GA_ROOT); 1556hwndRoot = CriticalHandle; 2685return UnsafeNativeMethods.GetFocus() == CriticalHandle;