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