44 references to CriticalHandle
PresentationFramework (44)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
291
IntPtr topWindow = UnsafeNativeMethods.GetAncestor(new HandleRef(this,
CriticalHandle
), 2/*GA_ROOT*/);
392
handleRef = new HandleRef( this,
CriticalHandle
) ;
src\Framework\MS\Internal\AppModel\SecurityMgrSite.cs (1)
51
phwnd = curWindow.
CriticalHandle
;
src\Framework\System\Windows\Automation\Peers\WindowAutomationPeer.cs (2)
52
UnsafeNativeMethods.GetWindowText(new HandleRef(null, window.
CriticalHandle
), sb, sb.Capacity);
86
IntPtr windowHandle = window.
CriticalHandle
;
src\Framework\System\Windows\Interop\WindowInteropHelper.cs (1)
90
return _window.
CriticalHandle
;
src\Framework\System\Windows\Window.cs (38)
310
UnsafeNativeMethods.SendMessage(
CriticalHandle
, WindowMessage.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_MOUSEMOVE, IntPtr.Zero);
311
UnsafeNativeMethods.SendMessage(
CriticalHandle
, WindowMessage.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero);
579
return UnsafeNativeMethods.SetForegroundWindow(new HandleRef(null,
CriticalHandle
));
1129
return GetNormalRectLogicalUnits(
CriticalHandle
);
1355
SetOwnerHandle(_ownerWindow != null ? _ownerWindow.
CriticalHandle
: IntPtr.Zero);
2312
UnsafeNativeMethods.UnsafeSendMessage(
CriticalHandle
, WindowMessage.WM_CLOSE, new IntPtr(), new IntPtr());
2911
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
3004
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
3097
UnsafeNativeMethods.SetWindowText(new HandleRef(this,
CriticalHandle
), title);
3117
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
3926
if (Owner.
CriticalHandle
== IntPtr.Zero)
4245
new HandleRef(this,
CriticalHandle
),
4323
UnsafeNativeMethods.SetWindowLong(new HandleRef(null,
CriticalHandle
),
4331
if ((_ownerWindow != null) && (_ownerWindow.
CriticalHandle
!= _ownerHandle))
5337
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
), NativeMethods.NullHandleRef, 0, 0, 0, 0,
5354
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
), NativeMethods.NullHandleRef, 0, 0, 0, 0,
5403
HandleRef hr = new HandleRef(this,
CriticalHandle
);
5565
UnsafeNativeMethods.SetWindowPos(new HandleRef(null,
CriticalHandle
),
5806
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
5813
UnsafeNativeMethods.ShowWindow(new HandleRef(this,
CriticalHandle
), nCmd);
6191
UnsafeNativeMethods.GetWindowPlacement(new HandleRef(this,
CriticalHandle
), ref wp);
6257
UnsafeNativeMethods.SetWindowPlacement(new HandleRef(this,
CriticalHandle
), ref wp);
6280
IntPtr hMonitor = SafeNativeMethods.MonitorFromWindow(new HandleRef(this,
CriticalHandle
), NativeMethods.MONITOR_DEFAULTTONULL);
6528
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
),
6717
UnsafeNativeMethods.PostMessage(new HandleRef(this,
CriticalHandle
), WM_APPLYTASKBARITEMINFO, IntPtr.Zero, IntPtr.Zero);
6858
HRESULT hr = _taskbarList.SetProgressState(
CriticalHandle
, tbpf);
6892
return _taskbarList.SetProgressValue(
CriticalHandle
, intValue, precisionValue);
6916
return _taskbarList.SetOverlayIcon(
CriticalHandle
, hicon, null);
6940
return _taskbarList.SetThumbnailTooltip(
CriticalHandle
, tooltip);
6966
if (UnsafeNativeMethods.IsIconic(
CriticalHandle
))
6981
SafeNativeMethods.GetClientRect(new HandleRef(this,
CriticalHandle
), ref physicalClientRc);
7002
return _taskbarList.SetThumbnailClip(
CriticalHandle
, interopRc);
7029
HRESULT hr = _taskbarList.ThumbBarAddButtons(
CriticalHandle
, (uint)nativeButtons.Length, nativeButtons);
7144
return _taskbarList.ThumbBarUpdateButtons(
CriticalHandle
, (uint)nativeButtons.Length, nativeButtons);
7205
if (manager.Dirty &&
CriticalHandle
!= IntPtr.Zero)
7207
UnsafeNativeMethods.CriticalSetWindowLong(new HandleRef(this,
CriticalHandle
), NativeMethods.GWL_STYLE, (IntPtr)_styleDoNotUse.Value);
7208
UnsafeNativeMethods.CriticalSetWindowLong(new HandleRef(this,
CriticalHandle
), NativeMethods.GWL_EXSTYLE, (IntPtr)_styleExDoNotUse.Value);
7210
UnsafeNativeMethods.SetWindowPos(new HandleRef(this,
CriticalHandle
), NativeMethods.NullHandleRef, 0, 0, 0, 0,