43 references to CriticalHandle
PresentationFramework (43)
MS\Internal\AppModel\SecurityMgrSite.cs (1)
35
phwnd = curWindow.
CriticalHandle
;
System\Windows\Automation\Peers\WindowAutomationPeer.cs (2)
50
UnsafeNativeMethods.GetWindowText(new HandleRef(null, window.
CriticalHandle
), sb, sb.Capacity);
82
IntPtr windowHandle = window.
CriticalHandle
;
System\Windows\Interop\WindowInteropHelper.cs (1)
74
return _window.
CriticalHandle
;
System\Windows\Window.cs (39)
271
UnsafeNativeMethods.SendMessage(
CriticalHandle
, WindowMessage.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_MOUSEMOVE, IntPtr.Zero);
272
UnsafeNativeMethods.SendMessage(
CriticalHandle
, WindowMessage.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero);
519
return UnsafeNativeMethods.SetForegroundWindow(new HandleRef(null,
CriticalHandle
));
1100
return GetNormalRectLogicalUnits(
CriticalHandle
);
1317
SetOwnerHandle(_ownerWindow != null ? _ownerWindow.
CriticalHandle
: IntPtr.Zero);
2279
UnsafeNativeMethods.UnsafeSendMessage(
CriticalHandle
, WindowMessage.WM_CLOSE, new IntPtr(), new IntPtr());
2639
IntPtr handle =
CriticalHandle
;
2866
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
2949
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
3037
UnsafeNativeMethods.SetWindowText(new HandleRef(this,
CriticalHandle
), title);
3050
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
3854
if (Owner.
CriticalHandle
== IntPtr.Zero)
4138
new HandleRef(this,
CriticalHandle
),
4212
UnsafeNativeMethods.SetWindowLong(new HandleRef(null,
CriticalHandle
),
4220
if ((_ownerWindow != null) && (_ownerWindow.
CriticalHandle
!= _ownerHandle))
5171
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
), NativeMethods.NullHandleRef, 0, 0, 0, 0,
5188
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
), NativeMethods.NullHandleRef, 0, 0, 0, 0,
5229
HandleRef hr = new HandleRef(this,
CriticalHandle
);
5370
UnsafeNativeMethods.SetWindowPos(new HandleRef(null,
CriticalHandle
),
5589
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
5596
UnsafeNativeMethods.ShowWindow(new HandleRef(this,
CriticalHandle
), nCmd);
5949
UnsafeNativeMethods.GetWindowPlacement(new HandleRef(this,
CriticalHandle
), ref wp);
6015
UnsafeNativeMethods.SetWindowPlacement(new HandleRef(this,
CriticalHandle
), ref wp);
6028
IntPtr hMonitor = SafeNativeMethods.MonitorFromWindow(new HandleRef(this,
CriticalHandle
), NativeMethods.MONITOR_DEFAULTTONULL);
6270
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
6444
UnsafeNativeMethods.PostMessage(new HandleRef(this,
CriticalHandle
), WM_APPLYTASKBARITEMINFO, IntPtr.Zero, IntPtr.Zero);
6583
HRESULT hr = _taskbarList.SetProgressState(
CriticalHandle
, tbpf);
6613
return _taskbarList.SetProgressValue(
CriticalHandle
, intValue, precisionValue);
6633
return _taskbarList.SetOverlayIcon(
CriticalHandle
, hicon, null);
6653
return _taskbarList.SetThumbnailTooltip(
CriticalHandle
, tooltip);
6673
if (UnsafeNativeMethods.IsIconic(
CriticalHandle
))
6688
SafeNativeMethods.GetClientRect(new HandleRef(this,
CriticalHandle
), ref physicalClientRc);
6709
return _taskbarList.SetThumbnailClip(
CriticalHandle
, interopRc);
6732
HRESULT hr = _taskbarList.ThumbBarAddButtons(
CriticalHandle
, (uint)nativeButtons.Length, nativeButtons);
6843
return _taskbarList.ThumbBarUpdateButtons(
CriticalHandle
, (uint)nativeButtons.Length, nativeButtons);
6896
if (manager.Dirty &&
CriticalHandle
!= IntPtr.Zero)
6898
UnsafeNativeMethods.CriticalSetWindowLong(new HandleRef(this,
CriticalHandle
), NativeMethods.GWL_STYLE, (IntPtr)_styleDoNotUse);
6899
UnsafeNativeMethods.CriticalSetWindowLong(new HandleRef(this,
CriticalHandle
), NativeMethods.GWL_EXSTYLE, (IntPtr)_styleExDoNotUse);
6901
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
), NativeMethods.NullHandleRef, 0, 0, 0, 0,