Implemented interface member:
property
Handle
Windows.Win32.Foundation.IHandle<THandle>.Handle
2 writes to Handle
System.Private.Windows.Core (2)
Windows\Win32\Foundation\HandleRef.cs (2)
32
Handle
= handle;
39
Handle
= handle?.Handle ?? default;
26 references to Handle
System.Private.Windows.Core (5)
Windows\Win32\Foundation\HandleRef.cs (5)
43
=> other.
Handle
.Equals(
Handle
) && Equals(other.Wrapper, Wrapper);
47
public override int GetHashCode() => HashCode.Combine(Wrapper,
Handle
);
59
THandle local = handle.
Handle
;
74
public bool IsNull =>
Handle
.Equals(default);
System.Windows.Forms (21)
System\Windows\Forms\Application.cs (1)
1198
((WINDOW_STYLE)PInvokeCore.GetWindowLong(handle.
Handle
, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD),
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (9)
81
if (_activeHwnd.
Handle
!= value.
Handle
)
86
if (_activeHwnd.
Handle
!= IntPtr.Zero)
88
control = Control.FromHandle(_activeHwnd.
Handle
);
98
control = Control.FromHandle(_activeHwnd.
Handle
);
194
if (!ActiveHwnd.
Handle
.IsNull)
197
Control? control = Control.FromHandle(ActiveHwnd.
Handle
);
542
if (activeWindowHandle.
Handle
.IsNull)
547
else if (Control.FromChildHandle(activeWindowHandle.
Handle
) is not ToolStripDropDown
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (3)
234
result = RunDialog(ownerHwnd.
Handle
) ? DialogResult.OK : DialogResult.Cancel;
243
nint currentSubClass = PInvokeCore.GetWindowLong(ownerHwnd.
Handle
, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
246
PInvokeCore.SetWindowLong(ownerHwnd.
Handle
, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _priorWindowProcedure);
System\Windows\Forms\Dialogs\MessageBox.cs (1)
482
return (DialogResult)PInvoke.MessageBox(handle.
Handle
, text, caption, style);
System\Windows\Forms\Form.cs (6)
779
cp.Parent = GetSafeHandle(dialogOwner).
Handle
;
3739
desktop = Screen.FromHandle(ownerHandle.
Handle
);
5506
if (!ownerHwnd.IsNull && ownerHwnd.
Handle
!= HWND)
5733
if (!ownerHwnd.IsNull && ownerHwnd.
Handle
!= HWND)
5736
if (PInvokeCore.GetWindowLong(ownerHwnd.
Handle
, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == Handle)
5774
activeHwnd = ownerHwnd.
Handle
;
System\Windows\Forms\Help\Help.cs (1)
217
PInvoke.ShellExecute(handle.
Handle
, lpOperation: null, executable ?? fileName, executable is not null ? fileName : null, lpDirectory: null, SHOW_WINDOW_CMD.SW_NORMAL);