39 references to CriticalHandle
PresentationCore (39)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
140
return new InputPane(source?.
CriticalHandle
?? null);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (2)
175
HandleRef handleRef = new HandleRef(inputSource, inputSource.
CriticalHandle
);
198
HandleRef handleRef = new HandleRef(inputSource, inputSource.
CriticalHandle
);
System\Windows\Input\InputElement.cs (2)
279
if(sourceFrom != null && sourceFrom.
CriticalHandle
!= IntPtr.Zero && sourceFrom.CompositionTarget != null &&
280
sourceTo != null && sourceTo.
CriticalHandle
!= IntPtr.Zero && sourceTo.CompositionTarget != null)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
39
if(hwndSource == null || IntPtr.Zero == (hwndSource).
CriticalHandle
)
55
_contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.
CriticalHandle
, this);
227
if (_contexts is not null && index <= _contexts.Length && _inputSource.
CriticalHandle
!= 0)
234
PenContext newContext = _stylusLogic.TabletDevices[(int)index].As<WispTabletDevice>().CreateContext(_inputSource.
CriticalHandle
, this);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (3)
648
IntPtr hwnd = hwndSource != null ? hwndSource.
CriticalHandle
: IntPtr.Zero;
3166
int style = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, hwndSource.
CriticalHandle
), NativeMethods.GWL_STYLE);
3204
if (UnsafeNativeMethods.IsWindow(new HandleRef(hwndSource, hwndSource.
CriticalHandle
)))
System\Windows\InterOp\HwndKeyboardInputProvider.cs (7)
71
HandleRef thisWindow = new HandleRef(this, _source.
CriticalHandle
);
132
if (!_active && focus == _source.
CriticalHandle
)
146
result = (focus == _source.
CriticalHandle
);
334
if(_active && wParam != _source.
CriticalHandle
)
343
_restoreFocusWindow = GetImmediateChildFor((IntPtr)wParam, _source.
CriticalHandle
);
500
if (focus == thisSource.
CriticalHandle
)
724
ReportInput(_source.
CriticalHandle
,
System\Windows\InterOp\HwndMouseInputProvider.cs (11)
42
StopTracking(_source.
CriticalHandle
);
83
StopTracking(_source.
CriticalHandle
);
128
SafeNativeMethods.SetCapture(new HandleRef(this, _source.
CriticalHandle
));
130
if (capture != _source.
CriticalHandle
)
158
SafeNativeMethods.ScreenToClient(new HandleRef(this, _source.
CriticalHandle
), ref ptCursor);
169
ReportInput(_source.
CriticalHandle
,
677
IntPtr hwndCurrent = _source.
CriticalHandle
;
731
if(lParam != _source.
CriticalHandle
) // Ignore odd messages that claim we are losing capture to ourselves.
942
if (!stillActiveIfOverSelf && hwndToCheck == _source.
CriticalHandle
)
984
ReportInput(_source.
CriticalHandle
,
1393
int windowStyle = SafeNativeMethods.GetWindowStyle(new HandleRef(this, _source.
CriticalHandle
), true);
System\Windows\InterOp\HwndPanningFeedback.cs (1)
52
IntPtr handle = _hwndSource.
CriticalHandle
;
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
83
int style = MS.Win32.UnsafeNativeMethods.GetWindowLong(new HandleRef(this, source.
CriticalHandle
), MS.Win32.NativeMethods.GWL_STYLE);
System\Windows\InterOp\HwndSource.cs (7)
686
if (test != null && test.
CriticalHandle
== hwnd)
863
IntPtr hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this,
CriticalHandle
), NativeMethods.GA_ROOT);
931
return
CriticalHandle
;
957
return ( capture ==
CriticalHandle
);
1547
hwndRoot = UnsafeNativeMethods.GetAncestor(new HandleRef(this,
CriticalHandle
), NativeMethods.GA_ROOT);
1551
hwndRoot =
CriticalHandle
;
2665
return UnsafeNativeMethods.GetFocus() ==
CriticalHandle
;