39 references to CriticalHandle
PresentationCore (39)
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)
175HandleRef handleRef = new HandleRef(inputSource, inputSource.CriticalHandle); 198HandleRef 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 (4)
39if(hwndSource == null || IntPtr.Zero == (hwndSource).CriticalHandle) 55_contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.CriticalHandle, this); 227if (_contexts is not null && index <= _contexts.Length && _inputSource.CriticalHandle != 0) 234PenContext newContext = _stylusLogic.TabletDevices[(int)index].As<WispTabletDevice>().CreateContext(_inputSource.CriticalHandle, this);
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 (7)
71HandleRef thisWindow = new HandleRef(this, _source.CriticalHandle); 132if (!_active && focus == _source.CriticalHandle) 146result = (focus == _source.CriticalHandle); 334if(_active && wParam != _source.CriticalHandle ) 343_restoreFocusWindow = GetImmediateChildFor((IntPtr)wParam, _source.CriticalHandle); 500if (focus == thisSource.CriticalHandle) 724ReportInput(_source.CriticalHandle,
System\Windows\InterOp\HwndMouseInputProvider.cs (11)
42StopTracking(_source.CriticalHandle); 83StopTracking(_source.CriticalHandle); 128SafeNativeMethods.SetCapture(new HandleRef(this, _source.CriticalHandle)); 130if (capture != _source.CriticalHandle) 158SafeNativeMethods.ScreenToClient(new HandleRef(this, _source.CriticalHandle), ref ptCursor); 169ReportInput(_source.CriticalHandle, 677IntPtr hwndCurrent = _source.CriticalHandle; 731if(lParam != _source.CriticalHandle) // Ignore odd messages that claim we are losing capture to ourselves. 942if (!stillActiveIfOverSelf && hwndToCheck == _source.CriticalHandle) 984ReportInput(_source.CriticalHandle, 1393int windowStyle = SafeNativeMethods.GetWindowStyle(new HandleRef(this, _source.CriticalHandle), true);
System\Windows\InterOp\HwndPanningFeedback.cs (1)
52IntPtr handle = _hwndSource.CriticalHandle;
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
83int style = MS.Win32.UnsafeNativeMethods.GetWindowLong(new HandleRef(this, source.CriticalHandle), MS.Win32.NativeMethods.GWL_STYLE);
System\Windows\InterOp\HwndSource.cs (7)
686if (test != null && test.CriticalHandle == hwnd) 863IntPtr hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, CriticalHandle), NativeMethods.GA_ROOT); 931return CriticalHandle; 957return ( capture == CriticalHandle ); 1547hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this, CriticalHandle), NativeMethods.GA_ROOT); 1551hwndRoot = CriticalHandle; 2665return UnsafeNativeMethods.GetFocus() == CriticalHandle;