3 instantiations of HWND
System.Private.Windows.Core (3)
Windows.Win32.HWND.g.cs (3)
41 public static explicit operator HWND(void* value) => new HWND(value); 57 public static explicit operator HWND(IntPtr value) => new HWND((void*)value.ToPointer()); 59 public static explicit operator HWND(UIntPtr value) => new HWND((void*)value.ToPointer());
1566 references to HWND
System.Drawing.Common (3)
System\Drawing\Graphics.cs (1)
121Gdip.CheckStatus(PInvokeGdiPlus.GdipCreateFromHWND((HWND)hwnd, &nativeGraphics));
System\Drawing\Printing\PageSettings.cs (1)
326HWND.Null,
Windows.Win32.PInvoke.winspool.drv.g.cs (1)
67 internal static extern unsafe int DocumentProperties(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.HANDLE hPrinter, winmdroot.Foundation.PWSTR pDeviceName, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pDevModeOutput, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pDevModeInput, uint fMode);
System.Drawing.Common.Tests (4)
Helpers.cs (2)
130internal static Rectangle GetHWndRect(HWND hwnd) 141private static Rectangle GetMonitorRectForWindow(HWND hwnd)
System\Drawing\GraphicsTests.cs (2)
219Rectangle expected = Helpers.GetHWndRect((HWND)hwnd); 228Rectangle expected = Helpers.GetHWndRect((HWND)hwnd);
System.Private.Windows.Core (199)
System\Private\Windows\Ole\DragDropHelper.cs (2)
44public static void DragEnter(HWND targetWindowHandle, IDragEvent e) 59public static void DragEnter(HWND targetWindowHandle, IComVisibleDataObject dataObject, ref Point point, DROPEFFECT effect)
Windows.Win32.HWND.g.cs (28)
25 : IEquatable<HWND> 35 internal static HWND Null => default; 39 public static implicit operator void*(HWND value) => value.Value; 41 public static explicit operator HWND(void* value) => new HWND(value); 43 public static bool operator ==(HWND left, HWND right) => left.Value == right.Value; 45 public static bool operator !=(HWND left, HWND right) => !(left == right); 47 public bool Equals(HWND other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HWND other && this.Equals(other); 55 public static implicit operator IntPtr(HWND value) => new IntPtr(value.Value); 57 public static explicit operator HWND(IntPtr value) => new HWND((void*)value.ToPointer()); 59 public static explicit operator HWND(UIntPtr value) => new HWND((void*)value.ToPointer()); 61 public static implicit operator HANDLE(HWND value) => new HANDLE(value.Value); 63 internal static readonly winmdroot.Foundation.HWND HWND_BROADCAST = (winmdroot.Foundation.HWND)(IntPtr)(65535); 65 internal static readonly winmdroot.Foundation.HWND HWND_MESSAGE = (winmdroot.Foundation.HWND)(IntPtr)(-3); 67 internal static readonly winmdroot.Foundation.HWND HWND_DESKTOP = (winmdroot.Foundation.HWND)(IntPtr)(0); 73 internal static readonly winmdroot.Foundation.HWND HWND_TOP = (winmdroot.Foundation.HWND)(IntPtr)(0); 79 internal static readonly winmdroot.Foundation.HWND HWND_BOTTOM = (winmdroot.Foundation.HWND)(IntPtr)(1); 85 internal static readonly winmdroot.Foundation.HWND HWND_TOPMOST = (winmdroot.Foundation.HWND)(IntPtr)(-1); 91 internal static readonly winmdroot.Foundation.HWND HWND_NOTOPMOST = (winmdroot.Foundation.HWND)(IntPtr)(-2);
Windows.Win32.IDragSourceHelper.g.cs (7)
103 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 104 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 114 private static winmdroot.Foundation.HRESULT InitializeFromWindow(IDragSourceHelper* pThis, winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 148 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 150 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 182 internal delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 213 unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
Windows.Win32.IDragSourceHelper2.g.cs (7)
90 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 91 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 101 private static winmdroot.Foundation.HRESULT InitializeFromWindow(IDragSourceHelper2* pThis, winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 118 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 120 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper2*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 188 internal delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 222 unsafe new winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
Windows.Win32.IDropSourceNotify.g.cs (5)
58 private static winmdroot.Foundation.HRESULT DragEnterTarget(IDropSourceNotify* pThis, winmdroot.Foundation.HWND hwndTarget) 81 public winmdroot.Foundation.HRESULT DragEnterTarget(winmdroot.Foundation.HWND hwndTarget) 83 return ((delegate *unmanaged [Stdcall]<IDropSourceNotify*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDropSourceNotify*)Unsafe.AsPointer(ref this), hwndTarget); 143 internal delegate *unmanaged [Stdcall]<IDropSourceNotify*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> DragEnterTarget_4; 173winmdroot.Foundation.HRESULT DragEnterTarget(winmdroot.Foundation.HWND hwndTarget);
Windows.Win32.IDropTargetHelper.g.cs (7)
55 /// <inheritdoc cref="DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 56 internal unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 68 private static winmdroot.Foundation.HRESULT DragEnter(IDropTargetHelper* pThis, winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 106 public unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 108 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDropTargetHelper*)Unsafe.AsPointer(ref this), hwndTarget, pDataObject, ppt, dwEffect); 302 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> DragEnter_4; 341 unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect);
Windows.Win32.MSG.g.cs (1)
33 internal winmdroot.Foundation.HWND hwnd;
Windows.Win32.PInvokeCore.OLE32.dll.g.cs (2)
228 internal static extern unsafe winmdroot.Foundation.HRESULT RegisterDragDrop(winmdroot.Foundation.HWND hwnd, winmdroot.System.Ole.IDropTarget* pDropTarget); 262 internal static extern winmdroot.Foundation.HRESULT RevokeDragDrop(winmdroot.Foundation.HWND hwnd);
Windows.Win32.PInvokeCore.SHELL32.dll.g.cs (1)
38 internal static extern void DragAcceptFiles(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.BOOL fAccept);
Windows.Win32.PInvokeCore.USER32.dll.g.cs (47)
26 /// <inheritdoc cref="BeginPaint(winmdroot.Foundation.HWND, winmdroot.Graphics.Gdi.PAINTSTRUCT*)"/> 28 internal static unsafe winmdroot.Graphics.Gdi.HDC BeginPaint(winmdroot.Foundation.HWND hWnd, out winmdroot.Graphics.Gdi.PAINTSTRUCT lpPaint) 49 internal static extern unsafe winmdroot.Graphics.Gdi.HDC BeginPaint(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.PAINTSTRUCT* lpPaint); 83 internal static extern unsafe winmdroot.Foundation.LRESULT CallWindowProc(delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,global::Windows.Win32.Foundation.WPARAM,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.LRESULT> lpPrevWndFunc, winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 146 internal static extern winmdroot.Foundation.LRESULT DefWindowProc(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 227 /// <inheritdoc cref="EndPaint(winmdroot.Foundation.HWND, winmdroot.Graphics.Gdi.PAINTSTRUCT*)"/> 229 internal static unsafe winmdroot.Foundation.BOOL EndPaint(winmdroot.Foundation.HWND hWnd, in winmdroot.Graphics.Gdi.PAINTSTRUCT lpPaint) 248 internal static extern unsafe winmdroot.Foundation.BOOL EndPaint(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.PAINTSTRUCT* lpPaint); 272 internal static extern unsafe winmdroot.Foundation.BOOL EnumChildWindows(winmdroot.Foundation.HWND hWndParent, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpEnumFunc, winmdroot.Foundation.LPARAM lParam); 327 internal static extern unsafe winmdroot.Foundation.BOOL EnumThreadWindows(uint dwThreadId, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpfn, winmdroot.Foundation.LPARAM lParam); 346 internal static unsafe winmdroot.Foundation.BOOL EnumWindows(delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpEnumFunc, winmdroot.Foundation.LPARAM lParam) 354 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpEnumFunc, winmdroot.Foundation.LPARAM lParam); 357 /// <inheritdoc cref="GetClientRect(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*)"/> 359 internal static unsafe winmdroot.Foundation.BOOL GetClientRect(winmdroot.Foundation.HWND hWnd, out winmdroot.Foundation.RECT lpRect) 382 internal static unsafe winmdroot.Foundation.BOOL GetClientRect(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT* lpRect) 390 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT* lpRect); 436 internal static extern winmdroot.Graphics.Gdi.HDC GetDC(winmdroot.Foundation.HWND hWnd); 451 internal static extern winmdroot.Graphics.Gdi.HDC GetDCEx(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hrgnClip, winmdroot.Graphics.Gdi.GET_DCX_FLAGS flags); 462 internal static extern winmdroot.Foundation.HWND GetDesktopWindow(); 473 internal static extern winmdroot.Foundation.HWND GetForegroundWindow(); 603 /// <inheritdoc cref="GetWindowRect(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*)"/> 605 internal static unsafe winmdroot.Foundation.BOOL GetWindowRect(winmdroot.Foundation.HWND hWnd, out winmdroot.Foundation.RECT lpRect) 631 internal static unsafe winmdroot.Foundation.BOOL GetWindowRect(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT* lpRect) 639 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT* lpRect); 663 internal static int GetWindowText(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PWSTR lpString, int nMaxCount) 671 static extern int LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PWSTR lpString, int nMaxCount); 688 internal static int GetWindowTextLength(winmdroot.Foundation.HWND hWnd) 696 static extern int LocalExternFunction(winmdroot.Foundation.HWND hWnd); 716 internal static extern unsafe uint GetWindowThreadProcessId(winmdroot.Foundation.HWND hWnd, [Optional] uint* lpdwProcessId); 783 /// <inheritdoc cref="MapWindowPoints(winmdroot.Foundation.HWND, winmdroot.Foundation.HWND, global::System.Drawing.Point*, uint)"/> 785 internal static unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, ReadOnlySpan<global::System.Drawing.Point> lpPoints) 810 internal static extern unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, global::System.Drawing.Point* lpPoints, uint cPoints); 858 internal static extern winmdroot.Graphics.Gdi.HMONITOR MonitorFromWindow(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Gdi.MONITOR_FROM_FLAGS dwFlags); 860 /// <inheritdoc cref="PeekMessage(winmdroot.UI.WindowsAndMessaging.MSG*, winmdroot.Foundation.HWND, uint, uint, winmdroot.UI.WindowsAndMessaging.PEEK_MESSAGE_REMOVE_TYPE)"/> 862 internal static unsafe winmdroot.Foundation.BOOL PeekMessage(out winmdroot.UI.WindowsAndMessaging.MSG lpMsg, winmdroot.Foundation.HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax, winmdroot.UI.WindowsAndMessaging.PEEK_MESSAGE_REMOVE_TYPE wRemoveMsg) 900 internal static extern unsafe winmdroot.Foundation.BOOL PeekMessage(winmdroot.UI.WindowsAndMessaging.MSG* lpMsg, winmdroot.Foundation.HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax, winmdroot.UI.WindowsAndMessaging.PEEK_MESSAGE_REMOVE_TYPE wRemoveMsg); 928 internal static winmdroot.Foundation.BOOL PostMessage(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam) 936 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 986 internal static extern int ReleaseDC(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HDC hDC); 1013 internal static winmdroot.Foundation.LRESULT SendMessage(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam) 1021 static extern winmdroot.Foundation.LRESULT LocalExternFunction(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 1094 internal static extern winmdroot.Foundation.HWND WindowFromDC(winmdroot.Graphics.Gdi.HDC hDC);
Windows.Win32.UI_Shell_IDragSourceHelper_Extensions.g.cs (2)
33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject)
Windows.Win32.UI_Shell_IDragSourceHelper2_Extensions.g.cs (2)
33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper2.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper2.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject)
Windows.Win32.UI_Shell_IDropTargetHelper_Extensions.g.cs (2)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT DragEnter(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect)
Windows\Win32\Foundation\HWND.cs (4)
6internal partial struct HWND : IHandle<HWND> 8HWND IHandle<HWND>.Handle => this; 9object? IHandle<HWND>.Wrapper => null;
Windows\Win32\Foundation\LPARAM.cs (3)
22public static explicit operator HWND(LPARAM value) => (HWND)value.Value; 24public static unsafe explicit operator LPARAM(HWND value) => (LPARAM)value.Value;
Windows\Win32\Foundation\LRESULT.cs (2)
12public static explicit operator HWND(LRESULT value) => (HWND)value.Value;
Windows\Win32\Foundation\WPARAM.cs (3)
13public static explicit operator HWND(WPARAM value) => (HWND)(nint)value.Value; 14public static explicit operator WPARAM(HWND value) => new((nuint)value.Value);
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (3)
9/// Helper to scope lifetime of an HDC retrieved via <see cref="PInvokeCore.BeginPaint(HWND, out PAINTSTRUCT)"/> 26public HWND HWND { get; } 29public BeginPaintScope(HWND hwnd)
Windows\Win32\Graphics\Gdi\GetDcScope.cs (7)
7/// Helper to scope lifetime of an <see cref="Gdi.HDC"/> retrieved via <see cref="PInvokeCore.GetDC(HWND)"/> and 8/// <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. Releases the <see cref="Gdi.HDC"/> (if any) 20public HWND HWND { get; } 22public GetDcScope(HWND hwnd) 29/// Creates a <see cref="Gdi.HDC"/> using <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. 40public GetDcScope(HWND hwnd, HRGN hrgnClip, GET_DCX_FLAGS flags) 55public static GetDcScope ScreenDC => new(HWND.Null);
Windows\Win32\PInvokeCore.CallWindowProc.cs (2)
9where T : IHandle<HWND> 12(delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, LRESULT>)lpPrevWndFunc,
Windows\Win32\PInvokeCore.DragAcceptFiles.cs (2)
8/// <inheritdoc cref="DragAcceptFiles(HWND, BOOL)"/> 9public static void DragAcceptFiles<T>(T hWnd, BOOL fAccept) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.EnumChildWindows.cs (3)
11public delegate BOOL EnumChildWindowsCallback(HWND hWnd); 14where T : IHandle<HWND> 32private static BOOL EnumChildWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (2)
11public delegate BOOL EnumThreadWindowsCallback(HWND hWnd); 33private static BOOL HandleEnumThreadWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.EnumWindows.cs (2)
11public delegate BOOL EnumWindowsCallback(HWND hWnd); 30private static BOOL EnumWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.GetClassLong.cs (3)
13private static extern nint GetClassLongW(HWND hWnd, GET_CLASS_LONG_INDEX nIndex); 17private static extern nint GetClassLongPtrW(HWND hWnd, GET_CLASS_LONG_INDEX nIndex); 19public static IntPtr GetClassLong(HWND hWnd, GET_CLASS_LONG_INDEX nIndex)
Windows\Win32\PInvokeCore.GetClientRect.cs (2)
8/// <inheritdoc cref="GetClientRect(HWND, out RECT)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetWindowLong.cs (3)
11private static extern nint GetWindowLongW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex); 14private static extern nint GetWindowLongPtrW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex); 28where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetWindowRect.cs (2)
8/// <inheritdoc cref="GetWindowRect(HWND, out RECT)"/> 9public static BOOL GetWindowRect<T>(T hWnd, out RECT lpRect) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
15public static unsafe string GetWindowText<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetWindowTextLength.cs (2)
8/// <inheritdoc cref="GetWindowTextLength(HWND)"/> 9public static int GetWindowTextLength<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetWindowThreadProcessId.cs (2)
8/// <inheritdoc cref="GetWindowThreadProcessId(HWND, uint*)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvokeCore.MapWindowPoints.cs (8)
10/// <inheritdoc cref="MapWindowPoints(HWND, HWND, Point*, uint)"/> 12where TFrom : IHandle<HWND> 13where TTo : IHandle<HWND> 24/// <inheritdoc cref="MapWindowPoints(HWND, HWND, Point*, uint)"/> 26where TFrom : IHandle<HWND> 27where TTo : IHandle<HWND>
Windows\Win32\PInvokeCore.PeekMessage.cs (2)
8/// <inheritdoc cref="PeekMessage(MSG*, HWND, uint, uint, PEEK_MESSAGE_REMOVE_TYPE)"/> 15where T : IHandle<HWND>
Windows\Win32\PInvokeCore.PostMessage.cs (2)
8/// <inheritdoc cref="PostMessage(HWND, uint, WPARAM, LPARAM)"/> 14where T : IHandle<HWND>
Windows\Win32\PInvokeCore.RegisterDragDrop.cs (2)
10/// <inheritdoc cref="RegisterDragDrop(HWND, IDropTarget*)"/> 12where T : IHandle<HWND>
Windows\Win32\PInvokeCore.RevokeDragDrop.cs (2)
8/// <inheritdoc cref="RevokeDragDrop(HWND)"/> 9public static HRESULT RevokeDragDrop<T>(T hwnd) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.SendMessage.cs (11)
8/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 13LPARAM lParam = default) where T : IHandle<HWND> 20/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 25LPARAM lParam = default) where THwnd : IHandle<HWND> where TWParam : IHandle<HWND> 32/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 37string? lParam) where T : IHandle<HWND> 45/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 51where THwnd : IHandle<HWND> 60/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 66where THwnd : IHandle<HWND>
Windows\Win32\PInvokeCore.SetClassLong.cs (3)
12private static extern nint SetClassLongW(HWND hwnd, GET_CLASS_LONG_INDEX nIndex, nint dwNewLong); 15private static extern nint SetClassLongPtrW(HWND hwnd, GET_CLASS_LONG_INDEX nIndex, nint dwNewLong); 17public static nint SetClassLong(HWND hWnd, GET_CLASS_LONG_INDEX nIndex, nint dwNewLong)
Windows\Win32\PInvokeCore.SetWindowLong.cs (6)
11private static extern nint SetWindowLongW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex, nint dwNewLong); 14private static extern nint SetWindowLongPtrW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex, nint dwNewLong); 17where T : IHandle<HWND> 27where THwnd : IHandle<HWND> 28where TNewValue : IHandle<HWND> 36where T : IHandle<HWND>
Windows\Win32\UI\Controls\Dialogs\PRINTDLGEXW.cs (1)
52public HWND hwndOwner;
Windows\Win32\UI\WindowsAndMessaging\WNDPROC.cs (1)
6internal delegate LRESULT WNDPROC(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam);
System.Private.Windows.GdiPlus (5)
Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (3)
1118 /// <inheritdoc cref="GdipCreateFromHWND(winmdroot.Foundation.HWND, winmdroot.Graphics.GdiPlus.GpGraphics**)"/> 1119 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFromHWND(winmdroot.Foundation.HWND hwnd, ref winmdroot.Graphics.GdiPlus.GpGraphics* graphics) 1129 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFromHWND(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.GdiPlus.GpGraphics** graphics);
Windows\Win32\Graphics\GdiPlus\GpRegionExtensions.cs (2)
20/// Creates a native region from a GDI+ <see cref="GpRegion"/> and <see cref="HWND"/>. 22public static RegionScope GetRegionScope(this IPointer<GpRegion> region, HWND hwnd)
System.Windows.Forms (545)
System\Windows\Forms\Accessibility\AccessibleObject.cs (6)
2512/// <inheritdoc cref="IOleWindow.GetWindow(HWND*)"/> 2532HRESULT IOleWindow.Interface.GetWindow(HWND* phwnd) 2554*phwnd = HWND.Null; 2729(HWND)handle, 2757(HWND)handle, 2998HRESULT IRawElementProviderHwndOverride.Interface.GetOverrideProviderForHwnd(HWND hwnd, IRawElementProviderSimple** pRetVal)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (7)
22private HWND _handle = HWND.Null; 255_handle = (HWND)value; 268internal HWND HandleInternal => _handle; 472new HandleRef<HWND>(Owner, HandleInternal), 524=> UIAHelper.WindowHandleToVariant(Owner?.InternalHandle ?? HWND.Null), 544PInvoke.UiaHostProviderFromHwnd(new HandleRef<HWND>(this, HandleInternal), out IRawElementProviderSimple* provider);
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (2)
41UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(_labelEdit.TryGetTarget(out var target) ? target.HWND : HWND.Null), 79_labelEdit.TryGetTarget(out var target) ? (int)target.HWND : (int)HWND.Null
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (4)
22HWND hwnd, 45var functionPointer = (delegate* unmanaged[Stdcall]<HWINEVENTHOOK, uint, HWND, int, int, uint, uint, void>) 71public bool IsHandleCreated => Handle != HWND.Null; 118private void WinEventProcCallback(HWINEVENTHOOK hWinEventHook, uint eventId, HWND hwnd, int idObject, int idChild, uint idEventThread, uint dwmsEventTime)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (4)
25private readonly IHandle<HWND> _owningChildEdit; 228PInvokeCore.MapWindowPoints(_owningChildEdit.Handle, HWND.Null, ref pt); 272if (PInvokeCore.MapWindowPoints(HWND.Null, _owningChildEdit.Handle, ref clientLocation) == 0) 308PInvokeCore.MapWindowPoints(_owningChildEdit.Handle, HWND.Null, ref r);
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (4)
608HRESULT IOleInPlaceFrame.Interface.GetWindow(HWND* phwnd) 701HRESULT IOleInPlaceFrame.Interface.SetMenu(HMENU hmenuShared, nint holemenu, HWND hwndActiveObject) => HRESULT.E_NOTIMPL; 711HRESULT IOleInPlaceUIWindow.Interface.GetWindow(HWND* phwnd) 729HRESULT IOleWindow.Interface.GetWindow(HWND* phwnd)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (2)
263public HWND Hwnd => GetControl()?.HWND ?? HWND.Null;
System\Windows\Forms\ActiveX\AxHost.cs (16)
123private HWND _hwndFocus; 817private HWND GetHandleNoCreate() => IsHandleCreated ? (HWND)Handle : default; 1249HWND handle = HWND; 1760hwnd = (ContainingControl is null) ? HWND.Null : ContainingControl.HWND, 2159parent is null ? HWND.Null : parent.HWND, 2971hWndOwner = (ContainingControl is null) ? HWND.Null : ContainingControl.HWND, 3026HWND handle = ContainingControl is null ? HWND.Null : ContainingControl.HWND; 3107_hwndFocus = (HWND)(nint)m.WParamInternal; 3139HWND hwnd = HWND.Null; 3142Application.ParkHandle(new HandleRef<HWND>(this, hwnd), DpiAwarenessContext); 3207HWND handle = GetHandleNoCreate(); 3213(delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, LRESULT>)wndProc, 3238private void AttachWindow(HWND hwnd)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (8)
102HWND hwnd, 110HWND hwnd, 305HWND hwnd = HWND.Null; 332HRESULT IOleWindow.Interface.GetWindow(HWND* phwnd) 338HRESULT IOleInPlaceSite.Interface.GetWindow(HWND* phwnd) 345*phwnd = _host.ParentInternal?.HWND ?? HWND.Null; 402lpFrameInfo->hwndFrame = _host.ParentInternal?.HWND ?? HWND.Null;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (11)
270internal HWND HWNDParent { get; private set; } 331/// <inheritdoc cref="IOleObject.DoVerb(int, MSG*, IOleClientSite*, int, HWND, RECT*)"/> 337HWND hwndParent, 356HWND hwnd = lpmsg->hwnd; 360HWND hwndMap = hwnd.IsNull ? hwndParent : hwnd; 746/// <inheritdoc cref="IOleWindow.GetWindow(HWND*)"/> 747internal unsafe HRESULT GetWindow(HWND* phwnd) 756*phwnd = HWND.Null; 760*phwnd = (HWND)_control.Handle; 824HWND hwndParent = default; 1810HWND hWndParent = PInvoke.GetParent(_control);
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (8)
83/// <inheritdoc cref="IOleWindow.GetWindow(HWND*)"/> 84HRESULT IOleInPlaceActiveObject.Interface.GetWindow(HWND* phwnd) 116/// <inheritdoc cref="IOleWindow.GetWindow(HWND*)"/> 117HRESULT IOleInPlaceObject.Interface.GetWindow(HWND* phwnd) => ActiveXInstance.GetWindow(phwnd); 205/// <inheritdoc cref="IOleObject.DoVerb(int, MSG*, IOleClientSite*, int, HWND, RECT*)"/> 211HWND hwndParent, 347/// <inheritdoc cref="IOleWindow.GetWindow(HWND*)"/> 348HRESULT IOleWindow.Interface.GetWindow(HWND* phwnd) => ((IOleInPlaceObject.Interface)this).GetWindow(phwnd);
System\Windows\Forms\Application.ComponentManager.cs (4)
201return PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE); 231if (PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 239PInvoke.GetMessage(&msg, HWND.Null, 0, 0); 309if (!PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.ComponentThreadContext.cs (5)
292if (PInvoke.GetMessage(&msg, HWND.Null, 0, 0)) 309else if (!PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 454if (!PInvokeCore.PeekMessage(&temp, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 478HWND IMsoComponent.Interface.HwndGetWindow(msocWindow dwWhich, uint dwReserved) => HWND.Null;
System\Windows\Forms\Application.cs (6)
360HWND hwnd = PInvoke.FindWindow(s_systemTrackerWindow, s_systemTrackerWindow); 733private static unsafe BOOL SendThemeChanged(HWND hwnd) 758private static BOOL SendThemeChangedRecursive(HWND handle) 1167internal static unsafe ThreadContext GetContextForHandle<T>(T handle) where T : IHandle<HWND> 1230internal static void ParkHandle(HandleRef<HWND> handle, DPI_AWARENESS_CONTEXT dpiAwarenessContext) 1272internal static void UnparkHandle(IHandle<HWND> handle, DPI_AWARENESS_CONTEXT context)
System\Windows\Forms\Application.LightThreadContext.cs (4)
64if (!PInvokeCore.PeekMessage(&temp, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 83if (PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE)) 91PInvoke.GetMessage(&msg, HWND.Null, 0, 0); 134if (!PInvokeCore.PeekMessage(&msg, HWND.Null, 0, 0, PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE))
System\Windows\Forms\Application.MarshallingControl.cs (1)
32cp.Parent = HWND.HWND_MESSAGE;
System\Windows\Forms\Application.ModalApplicationContext.cs (2)
30HWND parentHandle = (HWND)PInvokeCore.GetWindowLong(MainForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
System\Windows\Forms\Application.ParkingWindow.cs (5)
38cp.Parent = HWND.HWND_MESSAGE; 92HWND hwndChild = PInvoke.GetWindow(this, GET_WINDOW_CMD.GW_CHILD); 107internal void ParkHandle<T>(T handle) where T : IHandle<HWND> 114PInvoke.SetParent(handle, (IHandle<HWND>)this); 120internal void UnparkHandle<T>(T handle) where T : IHandle<HWND>
System\Windows\Forms\Application.ThreadContext.cs (4)
729HWND hwndOwner = default; 750hwndOwner = (HWND)PInvokeCore.GetWindowLong(CurrentForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 878msg.hwnd = (HWND)message.HWnd; 972HWND hwndRoot = PInvoke.GetAncestor(msg.hwnd, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Application.ThreadWindows.cs (7)
15private readonly List<HWND> _windows; 16private HWND _activeHwnd; 17private HWND _focusedHwnd; 23_windows = new List<HWND>(16); 28private BOOL Callback(HWND hwnd) 47foreach (HWND hwnd in _windows) 66foreach (HWND hwnd in _windows)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (3)
51HWND handle = parent is null ? HWND.Null : (HWND)parent.Handle;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (2)
31HWND parentHandle = PInvoke.GetFocus(); 39parentHandle = (HWND)parent.Handle;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (2)
28HWND parentHandle = PInvoke.GetFocus(); 79(HWND)parentHandle,
System\Windows\Forms\Control.cs (56)
48IHandle<HWND> 1311HWND focusHwnd = PInvoke.GetFocus(); 2228internal HWND HWNDInternal => _window.HWND; 2268HWND parentHandle = PInvoke.GetParent(this); 2269HWND lastParentHandle = parentHandle; 2339HWND prev; 2340HWND next; 2341HWND start = parent is not null ? parent.HWND : HWND; 2363internal HWND InternalHandle => !IsHandleCreated ? default : (HWND)Handle; 4410HWND.HWND_TOP, 5232HWND hwnd = (HWND)handle; 5251internal static HandleRef<HWND> GetHandleRef(HWND hwnd) => new(FromChildHandle(hwnd), hwnd); 5316HWND hwnd = PInvoke.ChildWindowFromPointEx(this, pt, (CWP_FLAGS)value); 5474for (HWND hWndChild = PInvoke.GetWindow(this, GET_WINDOW_CMD.GW_CHILD); 5476hWndChild = PInvoke.GetWindow(new HandleRef<HWND>(this, hWndChild), GET_WINDOW_CMD.GW_HWNDNEXT)) 5792internal static HandleRef<HWND> GetSafeHandle(IWin32Window window) 5801HWND hwnd = (HWND)window.Handle; 7992PInvokeCore.GetClientRect(new HandleRef<HWND>(_window, InternalHandle), out RECT rect); 8587PInvokeCore.MapWindowPoints((HWND)default, this, ref p); 8596PInvokeCore.MapWindowPoints(this, (HWND)default, ref p); 9248HWND parentHandle = PInvoke.GetParent(this); 9395PInvokeCore.MapWindowPoints(HWND.Null, this, ref rect); 9405PInvokeCore.MapWindowPoints(this, HWND.Null, ref rect); 9445internal virtual void ReleaseUiaProvider(HWND handle) 10057HWND.HWND_BOTTOM, 10198PInvoke.SetWindowPos(this, HWND.Null, x, y, width, height, flags); 10263private void SetParentHandle(HWND value) 10269HWND parentHandle = PInvoke.GetParent(this); 10326if (PInvoke.SetParent(this, HWND.Null).IsNull) 10457HWND.Null, 10518HWND.HWND_TOP, 10528static unsafe void PrepareDarkMode(HWND hwnd, bool darkModeEnabled) 10869PInvokeCore.MapWindowPoints(HWND.Null, PInvoke.GetParent(this), ref rect); 10960HWND hWnd = control.InternalHandle; 10999HWND parentHandle = PInvoke.GetParent(this); 11029HWND previous = HWND.HWND_TOP; 11109HWND.HWND_TOP, 11128internal void WindowAssignHandle(HWND handle, bool value) 11142HWND parentHandle = HWND; 11143HWND lastParentHandle = parentHandle; 11796HWND dialogItem = PInvoke.GetDlgItem(m.HWND, controlId); 11803dialogItem = (HWND)controlId; 11812HWND handle = NativeWindow.GetHandleFromWindowId((short)m.WParamInternal.LOWORD); 11981if ((HWND)m.WParamInternal == InternalHandle && m.LParamInternal.LOWORD == PInvoke.HTCLIENT) 12031HWND hWnd = HWND.Null; 12035hWnd = (HWND)m.LParamInternal; 12951HWND IHandle<HWND>.Handle => HWND; 12953internal HWND HWND => (HWND)Handle;
System\Windows\Forms\Control.Ime.cs (14)
268HWND focusHandle = PInvoke.GetFocus(); 698HIMC oldContext = PInvoke.ImmAssociateContext((HWND)handle, (HIMC)IntPtr.Zero); 712HIMC inputContext = PInvoke.ImmGetContext((HWND)handle); 722PInvoke.ImmAssociateContext((HWND)handle, inputContext); 727PInvoke.ImmAssociateContext((HWND)handle, s_originalImeContext); 732PInvoke.ImmReleaseContext((HWND)handle, inputContext); 760inputContext = PInvoke.ImmGetContext((HWND)handle); 810PInvoke.ImmReleaseContext((HWND)handle, inputContext); 821HIMC inputContext = PInvoke.ImmGetContext((HWND)handle); 828PInvoke.ImmReleaseContext((HWND)handle, inputContext); 905HIMC inputContext = PInvoke.ImmGetContext((HWND)handle); 915PInvoke.ImmReleaseContext((HWND)handle, inputContext); 932HIMC inputContext = PInvoke.ImmGetContext((HWND)handle); 941succeeded = PInvoke.ImmReleaseContext((HWND)handle, inputContext);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
61ScaleHelper.IsScalingRequirementMet ? Control.HWNDInternal : HWND.Null);
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
91HWND hwnd) 126DrawButtonForHandle(g, bounds, focused, state, HWND.Null);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (5)
74HWND hwnd = default) 110CheckBoxState state) => DrawCheckBox(g, glyphLocation, textBounds, checkBoxText, font, flags, focused, state, HWND.Null); 121HWND hwnd) 232internal static Size GetGlyphSize(IDeviceContext deviceContext, CheckBoxState state, HWND hwnd = default) 243internal static Size GetGlyphSize(HDC hdc, CheckBoxState state, HWND hwnd)
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (9)
51DrawRadioButton(g, glyphLocation, state, HWND.Null); 57HWND hwnd) 68HWND hwnd) 113DrawRadioButton(g, glyphLocation, textBounds, radioButtonText, font, flags, focused, state, HWND.Null); 125HWND hwnd) 201HWND.Null); 214HWND hwnd) 254return GetGlyphSize(hdc, state, HWND.Null); 257internal static Size GetGlyphSize(HDC hdc, RadioButtonState state, HWND hwnd)
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (7)
16private static readonly Dictionary<HWND, ACNativeWindow?> s_acWindows = []; 18internal ACNativeWindow(HWND acHandle) 23PInvokeCore.EnumChildWindows(new HandleRef<HWND>(this, acHandle), RegisterACWindowRecursive); 26private static BOOL RegisterACWindowRecursive(HWND handle) 78internal static void RegisterACWindow(HWND acHandle, bool subclass) 107List<HWND> toRemove = []; 116foreach (HWND handle in toRemove)
System\Windows\Forms\Controls\ComboBox\ComboBox.AutoCompleteDropDownFinder.cs (1)
37private unsafe BOOL Callback(HWND hwnd)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (3)
22private readonly HWND _handle; 29public ComboBoxChildEditUiaProvider(ComboBox owner, HWND childEditControlhandle) : base(owner, childEditControlhandle) 88PInvoke.UiaHostProviderFromHwnd(new HandleRef<HWND>(this, _handle), out IRawElementProviderSimple* provider);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (3)
22private readonly HWND _childListControlhandle; 24public ComboBoxChildListUiaProvider(ComboBox owningComboBox, HWND childListControlhandle) : base(owningComboBox, childListControlhandle) 183PInvoke.UiaHostProviderFromHwnd(new HandleRef<HWND>(this, _childListControlhandle), out IRawElementProviderSimple* provider);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
54PInvokeCore.MapWindowPoints(listHandle, HWND.Null, ref translated);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (3)
28private readonly IHandle<HWND> _owningChildEdit; 295PInvokeCore.MapWindowPoints(_owningChildEdit, (HWND)default, ref pt); 345if (PInvokeCore.MapWindowPoints((HWND)default, _owningChildEdit, ref clientLocation) == 0)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (11)
69private HWND _dropDownHandle; 541HWND focus = PInvoke.GetFocus(); 1985internal HandleRef<HWND> GetListHandle() 2296HWND hwnd = PInvoke.GetWindow(this, GET_WINDOW_CMD.GW_CHILD); 2306hwnd = PInvoke.GetWindow(new HandleRef<HWND>(this, hwnd), GET_WINDOW_CMD.GW_HWNDNEXT); 2385_dropDownHandle = HWND.Null; 3061internal override void ReleaseUiaProvider(HWND handle) 3361HWND.HWND_TOP, 3466_dropDownHandle = (HWND)m.LParamInternal; 3678HWND hwndChild = (HWND)m.LParamInternal;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (2)
105DrawDropDownButtonForHandle(hdc, bounds, state, HWND.Null); 115internal static void DrawDropDownButtonForHandle(HDC hdc, Rectangle bounds, ComboBoxState state, HWND hwnd)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
25596internal override void ReleaseUiaProvider(HWND handle) 25621_editingPanel?.ReleaseUiaProvider(HWND.Null);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2430EditingComboBox?.ReleaseUiaProvider(HWND.Null);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
128internal override void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
287internal override void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
1503HWND handle = (HWND)PInvokeCore.SendMessage(this, PInvoke.DTM_GETMONTHCAL);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.EnumChildren.cs (2)
10public HWND hwndFound; 12public BOOL enumChildren(HWND hwnd)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
428internal override void ReleaseUiaProvider(HWND handle) 1750if ((HWND)m.WParamInternal == InternalHandle && m.LParamInternal.LOWORD == PInvoke.HTCLIENT)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2037internal override void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
171UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(HWND.Null),
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (2)
395HWND hwndHdr = (HWND)PInvokeCore.SendMessage(ListView, PInvoke.LVM_GETHEADER);
System\Windows\Forms\Controls\ListView\ListView.cs (13)
2187HWND hwnd = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_GETHEADER); 3794HWND header = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_GETHEADER); 3797PInvoke.InvalidateRect(new HandleRef<HWND>(this, header), lpRect: null, bErase: true); 4695HWND columnHeaderHandle = (HWND)PInvokeCore.SendMessage( 4940HWND headerWindow = PInvoke.GetWindow(this, GET_WINDOW_CMD.GW_CHILD); 5087internal override void ReleaseUiaProvider(HWND handle) 5422HWND oldHandle = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_SETTOOLTIPS, toolTip); 6376HWND hwndHdr = (HWND)PInvokeCore.SendMessage(this, PInvoke.LVM_GETHEADER);
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
189UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId => UIAHelper.WindowHandleToVariant(HWND.Null),
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
194return UIAHelper.WindowHandleToVariant(HWND.Null);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
240HWND ancestor = PInvoke.GetAncestor(this, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1477internal override void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
1856internal override void ReleaseUiaProvider(HWND handle) 1866_helpPane?.ReleaseUiaProvider(HWND.Null); 1867_commandsPane?.ReleaseUiaProvider(HWND.Null); 1868_toolStrip?.ReleaseUiaProvider(HWND.Null); 3340HWND hWndParent = PInvoke.GetParent(this);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
148ScaleHelper.IsScalingRequirementMet ? HWNDInternal : HWND.Null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1655void PaintOutlineWithExplorerTreeStyle(Graphics g, Rectangle r, HWND hwnd) 1699HWND hwnd)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (3)
201/// they don't have windows - we use <see cref="HWND" /> of <see cref="PropertyGridView" />. 210? (int)(owner?.OwnerGridView?.InternalHandle ?? HWND.Null) 211: (int)HWND.Null,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
127HWND.HWND_TOPMOST,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (11)
2562for (HWND hwnd = PInvokeCore.GetForegroundWindow(); !hwnd.IsNull; hwnd = PInvoke.GetParent(hwnd)) 4783internal override void ReleaseUiaProvider(HWND handle) 4793_scrollBar?.ReleaseUiaProvider(HWND.Null); 4794_listBox?.ReleaseUiaProvider(HWND.Null); 4795_dropDownHolder?.ReleaseUiaProvider(HWND.Null); 4796_editTextBox?.ReleaseUiaProvider(HWND.Null); 4797_dropDownButton?.ReleaseUiaProvider(HWND.Null); 4798_dialogButton?.ReleaseUiaProvider(HWND.Null); 4903HWND priorFocus = PInvoke.GetFocus(); 4938HWND.Null, 5011HWND.Null,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
264private bool OwnsWindow(HWND hWnd) 268hWnd = (HWND)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 667HWND activatedWindow = (HWND)m.LParamInternal;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.MouseHook.cs (1)
152private bool ProcessMouseDown(HWND hwnd)
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
1258HWND tooltipHwnd = (HWND)PInvokeCore.SendMessage(this, PInvoke.TCM_GETTOOLTIPS); 1263HWND.HWND_TOPMOST, 1793private BOOL StyleChildren(HWND handle) =>
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
648internal override void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
110if (PInvokeCore.MapWindowPoints((HWND)default, Owner, ref clientLocation) == 0)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
163HWND rootHwnd = PInvoke.GetAncestor(this, GET_ANCESTOR_FLAGS.GA_ROOT); 569HWND rootHwnd = PInvoke.GetAncestor(this, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (9)
35private HWND _hwndThatLostFocus; 3918internal override void ReleaseUiaProvider(HWND handle) 4405private void SnapFocus(HWND otherHwnd) 4434HWND thisHwndRoot = PInvoke.GetAncestor(this, GET_ANCESTOR_FLAGS.GA_ROOT); 4435HWND otherHwndRoot = PInvoke.GetAncestor(otherHwnd, GET_ANCESTOR_FLAGS.GA_ROOT); 4586SnapFocus((HWND)(nint)m.WParamInternal); 4598HWND hwndClicked = PInvoke.ChildWindowFromPointEx( 4613HWND rootHwnd = PInvoke.GetAncestor(this, GET_ANCESTOR_FLAGS.GA_ROOT); 4617HWND hwndActive = PInvoke.GetActiveWindow();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (1)
39HWND rootHwnd = PInvoke.GetAncestor(_ownerToolStrip, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
855_control?.ReleaseUiaProvider(HWND.Null);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (6)
893topMost ? HWND.HWND_TOPMOST : HWND.HWND_NOTOPMOST, 1581HWND foregroundWindow = PInvokeCore.GetForegroundWindow(); 1624HWND.HWND_TOP, 1916Debug.Fail($"Why are we being activated when we're not visible? Deactivating thing is {WindowsFormsUtils.GetControlInformation((HWND)(nint)m.LParamInternal)}"); 1982HandleRef<HWND> activeWindow = ToolStripManager.ModalMenuFilter.ActiveHwnd;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
640_dropDown?.ReleaseUiaProvider(HWND.Null);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (4)
831HWND rootWindowOfToolStrip = PInvoke.GetAncestor(topMostToolStrip, GET_ANCESTOR_FLAGS.GA_ROOT); 832HWND rootWindowOfControl = PInvoke.GetAncestor(activeControl, GET_ANCESTOR_FLAGS.GA_ROOT); 932HWND topmostParentOfMenu = PInvoke.GetAncestor(menuStripToActivate, GET_ANCESTOR_FLAGS.GA_ROOT); 933HWND foregroundWindow = PInvokeCore.GetForegroundWindow();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (15)
31private HandleRef<HWND> _activeHwnd; 33private HandleRef<HWND> _lastActiveWindow; 60internal static HandleRef<HWND> ActiveHwnd => Instance.ActiveHwndInternal; 76private HandleRef<HWND> ActiveHwndInternal 138HWND hwndActive = PInvoke.GetActiveWindow(); 210PInvoke.ShowCaret(HWND.Null); 321private void ProcessMouseButtonPressed(HWND hwndMouseMessageIsFrom, Point location) 411HWND hwndActive = PInvoke.GetActiveWindow(); 470PInvoke.HideCaret(HWND.Null); 496private static bool IsChildOrSameWindow<T>(in T hwndParent, in T hwndChild) where T : IHandle<HWND> 536HandleRef<HWND> activeToolStripHandle = new(activeToolStrip); 580if (!IsChildOrSameWindow<IHandle<HWND>>(activeToolStripHandle, m)) 585if (toplevelToolStrip is not null && IsChildOrSameWindow<IHandle<HWND>>(toplevelToolStrip, m)) 594else if (!IsChildOrSameWindow<IHandle<HWND>>(ActiveHwnd, m)) 648internal static DPI_AWARENESS_CONTEXT GetDpiAwarenessContextForWindow(HWND hwnd)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
37private HandleRef<HWND> _targetWindowHandle;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
54HWND.Null,
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
61(int)(this.TryGetOwnerAs(out TrackBar? owner) ? owner.InternalHandle : HWND.Null),
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
175internal override void ReleaseUiaProvider(HWND handle) 1936HWND.HWND_TOP, 1949HWND.HWND_TOP, 2906HWND tooltipHandle = nmhdr->hwndFrom; 2922HWND.HWND_TOPMOST,
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
456internal override void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
402internal override void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1104HWND hwndFocus = PInvoke.GetFocus();
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (5)
333hwnd = HWND.Null, 425HWND hwndInPlaceObject = HWND.Null; 428Application.ParkHandle(new HandleRef<HWND>(AXInPlaceObject, hwndInPlaceObject), DpiAwarenessContext); 775internal void AttachWindow(HWND hwnd)
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (4)
69HRESULT IOleInPlaceFrame.Interface.GetWindow(HWND* phwnd) 142HRESULT IOleInPlaceFrame.Interface.SetMenu(HMENU hmenuShared, nint holemenu, HWND hwndActiveObject) 414HRESULT IOleInPlaceUIWindow.Interface.GetWindow(HWND* phwnd) 432HRESULT IOleWindow.Interface.GetWindow(HWND* phwnd)
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (7)
187HWND hwnd = HWND.Null; 214unsafe HRESULT IOleInPlaceSite.Interface.GetWindow(HWND* phwnd) 271lpFrameInfo->hwndFrame = Host.ParentInternal is { } parent ? parent.HWND : HWND.Null; 310HWND hWnd, 318HWND hWnd, 418HRESULT IOleWindow.Interface.GetWindow(HWND* phwnd)
System\Windows\Forms\Dialogs\CommonDialogs\ColorDialog.cs (2)
174hwndOwner = (HWND)hwndOwner, 175hInstance = (HWND)Instance,
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (14)
22private HWND _defaultControlHwnd; 24private readonly unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> _functionPointer; 33_functionPointer = (delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint>)(void*)Marshal.GetFunctionPointerForDelegate(_hookProc); 54internal LRESULT HookProcInternal(HWND hWnd, uint msg, WPARAM wparam, LPARAM lparam) 57private protected unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> HookProcFunctionPointer 68MoveToScreenCenter((HWND)hWnd); 72_defaultControlHwnd = (HWND)wparam; 73PInvoke.SetFocus((HWND)wparam); 77PInvokeCore.PostMessage((HWND)hWnd, CDM_SETDEFAULTFOCUS); 95private protected static void MoveToScreenCenter(HWND hwnd) 103HWND.HWND_TOP, 117private LRESULT OwnerWndProcInternal(HWND hWnd, uint msg, WPARAM wparam, LPARAM lparam) 146return PInvokeCore.CallWindowProc((void*)_priorWindowProcedure, (HWND)hWnd, (uint)msg, (nuint)wparam, lparam); 193HandleRef<HWND> ownerHwnd = default;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (8)
35private HWND _dialogHWnd; 499_dialogHWnd = PInvoke.GetParent((HWND)hWnd); 549PInvokeCore.SetWindowLong((HWND)hWnd, 0, -1); 556PInvokeCore.SetWindowLong((HWND)hWnd, 0, -1); 671HWND focusHandle = PInvoke.GetFocus(); 734if (UseVistaDialogInternal && TryRunDialogVista((HWND)hWndOwner, out bool returnValue)) 739return RunDialogOld((HWND)hWndOwner); 742private unsafe bool RunDialogOld(HWND owner)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (1)
23private unsafe bool TryRunDialogVista(HWND hWndOwner, out bool returnValue)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (5)
279UseVistaDialogInternal && TryRunDialogVista((HWND)hwndOwner, out bool returnValue) 281: RunDialogOld((HWND)hwndOwner); 283private unsafe bool TryRunDialogVista(HWND owner, out bool returnValue) 436private unsafe bool RunDialogOld(HWND owner) 488private static unsafe int FolderBrowserDialog_BrowseCallbackProc(HWND hwnd, uint msg, LPARAM lParam, LPARAM lpData)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (7)
313PInvokeCore.SendMessage((HWND)hWnd, PInvokeCore.WM_CHOOSEFONT_GETLOGFONT, (WPARAM)0, ref logFont); 315int index = (int)PInvoke.SendDlgItemMessage((HWND)hWnd, (int)PInvoke.cmb4, PInvoke.CB_GETCURSEL, 0, 0); 319(HWND)hWnd, 346HWND hWndCtl = PInvoke.GetDlgItem((HWND)hWnd, (int)PInvoke.cmb4); 348hWndCtl = PInvoke.GetDlgItem((HWND)hWnd, (int)PInvoke.stc4); 389hwndOwner = (HWND)hWndOwner,
System\Windows\Forms\Dialogs\MessageBox.cs (1)
456HandleRef<HWND> handle = default;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (6)
86private HWND _handle; 270HWND hwnd, 665_handle = HWND.Null; 909HWND hWnd, 1012_handle = HWND.Null; 1448hwndParent = (HWND)hwndOwner,
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.WindowSubclassHandler.cs (1)
13: base((HWND)taskDialog.OrThrowIfNull().Handle)
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
90=> UIAHelper.WindowHandleToVariant(_window?.Handle ?? HWND.Null),
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (3)
128HWND.HWND_TOP, 151HWND.HWND_TOP, 380HWND.HWND_TOP,
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
83PInvoke.UiaHostProviderFromHwnd(new HandleRef<HWND>(this, _owner.HWND), out IRawElementProviderSimple* provider);
System\Windows\Forms\Form.cs (17)
1362HWND.HWND_TOP, 2003private IHandle<HWND> TaskbarOwner 2067value ? HWND.HWND_TOPMOST : HWND.HWND_NOTOPMOST, 3712HandleRef<HWND> ownerHandle = dialogOwner is not null 3903HWND ownerHandle = (HWND)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 3955HWND hWndOwner = default; 3958hWndOwner = (HWND)PInvokeCore.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 5477HWND activeHwnd = PInvoke.GetActiveWindow(); 5478HandleRef<HWND> ownerHwnd = owner is null ? GetHandleRef(activeHwnd) : GetSafeHandle(owner); 5709HWND captureHwnd = PInvoke.GetCapture(); 5716HWND activeHwnd = PInvoke.GetActiveWindow(); 5717HandleRef<HWND> ownerHwnd = owner is null ? GetHandleRef(activeHwnd) : GetSafeHandle(owner); 6115IHandle<HWND> ownerHwnd = NullHandle<HWND>.Instance; 6947if (HWND == (HWND)m.WParamInternal)
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (8)
14private List<HWND>? _ownedWindows; 16private readonly HWND _formHandle; 18internal EnumThreadWindowsCallback(HWND formHandle) 23internal BOOL Callback(HWND hwnd) 25HWND parent = (HWND)PInvokeCore.GetWindowLong(hwnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 42foreach (HWND hwnd in _ownedWindows) 55foreach (HWND hwnd in _ownedWindows)
System\Windows\Forms\Help\Help.cs (3)
137HandleRef<HWND> handle = parent is not null ? (new(parent)) : Control.GetHandleRef(PInvoke.GetActiveWindow()); 163PInvoke.HtmlHelp(HWND.Null, pathAndFileName, HH_DISPLAY_TOPIC, null); 214HandleRef<HWND> handle = parent is not null ? new(parent) : Control.GetHandleRef(PInvoke.GetActiveWindow());
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
153internal static string GetControlInformation(HWND hwnd)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
628HWND focusHandle = PInvoke.GetFocus(); 1411HWND.HWND_TOP,
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
2270if ((HWND)m.WParamInternal == InternalHandle && m.LParamInternal.LOWORD == PInvoke.HTCLIENT)
System\Windows\Forms\NativeWindow.cs (26)
14public unsafe partial class NativeWindow : MarshalByRefObject, IWin32Window, IHandle<HWND> 38private static readonly Dictionary<HWND, GCHandle> s_windowHandles = []; 39private static readonly Dictionary<short, HWND> s_windowIds = []; 90HWND handle; 153internal HWND HWND { get; private set; } 155HWND IHandle<HWND>.Handle => HWND; 236private static void AddWindowToTable(HWND handle, NativeWindow window) 278internal static short CreateWindowId(IHandle<HWND> handle) 292public void AssignHandle(IntPtr handle) => AssignHandle((HWND)handle, assignUniqueID: true); 294internal unsafe void AssignHandle(HWND hwnd, bool assignUniqueID) 340private LRESULT Callback(HWND hWnd, uint msg, WPARAM wparam, LPARAM lparam) 414HWND createResult = HWND.Null; 448(HWND)cp.Parent, 541HWND = HWND.Null; 555=> handle != IntPtr.Zero ? GetWindowFromTable((HWND)handle) : null; 560private static NativeWindow? GetWindowFromTable(HWND handle) => 569internal static HWND GetHandleFromWindowId(short id) 571if (!s_windowIds.TryGetValue(id, out HWND handle)) 573handle = HWND.Null; 613foreach ((HWND handle, GCHandle gcHandle) in s_windowHandles) 615if (!handle.IsNull && handle != (HWND)(-1)) 626w?.HWND = HWND.Null; 688HWND = HWND.Null; 702private static void RemoveWindowFromDictionary(HWND hwnd, NativeWindow window)
System\Windows\Forms\NativeWindow.WindowClass.cs (2)
42public LRESULT Callback(HWND hwnd, uint msg, WPARAM wparam, LPARAM lparam) 158windowClass.lpfnWndProc = (delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, LRESULT>)callback;
System\Windows\Forms\OLE\DropSource.cs (3)
16private HWND _lastHwndTarget; 84void UpdateDragImage(GiveFeedbackEventArgs e, IComVisibleDataObject? dataObject, HWND lastHwndTarget) 100public unsafe HRESULT DragEnterTarget(HWND hwndTarget)
System\Windows\Forms\OLE\DropTarget.cs (1)
18private readonly HWND _hwndTarget;
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
275hwndOwner = (HWND)hwndOwner,
System\Windows\Forms\Printing\PrintDialog.cs (4)
220UseEXDialog ? ShowPrintDialogEx((HWND)hwndOwner) : ShowPrintDialog((HWND)hwndOwner); 222private unsafe bool ShowPrintDialog(HWND hwndOwner) 348private unsafe bool ShowPrintDialogEx(HWND hwndOwner)
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (2)
26modeSize = PInvoke.DocumentProperties(HWND.Null, HANDLE.Null, n, null, (DEVMODEW*)null, 0); 39HWND.Null,
System\Windows\Forms\Rendering\ControlPaint.cs (1)
335using GetDcScope screenDC = new(HWND.Null);
System\Windows\Forms\Screen.cs (1)
277? new Screen(PInvokeCore.MonitorFromWindow((HWND)hwnd, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST))
System\Windows\Forms\SendKeys\SendKeys.cs (5)
129HWND hwnd, 182private static void AddMsgsForVK(int vk, int repeat, bool altnoctrldown, HWND hwnd) 195private static void CancelMods(ref (int HaveShift, int HaveCtrl, int HaveAlt) haveKeys, int level, HWND hwnd) 379private static void ParseKeys(string keys, HWND hwnd) 923ParseKeys(keys, (control is not null) ? (HWND)control.Handle : default);
System\Windows\Forms\SendKeys\SendKeys.SKEvent.cs (3)
16public readonly HWND HWND; 18public SKEvent(MessageId wm, uint paramL, bool paramH, HWND hwnd) 26public SKEvent(MessageId wm, uint paramL, uint paramH, HWND hwnd)
System\Windows\Forms\StringSource.cs (1)
40public bool Bind(IHandle<HWND> edit, AUTOCOMPLETEOPTIONS options)
System\Windows\Forms\Timer.cs (3)
224Parent = HWND.HWND_MESSAGE 237private static bool GetInvokeRequired(HWND hwnd) 273public void StopTimer(HWND hwnd, bool destroyHwnd)
System\Windows\Forms\ToolTip\ToolTip.cs (29)
17public partial class ToolTip : Component, IExtenderProvider, IHandle<HWND> 50private readonly Dictionary<HWND, Control> _owners = []; 257HWND IHandle<HWND>.Handle => HWND; 259internal HWND HWND => (HWND)Handle; 308HWND hwnd = PInvoke.GetActiveWindow(); 309HWND rootHwnd = PInvoke.GetAncestor(control, GET_ANCESTOR_FLAGS.GA_ROOT); 987private ToolInfoWrapper<HandleRef<HWND>> GetWinTOOLINFO(IWin32Window window) 1028private HWND GetWindowFromPoint(Point screenCoords, ref bool success) 1036HWND hwndControl = PInvoke.WindowFromPoint(screenCoords); 1047return HWND.Null; 1050HWND baseHwnd = current?.HWND ?? HWND.Null; 1051HWND hwnd = HWND.Null; 1061HWND found = PInvoke.ChildWindowFromPointEx(baseHwnd, pt, CWP_FLAGS.CWP_SKIPINVISIBLE); 1104hwnd = HWND.Null; 1527HWND hwnd = GetCurrentToolHwnd(); 1532ToolInfoWrapper<HandleRef<HWND>> info = new(Control.GetSafeHandle(ownerWindow)); 1737ToolInfoWrapper<HandleRef<HWND>> info = new(Control.GetSafeHandle(win)); 1747_owners.Remove((HWND)win.Handle); 1757_owners.Remove((HWND)win.Handle); 1951HWND.HWND_TOPMOST, 1959private HWND GetCurrentToolHwnd() 1972HWND hwnd = GetCurrentToolHwnd(); 2098HWND.HWND_TOPMOST, 2109HWND.HWND_TOPMOST, 2248_owners.Remove((HWND)window.Handle);
System\Windows\Forms\UserControl.cs (1)
248HWND hwndFocus = PInvoke.GetFocus();
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (10)
106using PInvoke.OpenThemeDataScope handle = new(HWND.Null, className); 216DrawBackground(hdc, bounds, HWND.Null); 219internal unsafe void DrawBackground(HDC dc, Rectangle bounds, HWND hwnd = default) 245DrawBackground(hdc, bounds, clipRectangle, HWND.Null); 248internal unsafe void DrawBackground(HDC dc, Rectangle bounds, Rectangle clipRectangle, HWND hwnd) 576return GetPartSize(hdc, type, HWND.Null); 579internal unsafe Size GetPartSize(HDC dc, ThemeSizeType type, HWND hwnd = default) 865private static PInvoke.OpenThemeDataScope OpenThemeData(HWND hwnd, string classList) 883return Create(className, throwExceptionOnFail, HWND.Null); 886internal static ThemeHandle? Create(string className, bool throwExceptionOnFail, HWND hWndRef)
System\Windows\Forms\WindowSubclassHandler.cs (3)
26private readonly HWND _handle; 61public unsafe WindowSubclassHandler(HWND hwnd) 263HWND hWnd,
System.Windows.Forms.Design (86)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
96HWND hwnd = PInvoke.GetFocus();
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
80using (GetDcScope hdc = new((HWND)listBox.Handle))
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (5)
106private bool OwnsWindow(HWND hWnd) 110hWnd = (HWND)PInvokeCore.GetWindowLong(hWnd, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 116if (hWnd == (HWND)Handle) 144HWND hWndCapture = PInvoke.GetCapture(); 173&& !OwnsWindow((HWND)m.LParamInternal))
System\ComponentModel\Design\DesignerActionUI.cs (2)
723new HandleRef<HWND>(_mainParentWindow, (HWND)_mainParentWindow.Handle));
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (14)
56HWND focusedControl = PInvoke.GetFocus(); 89HWND hwndActivating = PInvoke.GetActiveWindow(); 94else if (WindowOwnsWindow((HWND)Handle, hwndActivating)) 99else if (_mainParentWindow is not null && !WindowOwnsWindow((HWND)_mainParentWindow.Handle, hwndActivating)) 116HWND parent = (HWND)PInvokeCore.GetWindowLong( 117new HandleRef<HWND>(this, hwndActivating), 194private static bool WindowOwnsWindow(HWND hWndOwner, HWND hWndDescendant) 203hWndDescendant = (HWND)PInvokeCore.GetWindowLong(hWndDescendant, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 228HWND hwndActivating = (HWND)m.LParamInternal; 229_cancelClose = WindowOwnsWindow((HWND)Handle, hwndActivating); 258HWND focusedControlPtr = PInvoke.GetFocus();
System\ComponentModel\Design\ObjectSelectorEditor.cs (2)
67HWND hwnd = (HWND)treeView.Handle;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
242HWND hwndFocus = PInvoke.GetFocus();
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (16)
65(HWND)hwnd, 71(HWND)hwnd, 77(HWND)hwnd, 83(HWND)hwnd, 89(HWND)hwnd, 95(HWND)hwnd, 100HWND hwndCtl = PInvoke.GetDlgItem((HWND)hwnd, (int)PInvoke.COLOR_MIX); 104HWND.HWND_TOP, 107hwndCtl = PInvoke.GetDlgItem((HWND)hwnd, (int)MESSAGEBOX_RESULT.IDOK); 111HWND.HWND_TOP, 121byte red = (byte)PInvoke.GetDlgItemInt((HWND)hwnd, (int)PInvoke.COLOR_RED, &success, false); 124byte green = (byte)PInvoke.GetDlgItemInt((HWND)hwnd, (int)PInvoke.COLOR_GREEN, &success, false); 127byte blue = (byte)PInvoke.GetDlgItemInt((HWND)hwnd, (int)PInvoke.COLOR_BLUE, &success, false); 132(HWND)hwnd, 135(LPARAM)PInvoke.GetDlgItem((HWND)hwnd, (int)MESSAGEBOX_RESULT.IDOK));
System\Drawing\Design\FontEditor.cs (1)
38HWND hwndFocus = PInvoke.GetFocus();
System\Drawing\Design\IconEditor.cs (1)
73HWND hwndFocus = PInvoke.GetFocus();
System\Drawing\Design\ImageEditor.cs (1)
102HWND hwndFocus = PInvoke.GetFocus();
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
145private bool ProcessMouseMessage(HWND hwnd, MessageId msg, int x, int y)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (4)
287PInvokeCore.MapWindowPoints((HWND)handle, _adornerWindow, ref pt); 458PInvoke.SetActiveWindow(new HandleRef<HWND>(hWnd, (HWND)hWnd.Handle)); 707hwndTrack = (HWND)_adornerWindow.Handle,
System\Windows\Forms\Design\CommandSet.cs (1)
690HWND hwnd = PInvoke.WindowFromPoint(p);
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (1)
45_designer.HookChildHandles((HWND)(nint)m.LParamInternal); // they will get removed from the collection just above
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (3)
12private HWND _handle = HWND.Null; 32_handle = (HWND)newHandle;
System\Windows\Forms\Design\ControlDesigner.cs (6)
896HookChildHandles((HWND)child.Handle); 918HookChildHandles((HWND)child.Handle); 1794PInvokeCore.MapWindowPoints(m, (HWND)default, ref location); 2403internal void HookChildHandles(HWND firstChild) 2405HWND hwndChild = firstChild; 2444private static bool IsWindowInCurrentProcess(HWND hwnd)
System\Windows\Forms\Design\DesignerFrame.cs (2)
409HWND.HWND_TOP, 518HWND.HWND_TOP,
System\Windows\Forms\Design\DesignerUtils.cs (6)
388using GetDcScope controlDC = new((HWND)control.Handle); 821private static uint TreeView_GetExtendedStyle(HWND handle) 834HWND hwnd = (HWND)treeView.Handle; 849HWND hwnd = (HWND)listView.Handle;
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
63owner is not null ? (HWND)owner.Handle : PInvoke.GetActiveWindow(),
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
67HWND hwndFocus = PInvoke.GetFocus();
System\Windows\Forms\Design\ListViewDesigner.cs (6)
64HookChildHandles((HWND)Control.Handle); 77HWND hwndHit = PInvoke.ChildWindowFromPointEx(listView, listViewPoint, CWP_FLAGS.CWP_SKIPINVISIBLE); 81HWND headerHwnd = (HWND)PInvokeCore.SendMessage(listView, PInvoke.LVM_GETHEADER); 84PInvokeCore.MapWindowPoints(HWND.Null, headerHwnd, ref point); 108HookChildHandles((HWND)Control.Handle);
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
381DrawReversibleFrame((HWND)parentControl.Handle, newRect, backColor); 402DrawReversibleFrame((HWND)parentControl.Handle, newRect, backColor); 410private static void DrawReversibleFrame(HWND handle, Rectangle rectangle, Color backColor) 491while (PInvokeCore.PeekMessage(&msg, HWND.Null, PInvokeCore.WM_PAINT, PInvokeCore.WM_PAINT, PEEK_MESSAGE_REMOVE_TYPE.PM_REMOVE))
System\Windows\Forms\Design\PbrsForward.cs (2)
92HWND hwnd; 95: (HWND)supportInSituService.GetEditWindow();
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
33PInvokeCore.RevokeDragDrop((HWND)control.Handle);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1557HWND focusedWindow = (HWND)m.WParamInternal;
System.Windows.Forms.IntegrationTests.Common (4)
GlobalUsings.cs (1)
4global using HWND = Windows.Win32.Foundation.HWND;
TestHelpers.cs (3)
436HWND mainWindowHandle = (HWND)process.MainWindowHandle; 443HWND foregroundWindow = PInvokeCore.GetForegroundWindow();
System.Windows.Forms.Interop.Tests (5)
RichTextBoxTests.cs (5)
22Assert.Equal((HWND)(nint)765, value.nmhdr.hwndFrom); 37Assert.Equal((HWND)(nint)765, value.nmhdr.hwndFrom); 52Assert.Equal((HWND)(nint)765, value.nmhdr.hwndFrom); 133Assert.Equal((HWND)(nint)765, value.nmhdr.hwndFrom); 147Assert.Equal((HWND)(nint)765, value.nmhdr.hwndFrom);
System.Windows.Forms.Primitives (650)
Microsoft\Office\IMsoComponent.cs (6)
45internal delegate* unmanaged[Stdcall]<IMsoComponent*, msocWindow, uint, HWND> HwndGetWindow_14; 99private static HWND HwndGetWindow(IMsoComponent* @this, msocWindow dwWhich, uint dwReserved) 100=> UnwrapAndInvoke<IMsoComponent, Interface, HWND>(@this, o => o.HwndGetWindow(dwWhich, dwReserved)); 219public HWND HwndGetWindow(msocWindow dwWhich, uint dwReserved) 222return ((delegate* unmanaged[Stdcall]<IMsoComponent*, msocWindow, uint, HWND>)_lpVtbl[13])(pThis, dwWhich, dwReserved); 498HWND HwndGetWindow(
Microsoft\VisualStudio\Shell\IProvidePropertyBuilder.cs (4)
74HWND hwndBldrOwner, 79return ((delegate* unmanaged[Stdcall]<IProvidePropertyBuilder*, int, BSTR*, IDispatch*, HWND, VARIANT*, VARIANT_BOOL*, HRESULT>)_lpVtbl[4])( 92/// browser and are invoked through <see cref="ExecuteBuilder(int, BSTR*, IDispatch*, HWND, VARIANT*, VARIANT_BOOL*)"/> 141HWND hwndBldrOwner,
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
75public static WINDOW_EX_STYLE GetWindowExStyle(IHandle<HWND> hWnd) => 78public static WINDOW_STYLE GetWindowStyle(IHandle<HWND> hWnd) =>
System\Windows\Forms\IExtender.cs (3)
76internal delegate* unmanaged[Stdcall]<IExtender*, HWND*, HRESULT> get_Hwnd_22; 201private static HRESULT get_Hwnd(IExtender* @this, HWND* value) 237HWND Hwnd { get; }
System\Windows\Forms\Internals\MessageDecoder.cs (1)
19private static string ToString(HWND hwnd, MessageId messageId, WPARAM wparam, LPARAM lparam, LRESULT result)
System\Windows\Forms\Message.cs (7)
11public struct Message : IEquatable<Message>, IHandle<HWND> 25internal readonly HWND HWND => (HWND)HWnd; 82readonly HWND IHandle<HWND>.Handle => HWND; 94internal static Message Create(HWND hWnd, uint msg, WPARAM wparam, LPARAM lparam) 97internal static Message Create(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
Windows.Win32.BROWSEINFOW.g.cs (2)
34 internal winmdroot.Foundation.HWND hwndOwner; 61 internal unsafe delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.LPARAM,int> lpfn;
Windows.Win32.COMBOBOXINFO.g.cs (3)
57 internal winmdroot.Foundation.HWND hwndCombo; 63 internal winmdroot.Foundation.HWND hwndItem; 69 internal winmdroot.Foundation.HWND hwndList;
Windows.Win32.DRAWITEMSTRUCT.g.cs (1)
60 internal winmdroot.Foundation.HWND hwndItem;
Windows.Win32.EVENTMSG.g.cs (1)
57 internal winmdroot.Foundation.HWND hwnd;
Windows.Win32.IAutoComplete.g.cs (7)
55 /// <inheritdoc cref="Init(winmdroot.Foundation.HWND, winmdroot.System.Com.IUnknown*, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR)"/> 56 internal unsafe void Init(winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, string pwszRegKeyPath, string pwszQuickComplete) 70 private static winmdroot.Foundation.HRESULT Init(IAutoComplete* pThis, winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, winmdroot.Foundation.PCWSTR pwszRegKeyPath, winmdroot.Foundation.PCWSTR pwszQuickComplete) 110 public unsafe void Init(winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, winmdroot.Foundation.PCWSTR pwszRegKeyPath, winmdroot.Foundation.PCWSTR pwszQuickComplete) 112 ((delegate *unmanaged [Stdcall]<IAutoComplete*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IUnknown* ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IAutoComplete*)Unsafe.AsPointer(ref this), hwndEdit, punkACL, pwszRegKeyPath, pwszQuickComplete).ThrowOnFailure(); 176 internal delegate *unmanaged [Stdcall]<IAutoComplete*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IUnknown* ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> Init_4; 206 unsafe winmdroot.Foundation.HRESULT Init(winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, winmdroot.Foundation.PCWSTR pwszRegKeyPath, winmdroot.Foundation.PCWSTR pwszQuickComplete);
Windows.Win32.IAutoComplete2.g.cs (7)
55 /// <inheritdoc cref="Init(winmdroot.Foundation.HWND, winmdroot.System.Com.IUnknown*, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR)"/> 56 internal unsafe void Init(winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, string pwszRegKeyPath, string pwszQuickComplete) 70 private static winmdroot.Foundation.HRESULT Init(IAutoComplete2* pThis, winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, winmdroot.Foundation.PCWSTR pwszRegKeyPath, winmdroot.Foundation.PCWSTR pwszQuickComplete) 87 public unsafe void Init(winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, winmdroot.Foundation.PCWSTR pwszRegKeyPath, winmdroot.Foundation.PCWSTR pwszQuickComplete) 89 ((delegate *unmanaged [Stdcall]<IAutoComplete2*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IUnknown* ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IAutoComplete2*)Unsafe.AsPointer(ref this), hwndEdit, punkACL, pwszRegKeyPath, pwszQuickComplete).ThrowOnFailure(); 223 internal delegate *unmanaged [Stdcall]<IAutoComplete2*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IUnknown* ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> Init_4; 259 unsafe new winmdroot.Foundation.HRESULT Init(winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, winmdroot.Foundation.PCWSTR pwszRegKeyPath, winmdroot.Foundation.PCWSTR pwszQuickComplete);
Windows.Win32.IFileDialog.g.cs (5)
58 private static winmdroot.Foundation.HRESULT Show(IFileDialog* pThis, winmdroot.Foundation.HWND hwndOwner) 75 public winmdroot.Foundation.HRESULT Show(winmdroot.Foundation.HWND hwndOwner) 77 return ((delegate *unmanaged [Stdcall]<IFileDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IFileDialog*)Unsafe.AsPointer(ref this), hwndOwner); 1036 internal delegate *unmanaged [Stdcall]<IFileDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> Show_4; 1132 new winmdroot.Foundation.HRESULT Show(winmdroot.Foundation.HWND hwndOwner);
Windows.Win32.IFileOpenDialog.g.cs (5)
58 private static winmdroot.Foundation.HRESULT Show(IFileOpenDialog* pThis, winmdroot.Foundation.HWND hwndOwner) 75 public winmdroot.Foundation.HRESULT Show(winmdroot.Foundation.HWND hwndOwner) 77 return ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IFileOpenDialog*)Unsafe.AsPointer(ref this), hwndOwner); 853 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> Show_4; 955 new winmdroot.Foundation.HRESULT Show(winmdroot.Foundation.HWND hwndOwner);
Windows.Win32.IFileSaveDialog.g.cs (10)
58 private static winmdroot.Foundation.HRESULT Show(IFileSaveDialog* pThis, winmdroot.Foundation.HWND hwndOwner) 75 public void Show(winmdroot.Foundation.HWND hwndOwner) 77 ((delegate *unmanaged [Stdcall]<IFileSaveDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IFileSaveDialog*)Unsafe.AsPointer(ref this), hwndOwner).ThrowOnFailure(); 906 private static winmdroot.Foundation.HRESULT ApplyProperties(IFileSaveDialog* pThis, winmdroot.UI.Shell.IShellItem* psi, winmdroot.UI.Shell.PropertiesSystem.IPropertyStore* pStore, winmdroot.Foundation.HWND hwnd, winmdroot.UI.Shell.IFileOperationProgressSink* pSink) 947 public unsafe void ApplyProperties(winmdroot.UI.Shell.IShellItem* psi, winmdroot.UI.Shell.PropertiesSystem.IPropertyStore* pStore, winmdroot.Foundation.HWND hwnd, winmdroot.UI.Shell.IFileOperationProgressSink* pSink) 949 ((delegate *unmanaged [Stdcall]<IFileSaveDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.UI.Shell.PropertiesSystem.IPropertyStore* ,winmdroot.Foundation.HWND ,winmdroot.UI.Shell.IFileOperationProgressSink* ,winmdroot.Foundation.HRESULT>)lpVtbl[31])((IFileSaveDialog*)Unsafe.AsPointer(ref this), psi, pStore, hwnd, pSink).ThrowOnFailure(); 979 internal delegate *unmanaged [Stdcall]<IFileSaveDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> Show_4; 1035 internal delegate *unmanaged [Stdcall]<IFileSaveDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.UI.Shell.PropertiesSystem.IPropertyStore* ,winmdroot.Foundation.HWND ,winmdroot.UI.Shell.IFileOperationProgressSink* ,winmdroot.Foundation.HRESULT> ApplyProperties_32; 1090 new winmdroot.Foundation.HRESULT Show(winmdroot.Foundation.HWND hwndOwner); 1174 unsafe winmdroot.Foundation.HRESULT ApplyProperties(winmdroot.UI.Shell.IShellItem* psi, winmdroot.UI.Shell.PropertiesSystem.IPropertyStore* pStore, winmdroot.Foundation.HWND hwnd, winmdroot.UI.Shell.IFileOperationProgressSink* pSink);
Windows.Win32.IModalWindow.g.cs (5)
58 private static winmdroot.Foundation.HRESULT Show(IModalWindow* pThis, winmdroot.Foundation.HWND hwndOwner) 87 public void Show(winmdroot.Foundation.HWND hwndOwner) 89 ((delegate *unmanaged [Stdcall]<IModalWindow*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IModalWindow*)Unsafe.AsPointer(ref this), hwndOwner).ThrowOnFailure(); 119 internal delegate *unmanaged [Stdcall]<IModalWindow*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> Show_4; 146winmdroot.Foundation.HRESULT Show(winmdroot.Foundation.HWND hwndOwner);
Windows.Win32.IOleInPlaceActiveObject.g.cs (8)
55 /// <inheritdoc cref="GetWindow(winmdroot.Foundation.HWND*)"/> 56 internal unsafe void GetWindow(out winmdroot.Foundation.HWND phwnd) 58 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd) 67 private static winmdroot.Foundation.HRESULT GetWindow(IOleInPlaceActiveObject* pThis, winmdroot.Foundation.HWND* phwnd) 84 public unsafe void GetWindow(winmdroot.Foundation.HWND* phwnd) 86 ((delegate *unmanaged [Stdcall]<IOleInPlaceActiveObject*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOleInPlaceActiveObject*)Unsafe.AsPointer(ref this), phwnd).ThrowOnFailure(); 325 internal delegate *unmanaged [Stdcall]<IOleInPlaceActiveObject*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> GetWindow_4; 370 unsafe new winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd);
Windows.Win32.IOleInPlaceFrame.g.cs (13)
55 /// <inheritdoc cref="GetWindow(winmdroot.Foundation.HWND*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT GetWindow(out winmdroot.Foundation.HWND phwnd) 58 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd) 68 private static winmdroot.Foundation.HRESULT GetWindow(IOleInPlaceFrame* pThis, winmdroot.Foundation.HWND* phwnd) 85 public unsafe winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd) 87 return ((delegate *unmanaged [Stdcall]<IOleInPlaceFrame*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOleInPlaceFrame*)Unsafe.AsPointer(ref this), phwnd); 304 private static winmdroot.Foundation.HRESULT SetMenu(IOleInPlaceFrame* pThis, winmdroot.UI.WindowsAndMessaging.HMENU hmenuShared, nint holemenu, winmdroot.Foundation.HWND hwndActiveObject) 333 public winmdroot.Foundation.HRESULT SetMenu(winmdroot.UI.WindowsAndMessaging.HMENU hmenuShared, nint holemenu, winmdroot.Foundation.HWND hwndActiveObject) 335 return ((delegate *unmanaged [Stdcall]<IOleInPlaceFrame*,winmdroot.UI.WindowsAndMessaging.HMENU ,nint ,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IOleInPlaceFrame*)Unsafe.AsPointer(ref this), hmenuShared, holemenu, hwndActiveObject); 524 internal delegate *unmanaged [Stdcall]<IOleInPlaceFrame*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> GetWindow_4; 538 internal delegate *unmanaged [Stdcall]<IOleInPlaceFrame*,winmdroot.UI.WindowsAndMessaging.HMENU ,nint ,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> SetMenu_11; 584 unsafe new winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd); 605winmdroot.Foundation.HRESULT SetMenu(winmdroot.UI.WindowsAndMessaging.HMENU hmenuShared, nint holemenu, winmdroot.Foundation.HWND hwndActiveObject);
Windows.Win32.IOleInPlaceObject.g.cs (8)
55 /// <inheritdoc cref="GetWindow(winmdroot.Foundation.HWND*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT GetWindow(out winmdroot.Foundation.HWND phwnd) 58 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd) 68 private static winmdroot.Foundation.HRESULT GetWindow(IOleInPlaceObject* pThis, winmdroot.Foundation.HWND* phwnd) 85 public unsafe winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd) 87 return ((delegate *unmanaged [Stdcall]<IOleInPlaceObject*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOleInPlaceObject*)Unsafe.AsPointer(ref this), phwnd); 291 internal delegate *unmanaged [Stdcall]<IOleInPlaceObject*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> GetWindow_4; 333 unsafe new winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd);
Windows.Win32.IOleInPlaceObjectWindowless.g.cs (8)
55 /// <inheritdoc cref="GetWindow(winmdroot.Foundation.HWND*)"/> 56 internal unsafe void GetWindow(out winmdroot.Foundation.HWND phwnd) 58 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd) 67 private static winmdroot.Foundation.HRESULT GetWindow(IOleInPlaceObjectWindowless* pThis, winmdroot.Foundation.HWND* phwnd) 84 public unsafe void GetWindow(winmdroot.Foundation.HWND* phwnd) 86 ((delegate *unmanaged [Stdcall]<IOleInPlaceObjectWindowless*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOleInPlaceObjectWindowless*)Unsafe.AsPointer(ref this), phwnd).ThrowOnFailure(); 337 internal delegate *unmanaged [Stdcall]<IOleInPlaceObjectWindowless*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> GetWindow_4; 385 unsafe new winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd);
Windows.Win32.IOleInPlaceSite.g.cs (8)
55 /// <inheritdoc cref="GetWindow(winmdroot.Foundation.HWND*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT GetWindow(out winmdroot.Foundation.HWND phwnd) 58 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd) 68 private static winmdroot.Foundation.HRESULT GetWindow(IOleInPlaceSite* pThis, winmdroot.Foundation.HWND* phwnd) 85 public unsafe winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd) 87 return ((delegate *unmanaged [Stdcall]<IOleInPlaceSite*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOleInPlaceSite*)Unsafe.AsPointer(ref this), phwnd); 517 internal delegate *unmanaged [Stdcall]<IOleInPlaceSite*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> GetWindow_4; 577 unsafe new winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd);
Windows.Win32.IOleInPlaceUIWindow.g.cs (8)
55 /// <inheritdoc cref="GetWindow(winmdroot.Foundation.HWND*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT GetWindow(out winmdroot.Foundation.HWND phwnd) 58 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd) 68 private static winmdroot.Foundation.HRESULT GetWindow(IOleInPlaceUIWindow* pThis, winmdroot.Foundation.HWND* phwnd) 85 public unsafe winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd) 87 return ((delegate *unmanaged [Stdcall]<IOleInPlaceUIWindow*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOleInPlaceUIWindow*)Unsafe.AsPointer(ref this), phwnd); 326 internal delegate *unmanaged [Stdcall]<IOleInPlaceUIWindow*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> GetWindow_4; 368 unsafe new winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd);
Windows.Win32.IOleObject.g.cs (7)
352 /// <inheritdoc cref="DoVerb(int, winmdroot.UI.WindowsAndMessaging.MSG*, winmdroot.System.Ole.IOleClientSite*, int, winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*)"/> 353 internal unsafe winmdroot.Foundation.HRESULT DoVerb(int iVerb, in winmdroot.UI.WindowsAndMessaging.MSG lpmsg, winmdroot.System.Ole.IOleClientSite* pActiveSite, int lindex, winmdroot.Foundation.HWND hwndParent, in winmdroot.Foundation.RECT lprcPosRect) 368 private static winmdroot.Foundation.HRESULT DoVerb(IOleObject* pThis, int iVerb, winmdroot.UI.WindowsAndMessaging.MSG* lpmsg, winmdroot.System.Ole.IOleClientSite* pActiveSite, int lindex, winmdroot.Foundation.HWND hwndParent, winmdroot.Foundation.RECT* lprcPosRect) 401 public unsafe winmdroot.Foundation.HRESULT DoVerb(int iVerb, winmdroot.UI.WindowsAndMessaging.MSG* lpmsg, winmdroot.System.Ole.IOleClientSite* pActiveSite, int lindex, winmdroot.Foundation.HWND hwndParent, winmdroot.Foundation.RECT* lprcPosRect) 403 return ((delegate *unmanaged [Stdcall]<IOleObject*,int ,winmdroot.UI.WindowsAndMessaging.MSG* ,winmdroot.System.Ole.IOleClientSite* ,int ,winmdroot.Foundation.HWND ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IOleObject*)Unsafe.AsPointer(ref this), iVerb, lpmsg, pActiveSite, lindex, hwndParent, lprcPosRect); 923 internal delegate *unmanaged [Stdcall]<IOleObject*,int ,winmdroot.UI.WindowsAndMessaging.MSG* ,winmdroot.System.Ole.IOleClientSite* ,int ,winmdroot.Foundation.HWND ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT> DoVerb_12; 1018 unsafe winmdroot.Foundation.HRESULT DoVerb(int iVerb, winmdroot.UI.WindowsAndMessaging.MSG* lpmsg, winmdroot.System.Ole.IOleClientSite* pActiveSite, int lindex, winmdroot.Foundation.HWND hwndParent, winmdroot.Foundation.RECT* lprcPosRect);
Windows.Win32.IOleWindow.g.cs (8)
55 /// <inheritdoc cref="GetWindow(winmdroot.Foundation.HWND*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT GetWindow(out winmdroot.Foundation.HWND phwnd) 58 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd) 68 private static winmdroot.Foundation.HRESULT GetWindow(IOleWindow* pThis, winmdroot.Foundation.HWND* phwnd) 96 public unsafe winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd) 98 return ((delegate *unmanaged [Stdcall]<IOleWindow*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOleWindow*)Unsafe.AsPointer(ref this), phwnd); 164 internal delegate *unmanaged [Stdcall]<IOleWindow*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> GetWindow_4; 194 unsafe winmdroot.Foundation.HRESULT GetWindow(winmdroot.Foundation.HWND* phwnd);
Windows.Win32.IRawElementProviderHwndOverride.g.cs (5)
58 private static winmdroot.Foundation.HRESULT GetOverrideProviderForHwnd(IRawElementProviderHwndOverride* pThis, winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal) 91 public unsafe winmdroot.Foundation.HRESULT GetOverrideProviderForHwnd(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal) 93 return ((delegate *unmanaged [Stdcall]<IRawElementProviderHwndOverride*,winmdroot.Foundation.HWND ,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IRawElementProviderHwndOverride*)Unsafe.AsPointer(ref this), hwnd, pRetVal); 123 internal delegate *unmanaged [Stdcall]<IRawElementProviderHwndOverride*,winmdroot.Foundation.HWND ,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT> GetOverrideProviderForHwnd_4; 150 unsafe winmdroot.Foundation.HRESULT GetOverrideProviderForHwnd(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal);
Windows.Win32.IShellFolder.g.cs (33)
55 /// <inheritdoc cref="ParseDisplayName(winmdroot.Foundation.HWND, winmdroot.System.Com.IBindCtx*, winmdroot.Foundation.PWSTR, uint*, winmdroot.UI.Shell.Common.ITEMIDLIST**, uint*)"/> 56 internal unsafe void ParseDisplayName(winmdroot.Foundation.HWND hwnd, winmdroot.System.Com.IBindCtx* pbc, winmdroot.Foundation.PWSTR pszDisplayName, out winmdroot.UI.Shell.Common.ITEMIDLIST* ppidl, ref uint pdwAttributes) 70 private static winmdroot.Foundation.HRESULT ParseDisplayName(IShellFolder* pThis, winmdroot.Foundation.HWND hwnd, winmdroot.System.Com.IBindCtx* pbc, winmdroot.Foundation.PWSTR pszDisplayName, [Optional] uint* pchEaten, winmdroot.UI.Shell.Common.ITEMIDLIST** ppidl, uint* pdwAttributes) 125 public unsafe void ParseDisplayName(winmdroot.Foundation.HWND hwnd, winmdroot.System.Com.IBindCtx* pbc, winmdroot.Foundation.PWSTR pszDisplayName, [Optional] uint* pchEaten, winmdroot.UI.Shell.Common.ITEMIDLIST** ppidl, uint* pdwAttributes) 127 ((delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IBindCtx* ,winmdroot.Foundation.PWSTR ,uint* ,winmdroot.UI.Shell.Common.ITEMIDLIST** ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IShellFolder*)Unsafe.AsPointer(ref this), hwnd, pbc, pszDisplayName, pchEaten, ppidl, pdwAttributes).ThrowOnFailure(); 133 private static winmdroot.Foundation.HRESULT EnumObjects(IShellFolder* pThis, winmdroot.Foundation.HWND hwnd, uint grfFlags, winmdroot.UI.Shell.IEnumIDList** ppenumIDList) 170 public unsafe winmdroot.Foundation.HRESULT EnumObjects(winmdroot.Foundation.HWND hwnd, uint grfFlags, winmdroot.UI.Shell.IEnumIDList** ppenumIDList) 172 return ((delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,uint ,winmdroot.UI.Shell.IEnumIDList** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IShellFolder*)Unsafe.AsPointer(ref this), hwnd, grfFlags, ppenumIDList); 363 /// <inheritdoc cref="CreateViewObject(winmdroot.Foundation.HWND, global::System.Guid*, void**)"/> 364 internal unsafe void CreateViewObject(winmdroot.Foundation.HWND hwndOwner, in global::System.Guid riid, out void* ppv) 378 private static winmdroot.Foundation.HRESULT CreateViewObject(IShellFolder* pThis, winmdroot.Foundation.HWND hwndOwner, global::System.Guid* riid, void** ppv) 417 public unsafe void CreateViewObject(winmdroot.Foundation.HWND hwndOwner, global::System.Guid* riid, void** ppv) 419 ((delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IShellFolder*)Unsafe.AsPointer(ref this), hwndOwner, riid, ppv).ThrowOnFailure(); 478 /// <inheritdoc cref="GetUIObjectOf(winmdroot.Foundation.HWND, uint, winmdroot.UI.Shell.Common.ITEMIDLIST**, global::System.Guid*, uint*, void**)"/> 479 internal unsafe void GetUIObjectOf(winmdroot.Foundation.HWND hwndOwner, uint cidl, winmdroot.UI.Shell.Common.ITEMIDLIST** apidl, in global::System.Guid riid, out void* ppv) 493 private static winmdroot.Foundation.HRESULT GetUIObjectOf(IShellFolder* pThis, winmdroot.Foundation.HWND hwndOwner, uint cidl, winmdroot.UI.Shell.Common.ITEMIDLIST** apidl, global::System.Guid* riid, [Optional] uint* rgfReserved, void** ppv) 543 public unsafe void GetUIObjectOf(winmdroot.Foundation.HWND hwndOwner, uint cidl, winmdroot.UI.Shell.Common.ITEMIDLIST** apidl, global::System.Guid* riid, [Optional] uint* rgfReserved, void** ppv) 545 ((delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,uint ,winmdroot.UI.Shell.Common.ITEMIDLIST** ,global::System.Guid* ,uint* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IShellFolder*)Unsafe.AsPointer(ref this), hwndOwner, cidl, apidl, riid, rgfReserved, ppv).ThrowOnFailure(); 605 /// <inheritdoc cref="SetNameOf(winmdroot.Foundation.HWND, winmdroot.UI.Shell.Common.ITEMIDLIST*, winmdroot.Foundation.PCWSTR, winmdroot.UI.Shell.SHGDNF, winmdroot.UI.Shell.Common.ITEMIDLIST**)"/> 606 internal unsafe void SetNameOf(winmdroot.Foundation.HWND hwnd, in winmdroot.UI.Shell.Common.ITEMIDLIST pidl, string pszName, winmdroot.UI.Shell.SHGDNF uFlags, winmdroot.UI.Shell.Common.ITEMIDLIST** ppidlOut) 620 private static winmdroot.Foundation.HRESULT SetNameOf(IShellFolder* pThis, winmdroot.Foundation.HWND hwnd, winmdroot.UI.Shell.Common.ITEMIDLIST* pidl, winmdroot.Foundation.PCWSTR pszName, winmdroot.UI.Shell.SHGDNF uFlags, [Optional] winmdroot.UI.Shell.Common.ITEMIDLIST** ppidlOut) 667 public unsafe void SetNameOf(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Shell.Common.ITEMIDLIST* pidl, winmdroot.Foundation.PCWSTR pszName, winmdroot.UI.Shell.SHGDNF uFlags, [Optional] winmdroot.UI.Shell.Common.ITEMIDLIST** ppidlOut) 669 ((delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,winmdroot.UI.Shell.Common.ITEMIDLIST* ,winmdroot.Foundation.PCWSTR ,winmdroot.UI.Shell.SHGDNF ,winmdroot.UI.Shell.Common.ITEMIDLIST** ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IShellFolder*)Unsafe.AsPointer(ref this), hwnd, pidl, pszName, uFlags, ppidlOut).ThrowOnFailure(); 699 internal delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IBindCtx* ,winmdroot.Foundation.PWSTR ,uint* ,winmdroot.UI.Shell.Common.ITEMIDLIST** ,uint* ,winmdroot.Foundation.HRESULT> ParseDisplayName_4; 701 internal delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,uint ,winmdroot.UI.Shell.IEnumIDList** ,winmdroot.Foundation.HRESULT> EnumObjects_5; 709 internal delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> CreateViewObject_9; 713 internal delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,uint ,winmdroot.UI.Shell.Common.ITEMIDLIST** ,global::System.Guid* ,uint* ,void** ,winmdroot.Foundation.HRESULT> GetUIObjectOf_11; 717 internal delegate *unmanaged [Stdcall]<IShellFolder*,winmdroot.Foundation.HWND ,winmdroot.UI.Shell.Common.ITEMIDLIST* ,winmdroot.Foundation.PCWSTR ,winmdroot.UI.Shell.SHGDNF ,winmdroot.UI.Shell.Common.ITEMIDLIST** ,winmdroot.Foundation.HRESULT> SetNameOf_13; 753 unsafe winmdroot.Foundation.HRESULT ParseDisplayName(winmdroot.Foundation.HWND hwnd, winmdroot.System.Com.IBindCtx* pbc, winmdroot.Foundation.PWSTR pszDisplayName, [Optional] uint* pchEaten, winmdroot.UI.Shell.Common.ITEMIDLIST** ppidl, uint* pdwAttributes); 756 unsafe winmdroot.Foundation.HRESULT EnumObjects(winmdroot.Foundation.HWND hwnd, uint grfFlags, winmdroot.UI.Shell.IEnumIDList** ppenumIDList); 768 unsafe winmdroot.Foundation.HRESULT CreateViewObject(winmdroot.Foundation.HWND hwndOwner, global::System.Guid* riid, void** ppv); 774 unsafe winmdroot.Foundation.HRESULT GetUIObjectOf(winmdroot.Foundation.HWND hwndOwner, uint cidl, winmdroot.UI.Shell.Common.ITEMIDLIST** apidl, global::System.Guid* riid, [Optional] uint* rgfReserved, void** ppv); 780 unsafe winmdroot.Foundation.HRESULT SetNameOf(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Shell.Common.ITEMIDLIST* pidl, winmdroot.Foundation.PCWSTR pszName, winmdroot.UI.Shell.SHGDNF uFlags, [Optional] winmdroot.UI.Shell.Common.ITEMIDLIST** ppidlOut);
Windows.Win32.ISimpleFrameSite.g.cs (14)
55 /// <inheritdoc cref="PreMessageFilter(winmdroot.Foundation.HWND, uint, winmdroot.Foundation.WPARAM, winmdroot.Foundation.LPARAM, winmdroot.Foundation.LRESULT*, uint*)"/> 56 internal unsafe void PreMessageFilter(winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, out winmdroot.Foundation.LRESULT plResult, out uint pdwCookie) 70 private static winmdroot.Foundation.HRESULT PreMessageFilter(ISimpleFrameSite* pThis, winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, winmdroot.Foundation.LRESULT* plResult, uint* pdwCookie) 99 public unsafe void PreMessageFilter(winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, winmdroot.Foundation.LRESULT* plResult, uint* pdwCookie) 101 ((delegate *unmanaged [Stdcall]<ISimpleFrameSite*,winmdroot.Foundation.HWND ,uint ,winmdroot.Foundation.WPARAM ,winmdroot.Foundation.LPARAM ,winmdroot.Foundation.LRESULT* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((ISimpleFrameSite*)Unsafe.AsPointer(ref this), hWnd, msg, wp, lp, plResult, pdwCookie).ThrowOnFailure(); 104 /// <inheritdoc cref="PostMessageFilter(winmdroot.Foundation.HWND, uint, winmdroot.Foundation.WPARAM, winmdroot.Foundation.LPARAM, winmdroot.Foundation.LRESULT*, uint)"/> 105 internal unsafe void PostMessageFilter(winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, out winmdroot.Foundation.LRESULT plResult, uint dwCookie) 116 private static winmdroot.Foundation.HRESULT PostMessageFilter(ISimpleFrameSite* pThis, winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, winmdroot.Foundation.LRESULT* plResult, uint dwCookie) 147 public unsafe void PostMessageFilter(winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, winmdroot.Foundation.LRESULT* plResult, uint dwCookie) 149 ((delegate *unmanaged [Stdcall]<ISimpleFrameSite*,winmdroot.Foundation.HWND ,uint ,winmdroot.Foundation.WPARAM ,winmdroot.Foundation.LPARAM ,winmdroot.Foundation.LRESULT* ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((ISimpleFrameSite*)Unsafe.AsPointer(ref this), hWnd, msg, wp, lp, plResult, dwCookie).ThrowOnFailure(); 179 internal delegate *unmanaged [Stdcall]<ISimpleFrameSite*,winmdroot.Foundation.HWND ,uint ,winmdroot.Foundation.WPARAM ,winmdroot.Foundation.LPARAM ,winmdroot.Foundation.LRESULT* ,uint* ,winmdroot.Foundation.HRESULT> PreMessageFilter_4; 181 internal delegate *unmanaged [Stdcall]<ISimpleFrameSite*,winmdroot.Foundation.HWND ,uint ,winmdroot.Foundation.WPARAM ,winmdroot.Foundation.LPARAM ,winmdroot.Foundation.LRESULT* ,uint ,winmdroot.Foundation.HRESULT> PostMessageFilter_5; 209 unsafe winmdroot.Foundation.HRESULT PreMessageFilter(winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, winmdroot.Foundation.LRESULT* plResult, uint* pdwCookie); 212 unsafe winmdroot.Foundation.HRESULT PostMessageFilter(winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, winmdroot.Foundation.LRESULT* plResult, uint dwCookie);
Windows.Win32.IUIAutomation.g.cs (10)
177 private static winmdroot.Foundation.HRESULT ElementFromHandle(IUIAutomation* pThis, winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IUIAutomationElement** element) 205 public unsafe winmdroot.UI.Accessibility.IUIAutomationElement* ElementFromHandle(winmdroot.Foundation.HWND hwnd) 208 ((delegate *unmanaged [Stdcall]<IUIAutomation*,winmdroot.Foundation.HWND ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IUIAutomation*)Unsafe.AsPointer(ref this), hwnd, &__retVal).ThrowOnFailure(); 324 private static winmdroot.Foundation.HRESULT ElementFromHandleBuildCache(IUIAutomation* pThis, winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest, winmdroot.UI.Accessibility.IUIAutomationElement** element) 356 public unsafe winmdroot.UI.Accessibility.IUIAutomationElement* ElementFromHandleBuildCache(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest) 359 ((delegate *unmanaged [Stdcall]<IUIAutomation*,winmdroot.Foundation.HWND ,winmdroot.UI.Accessibility.IUIAutomationCacheRequest* ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IUIAutomation*)Unsafe.AsPointer(ref this), hwnd, cacheRequest, &__retVal).ThrowOnFailure(); 2280 internal delegate *unmanaged [Stdcall]<IUIAutomation*,winmdroot.Foundation.HWND ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT> ElementFromHandle_7; 2288 internal delegate *unmanaged [Stdcall]<IUIAutomation*,winmdroot.Foundation.HWND ,winmdroot.UI.Accessibility.IUIAutomationCacheRequest* ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT> ElementFromHandleBuildCache_11; 2472 unsafe winmdroot.Foundation.HRESULT ElementFromHandle(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IUIAutomationElement** element); 2484 unsafe winmdroot.Foundation.HRESULT ElementFromHandleBuildCache(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest, winmdroot.UI.Accessibility.IUIAutomationElement** element);
Windows.Win32.IUIAutomationElement.g.cs (12)
1273 private static winmdroot.Foundation.HRESULT get_CurrentNativeWindowHandle(IUIAutomationElement* pThis, winmdroot.Foundation.HWND* retVal) 1295 internal winmdroot.Foundation.HWND CurrentNativeWindowHandle 1299 winmdroot.Foundation.HWND __result; 1300 ((delegate *unmanaged [Stdcall]<IUIAutomationElement*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[36])((IUIAutomationElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 2373 private static winmdroot.Foundation.HRESULT get_CachedNativeWindowHandle(IUIAutomationElement* pThis, winmdroot.Foundation.HWND* retVal) 2395 internal winmdroot.Foundation.HWND CachedNativeWindowHandle 2399 winmdroot.Foundation.HWND __result; 2400 ((delegate *unmanaged [Stdcall]<IUIAutomationElement*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT>)lpVtbl[68])((IUIAutomationElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 3069 internal delegate *unmanaged [Stdcall]<IUIAutomationElement*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> get_CurrentNativeWindowHandle_37; 3133 internal delegate *unmanaged [Stdcall]<IUIAutomationElement*,winmdroot.Foundation.HWND* ,winmdroot.Foundation.HRESULT> get_CachedNativeWindowHandle_69; 3401 winmdroot.Foundation.HWND CurrentNativeWindowHandle 3559 winmdroot.Foundation.HWND CachedNativeWindowHandle
Windows.Win32.IUIAutomationProxyFactory.g.cs (5)
58 private static winmdroot.Foundation.HRESULT CreateProvider(IUIAutomationProxyFactory* pThis, winmdroot.Foundation.HWND hwnd, int idObject, int idChild, winmdroot.UI.Accessibility.IRawElementProviderSimple** provider) 92 public unsafe winmdroot.UI.Accessibility.IRawElementProviderSimple* CreateProvider(winmdroot.Foundation.HWND hwnd, int idObject, int idChild) 95 ((delegate *unmanaged [Stdcall]<IUIAutomationProxyFactory*,winmdroot.Foundation.HWND ,int ,int ,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IUIAutomationProxyFactory*)Unsafe.AsPointer(ref this), hwnd, idObject, idChild, &__retVal).ThrowOnFailure(); 161 internal delegate *unmanaged [Stdcall]<IUIAutomationProxyFactory*,winmdroot.Foundation.HWND ,int ,int ,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT> CreateProvider_4; 191 unsafe winmdroot.Foundation.HRESULT CreateProvider(winmdroot.Foundation.HWND hwnd, int idObject, int idChild, winmdroot.UI.Accessibility.IRawElementProviderSimple** provider);
Windows.Win32.MOUSEHOOKSTRUCT.g.cs (1)
39 internal winmdroot.Foundation.HWND hwnd;
Windows.Win32.NMHDR.g.cs (1)
33 internal winmdroot.Foundation.HWND hwndFrom;
Windows.Win32.OCPFIPARAMS.g.cs (1)
33 internal winmdroot.Foundation.HWND hWndOwner;
Windows.Win32.OLEINPLACEFRAMEINFO.g.cs (1)
34 internal winmdroot.Foundation.HWND hwndFrame;
Windows.Win32.PInvoke.dwmapi.dll.g.cs (4)
38 internal static unsafe winmdroot.Foundation.HRESULT DwmGetWindowAttribute(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Dwm.DWMWINDOWATTRIBUTE dwAttribute, void* pvAttribute, uint cbAttribute) 44 static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.Foundation.HWND hwnd, uint dwAttribute, void* pvAttribute, uint cbAttribute); 57 internal static unsafe winmdroot.Foundation.HRESULT DwmSetWindowAttribute(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Dwm.DWMWINDOWATTRIBUTE dwAttribute, void* pvAttribute, uint cbAttribute) 63 static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.Foundation.HWND hwnd, uint dwAttribute, void* pvAttribute, uint cbAttribute);
Windows.Win32.PInvoke.hhctrl.ocx.g.cs (9)
26 /// <inheritdoc cref="HtmlHelp(winmdroot.Foundation.HWND, winmdroot.Foundation.PCWSTR, winmdroot.Data.HtmlHelp.HTML_HELP_COMMAND, nuint)"/> 27 internal static unsafe winmdroot.Foundation.HWND HtmlHelp(winmdroot.Foundation.HWND hwndCaller, string pszFile, winmdroot.Data.HtmlHelp.HTML_HELP_COMMAND uCommand, nuint dwData) 31 winmdroot.Foundation.HWND __result = PInvoke.HtmlHelp(hwndCaller, pszFileLocal, uCommand, dwData); 57 internal static winmdroot.Foundation.HWND HtmlHelp(winmdroot.Foundation.HWND hwndCaller, winmdroot.Foundation.PCWSTR pszFile, winmdroot.Data.HtmlHelp.HTML_HELP_COMMAND uCommand, nuint dwData) 59 winmdroot.Foundation.HWND __retVal = LocalExternFunction(hwndCaller, pszFile, (uint)uCommand, dwData); 63 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hwndCaller, winmdroot.Foundation.PCWSTR pszFile, uint uCommand, nuint dwData);
Windows.Win32.PInvoke.IMM32.dll.g.cs (3)
38 internal static extern winmdroot.UI.Input.Ime.HIMC ImmAssociateContext(winmdroot.Foundation.HWND param0, winmdroot.UI.Input.Ime.HIMC param1); 57 internal static extern winmdroot.UI.Input.Ime.HIMC ImmGetContext(winmdroot.Foundation.HWND param0); 96 internal static extern winmdroot.Foundation.BOOL ImmReleaseContext(winmdroot.Foundation.HWND param0, winmdroot.UI.Input.Ime.HIMC param1);
Windows.Win32.PInvoke.OLEACC.dll.g.cs (3)
26 /// <inheritdoc cref="CreateStdAccessibleObject(winmdroot.Foundation.HWND, int, global::System.Guid*, void**)"/> 28 internal static unsafe winmdroot.Foundation.HRESULT CreateStdAccessibleObject(winmdroot.Foundation.HWND hwnd, int idObject, in global::System.Guid riid, out void* ppvObject) 66 internal static extern unsafe winmdroot.Foundation.HRESULT CreateStdAccessibleObject(winmdroot.Foundation.HWND hwnd, int idObject, global::System.Guid* riid, void** ppvObject);
Windows.Win32.PInvoke.OLEAUT32.dll.g.cs (3)
97 /// <inheritdoc cref="OleCreatePropertyFrame(winmdroot.Foundation.HWND, uint, uint, winmdroot.Foundation.PCWSTR, uint, winmdroot.System.Com.IUnknown**, uint, global::System.Guid*, uint, uint, void*)"/> 99 internal static unsafe winmdroot.Foundation.HRESULT OleCreatePropertyFrame(winmdroot.Foundation.HWND hwndOwner, uint x, uint y, string lpszCaption, uint cObjects, winmdroot.System.Com.IUnknown** ppUnk, uint cPages, in global::System.Guid pPageClsID, uint lcid) 133 internal static extern unsafe winmdroot.Foundation.HRESULT OleCreatePropertyFrame(winmdroot.Foundation.HWND hwndOwner, uint x, uint y, winmdroot.Foundation.PCWSTR lpszCaption, uint cObjects, winmdroot.System.Com.IUnknown** ppUnk, uint cPages, global::System.Guid* pPageClsID, uint lcid, uint dwReserved, void* pvReserved);
Windows.Win32.PInvoke.SHELL32.dll.g.cs (5)
184 /// <inheritdoc cref="ShellExecute(winmdroot.Foundation.HWND, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR, winmdroot.UI.WindowsAndMessaging.SHOW_WINDOW_CMD)"/> 186 internal static unsafe winmdroot.Foundation.HINSTANCE ShellExecute(winmdroot.Foundation.HWND hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, winmdroot.UI.WindowsAndMessaging.SHOW_WINDOW_CMD nShowCmd) 241 internal static extern winmdroot.Foundation.HINSTANCE ShellExecute(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.PCWSTR lpOperation, winmdroot.Foundation.PCWSTR lpFile, winmdroot.Foundation.PCWSTR lpParameters, winmdroot.Foundation.PCWSTR lpDirectory, winmdroot.UI.WindowsAndMessaging.SHOW_WINDOW_CMD nShowCmd); 330 /// <inheritdoc cref="SHGetSpecialFolderLocation(winmdroot.Foundation.HWND, int, winmdroot.UI.Shell.Common.ITEMIDLIST**)"/> 362 internal static extern unsafe winmdroot.Foundation.HRESULT SHGetSpecialFolderLocation(winmdroot.Foundation.HWND hwnd, int csidl, winmdroot.UI.Shell.Common.ITEMIDLIST** ppidl);
Windows.Win32.PInvoke.SHLWAPI.dll.g.cs (1)
44 internal static extern winmdroot.Foundation.HRESULT SHAutoComplete(winmdroot.Foundation.HWND hwndEdit, winmdroot.UI.Shell.SHELL_AUTOCOMPLETE_FLAGS dwFlags);
Windows.Win32.PInvoke.UIAutomationCore.dll.g.cs (2)
84 internal static extern unsafe winmdroot.Foundation.HRESULT UiaHostProviderFromHwnd(winmdroot.Foundation.HWND hwnd, winmdroot.UI.Accessibility.IRawElementProviderSimple** ppProvider); 204 internal static extern unsafe winmdroot.Foundation.LRESULT UiaReturnRawElementProvider(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam, winmdroot.UI.Accessibility.IRawElementProviderSimple* el);
Windows.Win32.PInvoke.USER32.dll.g.cs (186)
262 internal static extern winmdroot.Foundation.HWND ChildWindowFromPointEx(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point pt, winmdroot.UI.WindowsAndMessaging.CWP_FLAGS flags); 264 /// <inheritdoc cref="ClientToScreen(winmdroot.Foundation.HWND, global::System.Drawing.Point*)"/> 266 internal static unsafe winmdroot.Foundation.BOOL ClientToScreen(winmdroot.Foundation.HWND hWnd, ref global::System.Drawing.Point lpPoint) 287 internal static extern unsafe winmdroot.Foundation.BOOL ClientToScreen(winmdroot.Foundation.HWND hWnd, global::System.Drawing.Point* lpPoint); 438 /// <inheritdoc cref="CreateWindowEx(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE, int, int, int, int, winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.HMENU, winmdroot.Foundation.HINSTANCE, void*)"/> 440 internal static unsafe winmdroot.Foundation.HWND CreateWindowEx(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE dwExStyle, string lpClassName, string lpWindowName, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE dwStyle, int X, int Y, int nWidth, int nHeight, winmdroot.Foundation.HWND hWndParent, winmdroot.UI.WindowsAndMessaging.HMENU hMenu, winmdroot.Foundation.HINSTANCE hInstance, void* lpParam) 446 winmdroot.Foundation.HWND __result = PInvoke.CreateWindowEx(dwExStyle, lpClassNameLocal, lpWindowNameLocal, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); 512 internal static unsafe winmdroot.Foundation.HWND CreateWindowEx(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE dwExStyle, winmdroot.Foundation.PCWSTR lpClassName, winmdroot.Foundation.PCWSTR lpWindowName, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE dwStyle, int X, int Y, int nWidth, int nHeight, winmdroot.Foundation.HWND hWndParent, winmdroot.UI.WindowsAndMessaging.HMENU hMenu, winmdroot.Foundation.HINSTANCE hInstance, [Optional] void* lpParam) 515 winmdroot.Foundation.HWND __retVal = LocalExternFunction(dwExStyle, lpClassName, lpWindowName, dwStyle, X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam); 520 static extern unsafe winmdroot.Foundation.HWND LocalExternFunction(winmdroot.UI.WindowsAndMessaging.WINDOW_EX_STYLE dwExStyle, winmdroot.Foundation.PCWSTR lpClassName, winmdroot.Foundation.PCWSTR lpWindowName, winmdroot.UI.WindowsAndMessaging.WINDOW_STYLE dwStyle, int X, int Y, int nWidth, int nHeight, winmdroot.Foundation.HWND hWndParent, winmdroot.UI.WindowsAndMessaging.HMENU hMenu, winmdroot.Foundation.HINSTANCE hInstance, [Optional] void* lpParam); 555 internal static extern winmdroot.Foundation.LRESULT DefFrameProc(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.HWND hWndMDIClient, uint uMsg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 585 internal static extern winmdroot.Foundation.LRESULT DefMDIChildProc(winmdroot.Foundation.HWND hWnd, uint uMsg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 625 internal static winmdroot.Foundation.BOOL DestroyWindow(winmdroot.Foundation.HWND hWnd) 633 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd); 728 internal static winmdroot.Foundation.BOOL DrawMenuBar(winmdroot.Foundation.HWND hWnd) 736 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd); 846 internal static winmdroot.Foundation.BOOL EnableScrollBar(winmdroot.Foundation.HWND hWnd, uint wSBflags, winmdroot.UI.Controls.ENABLE_SCROLL_BAR_ARROWS wArrows) 854 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, uint wSBflags, winmdroot.UI.Controls.ENABLE_SCROLL_BAR_ARROWS wArrows); 875 internal static extern winmdroot.Foundation.BOOL EnableWindow(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.BOOL bEnable); 894 internal static winmdroot.Foundation.BOOL EndDialog(winmdroot.Foundation.HWND hDlg, nint nResult) 902 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hDlg, nint nResult); 972 internal static unsafe winmdroot.Foundation.HWND FindWindow(string lpClassName, string lpWindowName) 978 winmdroot.Foundation.HWND __result = PInvoke.FindWindow(lpClassNameLocal, lpWindowNameLocal); 998 internal static winmdroot.Foundation.HWND FindWindow(winmdroot.Foundation.PCWSTR lpClassName, winmdroot.Foundation.PCWSTR lpWindowName) 1001 winmdroot.Foundation.HWND __retVal = LocalExternFunction(lpClassName, lpWindowName); 1006 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.PCWSTR lpClassName, winmdroot.Foundation.PCWSTR lpWindowName); 1019 internal static extern winmdroot.Foundation.HWND GetActiveWindow(); 1035 internal static extern winmdroot.Foundation.HWND GetAncestor(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.GET_ANCESTOR_FLAGS gaFlags); 1073 internal static extern winmdroot.Foundation.HWND GetCapture(); 1198 internal static int GetClassName(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PWSTR lpClassName, int nMaxCount) 1206 static extern int LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PWSTR lpClassName, int nMaxCount); 1244 /// <inheritdoc cref="GetComboBoxInfo(winmdroot.Foundation.HWND, winmdroot.UI.Controls.COMBOBOXINFO*)"/> 1246 internal static unsafe winmdroot.Foundation.BOOL GetComboBoxInfo(winmdroot.Foundation.HWND hwndCombo, ref winmdroot.UI.Controls.COMBOBOXINFO pcbi) 1269 internal static unsafe winmdroot.Foundation.BOOL GetComboBoxInfo(winmdroot.Foundation.HWND hwndCombo, winmdroot.UI.Controls.COMBOBOXINFO* pcbi) 1277 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hwndCombo, winmdroot.UI.Controls.COMBOBOXINFO* pcbi); 1340 internal static winmdroot.Foundation.HWND GetDlgItem(winmdroot.Foundation.HWND hDlg, int nIDDlgItem) 1343 winmdroot.Foundation.HWND __retVal = LocalExternFunction(hDlg, nIDDlgItem); 1348 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hDlg, int nIDDlgItem); 1376 internal static unsafe uint GetDlgItemInt(winmdroot.Foundation.HWND hDlg, int nIDDlgItem, [Optional] winmdroot.Foundation.BOOL* lpTranslated, winmdroot.Foundation.BOOL bSigned) 1384 static extern unsafe uint LocalExternFunction(winmdroot.Foundation.HWND hDlg, int nIDDlgItem, [Optional] winmdroot.Foundation.BOOL* lpTranslated, winmdroot.Foundation.BOOL bSigned); 1418 internal static extern uint GetDpiForWindow(winmdroot.Foundation.HWND hwnd); 1430 internal static extern winmdroot.Foundation.HWND GetFocus(); 1541 internal static extern winmdroot.UI.WindowsAndMessaging.HMENU GetMenu(winmdroot.Foundation.HWND hWnd); 1613 /// <inheritdoc cref="GetMessage(winmdroot.UI.WindowsAndMessaging.MSG*, winmdroot.Foundation.HWND, uint, uint)"/> 1615 internal static unsafe winmdroot.Foundation.BOOL GetMessage(out winmdroot.UI.WindowsAndMessaging.MSG lpMsg, winmdroot.Foundation.HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax) 1655 internal static unsafe winmdroot.Foundation.BOOL GetMessage(winmdroot.UI.WindowsAndMessaging.MSG* lpMsg, winmdroot.Foundation.HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax) 1663 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.UI.WindowsAndMessaging.MSG* lpMsg, winmdroot.Foundation.HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax); 1702 internal static winmdroot.Foundation.HWND GetParent(winmdroot.Foundation.HWND hWnd) 1705 winmdroot.Foundation.HWND __retVal = LocalExternFunction(hWnd); 1710 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hWnd); 1790 /// <inheritdoc cref="GetScrollInfo(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS, winmdroot.UI.WindowsAndMessaging.SCROLLINFO*)"/> 1792 internal static unsafe winmdroot.Foundation.BOOL GetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, ref winmdroot.UI.WindowsAndMessaging.SCROLLINFO lpsi) 1821 internal static unsafe winmdroot.Foundation.BOOL GetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, winmdroot.UI.WindowsAndMessaging.SCROLLINFO* lpsi) 1829 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, winmdroot.UI.WindowsAndMessaging.SCROLLINFO* lpsi); 1850 internal static extern winmdroot.UI.WindowsAndMessaging.HMENU GetSystemMenu(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.BOOL bRevert); 1902 internal static extern unsafe winmdroot.Foundation.BOOL GetUpdateRect(winmdroot.Foundation.HWND hWnd, [Optional] winmdroot.Foundation.RECT* lpRect, winmdroot.Foundation.BOOL bErase); 1915 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetUpdateRgn(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Foundation.BOOL bErase); 1956 internal static winmdroot.Foundation.HWND GetWindow(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.GET_WINDOW_CMD uCmd) 1959 winmdroot.Foundation.HWND __retVal = LocalExternFunction(hWnd, uCmd); 1964 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.GET_WINDOW_CMD uCmd); 1967 /// <inheritdoc cref="GetWindowDisplayAffinity(winmdroot.Foundation.HWND, uint*)"/> 1969 internal static unsafe winmdroot.Foundation.BOOL GetWindowDisplayAffinity(winmdroot.Foundation.HWND hWnd, out uint pdwAffinity) 1996 internal static unsafe winmdroot.Foundation.BOOL GetWindowDisplayAffinity(winmdroot.Foundation.HWND hWnd, uint* pdwAffinity) 2004 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, uint* pdwAffinity); 2016 internal static extern winmdroot.UI.HiDpi.DPI_AWARENESS_CONTEXT GetWindowDpiAwarenessContext(winmdroot.Foundation.HWND hwnd); 2018 /// <inheritdoc cref="GetWindowPlacement(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT*)"/> 2020 internal static unsafe winmdroot.Foundation.BOOL GetWindowPlacement(winmdroot.Foundation.HWND hWnd, ref winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT lpwndpl) 2046 internal static unsafe winmdroot.Foundation.BOOL GetWindowPlacement(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT* lpwndpl) 2054 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT* lpwndpl); 2070 internal static winmdroot.Foundation.BOOL HideCaret(winmdroot.Foundation.HWND hWnd) 2078 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd); 2081 /// <inheritdoc cref="InvalidateRect(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*, winmdroot.Foundation.BOOL)"/> 2083 internal static unsafe winmdroot.Foundation.BOOL InvalidateRect(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT? lpRect, winmdroot.Foundation.BOOL bErase) 2103 internal static extern unsafe winmdroot.Foundation.BOOL InvalidateRect(winmdroot.Foundation.HWND hWnd, [Optional] winmdroot.Foundation.RECT* lpRect, winmdroot.Foundation.BOOL bErase); 2116 internal static extern winmdroot.Foundation.BOOL InvalidateRgn(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Foundation.BOOL bErase); 2135 internal static extern winmdroot.Foundation.BOOL IsChild(winmdroot.Foundation.HWND hWndParent, winmdroot.Foundation.HWND hWnd); 2137 /// <inheritdoc cref="IsDialogMessage(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.MSG*)"/> 2139 internal static unsafe winmdroot.Foundation.BOOL IsDialogMessage(winmdroot.Foundation.HWND hDlg, in winmdroot.UI.WindowsAndMessaging.MSG lpMsg) 2167 internal static extern unsafe winmdroot.Foundation.BOOL IsDialogMessage(winmdroot.Foundation.HWND hDlg, winmdroot.UI.WindowsAndMessaging.MSG* lpMsg); 2202 internal static extern winmdroot.Foundation.BOOL IsWindow(winmdroot.Foundation.HWND hWnd); 2215 internal static extern winmdroot.Foundation.BOOL IsWindowEnabled(winmdroot.Foundation.HWND hWnd); 2231 internal static extern winmdroot.Foundation.BOOL IsWindowUnicode(winmdroot.Foundation.HWND hWnd); 2247 internal static extern winmdroot.Foundation.BOOL IsWindowVisible(winmdroot.Foundation.HWND hWnd); 2262 internal static extern winmdroot.Foundation.BOOL IsZoomed(winmdroot.Foundation.HWND hWnd); 2278 internal static winmdroot.Foundation.BOOL KillTimer(winmdroot.Foundation.HWND hWnd, nuint uIDEvent) 2286 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, nuint uIDEvent); 2373 /// <inheritdoc cref="MessageBox(winmdroot.Foundation.HWND, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR, winmdroot.UI.WindowsAndMessaging.MESSAGEBOX_STYLE)"/> 2375 internal static unsafe winmdroot.UI.WindowsAndMessaging.MESSAGEBOX_RESULT MessageBox(winmdroot.Foundation.HWND hWnd, string lpText, string lpCaption, winmdroot.UI.WindowsAndMessaging.MESSAGEBOX_STYLE uType) 2414 internal static winmdroot.UI.WindowsAndMessaging.MESSAGEBOX_RESULT MessageBox(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PCWSTR lpText, winmdroot.Foundation.PCWSTR lpCaption, winmdroot.UI.WindowsAndMessaging.MESSAGEBOX_STYLE uType) 2422 static extern winmdroot.UI.WindowsAndMessaging.MESSAGEBOX_RESULT LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PCWSTR lpText, winmdroot.Foundation.PCWSTR lpCaption, winmdroot.UI.WindowsAndMessaging.MESSAGEBOX_STYLE uType); 2489 internal static extern void NotifyWinEvent(uint @event, winmdroot.Foundation.HWND hwnd, int idObject, int idChild); 2589 /// <inheritdoc cref="RedrawWindow(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, winmdroot.Graphics.Gdi.REDRAW_WINDOW_FLAGS)"/> 2591 internal static unsafe winmdroot.Foundation.BOOL RedrawWindow(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT? lprcUpdate, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, winmdroot.Graphics.Gdi.REDRAW_WINDOW_FLAGS flags) 2613 internal static extern unsafe winmdroot.Foundation.BOOL RedrawWindow(winmdroot.Foundation.HWND hWnd, [Optional] winmdroot.Foundation.RECT* lprcUpdate, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, winmdroot.Graphics.Gdi.REDRAW_WINDOW_FLAGS flags); 2714 internal static extern int ReleaseDC(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HDC hDC); 2716 /// <inheritdoc cref="ScreenToClient(winmdroot.Foundation.HWND, global::System.Drawing.Point*)"/> 2718 internal static unsafe winmdroot.Foundation.BOOL ScreenToClient(winmdroot.Foundation.HWND hWnd, ref global::System.Drawing.Point lpPoint) 2739 internal static extern unsafe winmdroot.Foundation.BOOL ScreenToClient(winmdroot.Foundation.HWND hWnd, global::System.Drawing.Point* lpPoint); 2741 /// <inheritdoc cref="ScrollWindow(winmdroot.Foundation.HWND, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/> 2743 internal static unsafe winmdroot.Foundation.BOOL ScrollWindow(winmdroot.Foundation.HWND hWnd, int XAmount, int YAmount, winmdroot.Foundation.RECT? lpRect, winmdroot.Foundation.RECT? lpClipRect) 2780 internal static unsafe winmdroot.Foundation.BOOL ScrollWindow(winmdroot.Foundation.HWND hWnd, int XAmount, int YAmount, [Optional] winmdroot.Foundation.RECT* lpRect, [Optional] winmdroot.Foundation.RECT* lpClipRect) 2788 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, int XAmount, int YAmount, [Optional] winmdroot.Foundation.RECT* lpRect, [Optional] winmdroot.Foundation.RECT* lpClipRect); 2791 /// <inheritdoc cref="ScrollWindowEx(winmdroot.Foundation.HWND, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, winmdroot.Foundation.RECT*, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS)"/> 2793 internal static unsafe int ScrollWindowEx(winmdroot.Foundation.HWND hWnd, int dx, int dy, winmdroot.Foundation.RECT? prcScroll, winmdroot.Foundation.RECT? prcClip, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, winmdroot.Foundation.RECT* prcUpdate, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS flags) 2839 internal static unsafe int ScrollWindowEx(winmdroot.Foundation.HWND hWnd, int dx, int dy, [Optional] winmdroot.Foundation.RECT* prcScroll, [Optional] winmdroot.Foundation.RECT* prcClip, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, [Optional] winmdroot.Foundation.RECT* prcUpdate, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS flags) 2847 static extern unsafe int LocalExternFunction(winmdroot.Foundation.HWND hWnd, int dx, int dy, [Optional] winmdroot.Foundation.RECT* prcScroll, [Optional] winmdroot.Foundation.RECT* prcClip, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, [Optional] winmdroot.Foundation.RECT* prcUpdate, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS flags); 2880 internal static extern winmdroot.Foundation.LRESULT SendDlgItemMessage(winmdroot.Foundation.HWND hDlg, int nIDDlgItem, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 2960 internal static unsafe winmdroot.Foundation.BOOL SendMessageCallback(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,nuint,global::Windows.Win32.Foundation.LRESULT,void> lpResultCallBack, nuint dwData) 2968 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,nuint,global::Windows.Win32.Foundation.LRESULT,void> lpResultCallBack, nuint dwData); 3006 internal static unsafe winmdroot.Foundation.LRESULT SendMessageTimeout(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam, winmdroot.UI.WindowsAndMessaging.SEND_MESSAGE_TIMEOUT_FLAGS fuFlags, uint uTimeout, [Optional] nuint* lpdwResult) 3014 static extern unsafe winmdroot.Foundation.LRESULT LocalExternFunction(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam, winmdroot.UI.WindowsAndMessaging.SEND_MESSAGE_TIMEOUT_FLAGS fuFlags, uint uTimeout, [Optional] nuint* lpdwResult); 3030 internal static winmdroot.Foundation.HWND SetActiveWindow(winmdroot.Foundation.HWND hWnd) 3033 winmdroot.Foundation.HWND __retVal = LocalExternFunction(hWnd); 3038 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hWnd); 3055 internal static extern winmdroot.Foundation.HWND SetCapture(winmdroot.Foundation.HWND hWnd); 3114 internal static winmdroot.Foundation.HWND SetFocus(winmdroot.Foundation.HWND hWnd) 3117 winmdroot.Foundation.HWND __retVal = LocalExternFunction(hWnd); 3122 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hWnd); 3139 internal static extern winmdroot.Foundation.BOOL SetForegroundWindow(winmdroot.Foundation.HWND hWnd); 3197 internal static winmdroot.Foundation.BOOL SetLayeredWindowAttributes(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.COLORREF crKey, byte bAlpha, winmdroot.UI.WindowsAndMessaging.LAYERED_WINDOW_ATTRIBUTES_FLAGS dwFlags) 3205 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.COLORREF crKey, byte bAlpha, winmdroot.UI.WindowsAndMessaging.LAYERED_WINDOW_ATTRIBUTES_FLAGS dwFlags); 3225 internal static winmdroot.Foundation.BOOL SetMenu(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.HMENU hMenu) 3233 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.HMENU hMenu); 3254 internal static winmdroot.Foundation.HWND SetParent(winmdroot.Foundation.HWND hWndChild, winmdroot.Foundation.HWND hWndNewParent) 3257 winmdroot.Foundation.HWND __retVal = LocalExternFunction(hWndChild, hWndNewParent); 3262 static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hWndChild, winmdroot.Foundation.HWND hWndNewParent); 3295 /// <inheritdoc cref="SetScrollInfo(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS, winmdroot.UI.WindowsAndMessaging.SCROLLINFO*, winmdroot.Foundation.BOOL)"/> 3297 internal static unsafe int SetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, in winmdroot.UI.WindowsAndMessaging.SCROLLINFO lpsi, winmdroot.Foundation.BOOL redraw) 3329 internal static extern unsafe int SetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, winmdroot.UI.WindowsAndMessaging.SCROLLINFO* lpsi, winmdroot.Foundation.BOOL redraw); 3354 internal static int SetScrollPos(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, int nPos, winmdroot.Foundation.BOOL bRedraw) 3362 static extern int LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, int nPos, winmdroot.Foundation.BOOL bRedraw); 3409 internal static unsafe nuint SetTimer(winmdroot.Foundation.HWND hWnd, nuint nIDEvent, uint uElapse, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,nuint,uint,void> lpTimerFunc) 3417 static extern unsafe nuint LocalExternFunction(winmdroot.Foundation.HWND hWnd, nuint nIDEvent, uint uElapse, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,nuint,uint,void> lpTimerFunc); 3437 internal static winmdroot.Foundation.BOOL SetWindowDisplayAffinity(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.WINDOW_DISPLAY_AFFINITY dwAffinity) 3445 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.WINDOW_DISPLAY_AFFINITY dwAffinity); 3448 /// <inheritdoc cref="SetWindowPlacement(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT*)"/> 3450 internal static unsafe winmdroot.Foundation.BOOL SetWindowPlacement(winmdroot.Foundation.HWND hWnd, in winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT lpwndpl) 3476 internal static unsafe winmdroot.Foundation.BOOL SetWindowPlacement(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT* lpwndpl) 3484 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.WINDOWPLACEMENT* lpwndpl); 3519 internal static winmdroot.Foundation.BOOL SetWindowPos(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.HWND hWndInsertAfter, int X, int Y, int cx, int cy, winmdroot.UI.WindowsAndMessaging.SET_WINDOW_POS_FLAGS uFlags) 3527 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.HWND hWndInsertAfter, int X, int Y, int cx, int cy, winmdroot.UI.WindowsAndMessaging.SET_WINDOW_POS_FLAGS uFlags); 3549 internal static extern int SetWindowRgn(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Foundation.BOOL bRedraw); 3589 /// <inheritdoc cref="SetWindowText(winmdroot.Foundation.HWND, winmdroot.Foundation.PCWSTR)"/> 3591 internal static unsafe winmdroot.Foundation.BOOL SetWindowText(winmdroot.Foundation.HWND hWnd, string lpString) 3617 internal static winmdroot.Foundation.BOOL SetWindowText(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PCWSTR lpString) 3625 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PCWSTR lpString); 3687 internal static extern unsafe winmdroot.UI.Accessibility.HWINEVENTHOOK SetWinEventHook(uint eventMin, uint eventMax, winmdroot.Foundation.HMODULE hmodWinEventProc, delegate *unmanaged[Stdcall]<global::Windows.Win32.UI.Accessibility.HWINEVENTHOOK,uint,global::Windows.Win32.Foundation.HWND,int,int,uint,uint,void> pfnWinEventProc, uint idProcess, uint idThread, uint dwFlags); 3702 internal static winmdroot.Foundation.BOOL ShowCaret(winmdroot.Foundation.HWND hWnd) 3710 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hWnd); 3745 internal static extern winmdroot.Foundation.BOOL ShowWindow(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.SHOW_WINDOW_CMD nCmdShow); 3783 /// <inheritdoc cref="TranslateMDISysAccel(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.MSG*)"/> 3785 internal static unsafe winmdroot.Foundation.BOOL TranslateMDISysAccel(winmdroot.Foundation.HWND hWndClient, in winmdroot.UI.WindowsAndMessaging.MSG lpMsg) 3811 internal static extern unsafe winmdroot.Foundation.BOOL TranslateMDISysAccel(winmdroot.Foundation.HWND hWndClient, winmdroot.UI.WindowsAndMessaging.MSG* lpMsg); 3851 internal static extern winmdroot.Foundation.BOOL UpdateWindow(winmdroot.Foundation.HWND hWnd); 3853 /// <inheritdoc cref="ValidateRect(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*)"/> 3855 internal static unsafe winmdroot.Foundation.BOOL ValidateRect(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT? lpRect) 3874 internal static extern unsafe winmdroot.Foundation.BOOL ValidateRect(winmdroot.Foundation.HWND hWnd, [Optional] winmdroot.Foundation.RECT* lpRect); 3922 internal static extern winmdroot.Foundation.HWND WindowFromPoint(global::System.Drawing.Point Point);
Windows.Win32.PInvoke.UXTHEME.dll.g.cs (9)
136 /// <inheritdoc cref="DrawThemeParentBackground(winmdroot.Foundation.HWND, winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*)"/> 138 internal static unsafe winmdroot.Foundation.HRESULT DrawThemeParentBackground(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.RECT? prc) 166 internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeParentBackground(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT* prc); 1202 /// <inheritdoc cref="OpenThemeData(winmdroot.Foundation.HWND, winmdroot.Foundation.PCWSTR)"/> 1204 internal static unsafe winmdroot.UI.Controls.HTHEME OpenThemeData(winmdroot.Foundation.HWND hwnd, string pszClassList) 1231 internal static extern winmdroot.UI.Controls.HTHEME OpenThemeData(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.PCWSTR pszClassList); 1244 /// <inheritdoc cref="SetWindowTheme(winmdroot.Foundation.HWND, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR)"/> 1246 internal static unsafe winmdroot.Foundation.HRESULT SetWindowTheme(winmdroot.Foundation.HWND hwnd, string pszSubAppName, string pszSubIdList) 1281 internal static extern winmdroot.Foundation.HRESULT SetWindowTheme(winmdroot.Foundation.HWND hwnd, winmdroot.Foundation.PCWSTR pszSubAppName, winmdroot.Foundation.PCWSTR pszSubIdList);
Windows.Win32.PInvoke.winspool.drv.g.cs (3)
26 /// <inheritdoc cref="DocumentProperties(winmdroot.Foundation.HWND, winmdroot.Foundation.HANDLE, winmdroot.Foundation.PWSTR, winmdroot.Graphics.Gdi.DEVMODEW*, winmdroot.Graphics.Gdi.DEVMODEW*, uint)"/> 27 internal static unsafe int DocumentProperties(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.HANDLE hPrinter, winmdroot.Foundation.PWSTR pDeviceName, winmdroot.Graphics.Gdi.DEVMODEW* pDevModeOutput, winmdroot.Graphics.Gdi.DEVMODEW? pDevModeInput, uint fMode) 57 internal static extern unsafe int DocumentProperties(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.HANDLE hPrinter, winmdroot.Foundation.PWSTR pDeviceName, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pDevModeOutput, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pDevModeInput, uint fMode);
Windows.Win32.System_Ole_IOleInPlaceActiveObject_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleInPlaceActiveObject.Interface.GetWindow(winmdroot.Foundation.HWND*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetWindow(this winmdroot.System.Ole.IOleInPlaceActiveObject.Interface @this, out winmdroot.Foundation.HWND phwnd) 26 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd)
Windows.Win32.System_Ole_IOleInPlaceFrame_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleInPlaceFrame.Interface.GetWindow(winmdroot.Foundation.HWND*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetWindow(this winmdroot.System.Ole.IOleInPlaceFrame.Interface @this, out winmdroot.Foundation.HWND phwnd) 26 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd)
Windows.Win32.System_Ole_IOleInPlaceObject_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleInPlaceObject.Interface.GetWindow(winmdroot.Foundation.HWND*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetWindow(this winmdroot.System.Ole.IOleInPlaceObject.Interface @this, out winmdroot.Foundation.HWND phwnd) 26 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd)
Windows.Win32.System_Ole_IOleInPlaceObjectWindowless_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleInPlaceObjectWindowless.Interface.GetWindow(winmdroot.Foundation.HWND*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetWindow(this winmdroot.System.Ole.IOleInPlaceObjectWindowless.Interface @this, out winmdroot.Foundation.HWND phwnd) 26 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd)
Windows.Win32.System_Ole_IOleInPlaceSite_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleInPlaceSite.Interface.GetWindow(winmdroot.Foundation.HWND*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetWindow(this winmdroot.System.Ole.IOleInPlaceSite.Interface @this, out winmdroot.Foundation.HWND phwnd) 26 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd)
Windows.Win32.System_Ole_IOleInPlaceUIWindow_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleInPlaceUIWindow.Interface.GetWindow(winmdroot.Foundation.HWND*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetWindow(this winmdroot.System.Ole.IOleInPlaceUIWindow.Interface @this, out winmdroot.Foundation.HWND phwnd) 26 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd)
Windows.Win32.System_Ole_IOleObject_Extensions.g.cs (2)
36 /// <inheritdoc cref="winmdroot.System.Ole.IOleObject.Interface.DoVerb(int, winmdroot.UI.WindowsAndMessaging.MSG*, winmdroot.System.Ole.IOleClientSite*, int, winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*)"/> 37 internal static unsafe winmdroot.Foundation.HRESULT DoVerb(this winmdroot.System.Ole.IOleObject.Interface @this, int iVerb, in winmdroot.UI.WindowsAndMessaging.MSG lpmsg, winmdroot.System.Ole.IOleClientSite* pActiveSite, int lindex, winmdroot.Foundation.HWND hwndParent, in winmdroot.Foundation.RECT lprcPosRect)
Windows.Win32.System_Ole_IOleWindow_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleWindow.Interface.GetWindow(winmdroot.Foundation.HWND*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetWindow(this winmdroot.System.Ole.IOleWindow.Interface @this, out winmdroot.Foundation.HWND phwnd) 26 fixed (winmdroot.Foundation.HWND* phwndLocal = &phwnd)
Windows.Win32.System_Ole_ISimpleFrameSite_Extensions.g.cs (4)
23 /// <inheritdoc cref="winmdroot.System.Ole.ISimpleFrameSite.Interface.PreMessageFilter(winmdroot.Foundation.HWND, uint, winmdroot.Foundation.WPARAM, winmdroot.Foundation.LPARAM, winmdroot.Foundation.LRESULT*, uint*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT PreMessageFilter(this winmdroot.System.Ole.ISimpleFrameSite.Interface @this, winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, out winmdroot.Foundation.LRESULT plResult, out uint pdwCookie) 36 /// <inheritdoc cref="winmdroot.System.Ole.ISimpleFrameSite.Interface.PostMessageFilter(winmdroot.Foundation.HWND, uint, winmdroot.Foundation.WPARAM, winmdroot.Foundation.LPARAM, winmdroot.Foundation.LRESULT*, uint)"/> 37 internal static unsafe winmdroot.Foundation.HRESULT PostMessageFilter(this winmdroot.System.Ole.ISimpleFrameSite.Interface @this, winmdroot.Foundation.HWND hWnd, uint msg, winmdroot.Foundation.WPARAM wp, winmdroot.Foundation.LPARAM lp, out winmdroot.Foundation.LRESULT plResult, uint dwCookie)
Windows.Win32.TASKDIALOGCONFIG.g.cs (2)
40 internal winmdroot.Foundation.HWND hwndParent; 157 internal unsafe delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,global::Windows.Win32.Foundation.WPARAM,global::Windows.Win32.Foundation.LPARAM,nint,global::Windows.Win32.Foundation.HRESULT> pfCallback;
Windows.Win32.TRACKMOUSEEVENT.g.cs (1)
43 internal winmdroot.Foundation.HWND hwndTrack;
Windows.Win32.TTTOOLINFOW.g.cs (1)
44 internal winmdroot.Foundation.HWND hwnd;
Windows.Win32.TVITEMEXW.g.cs (1)
102 internal winmdroot.Foundation.HWND hwnd;
Windows.Win32.UI_Shell_IAutoComplete_Extensions.g.cs (2)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IAutoComplete.Interface.Init(winmdroot.Foundation.HWND, winmdroot.System.Com.IUnknown*, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT Init(this winmdroot.UI.Shell.IAutoComplete.Interface @this, winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, string pwszRegKeyPath, string pwszQuickComplete)
Windows.Win32.UI_Shell_IAutoComplete2_Extensions.g.cs (2)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IAutoComplete2.Interface.Init(winmdroot.Foundation.HWND, winmdroot.System.Com.IUnknown*, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.PCWSTR)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT Init(this winmdroot.UI.Shell.IAutoComplete2.Interface @this, winmdroot.Foundation.HWND hwndEdit, winmdroot.System.Com.IUnknown* punkACL, string pwszRegKeyPath, string pwszQuickComplete)
Windows.Win32.UI_Shell_IShellFolder_Extensions.g.cs (8)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IShellFolder.Interface.ParseDisplayName(winmdroot.Foundation.HWND, winmdroot.System.Com.IBindCtx*, winmdroot.Foundation.PWSTR, uint*, winmdroot.UI.Shell.Common.ITEMIDLIST**, uint*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT ParseDisplayName(this winmdroot.UI.Shell.IShellFolder.Interface @this, winmdroot.Foundation.HWND hwnd, winmdroot.System.Com.IBindCtx* pbc, winmdroot.Foundation.PWSTR pszDisplayName, out winmdroot.UI.Shell.Common.ITEMIDLIST* ppidl, ref uint pdwAttributes) 81 /// <inheritdoc cref="winmdroot.UI.Shell.IShellFolder.Interface.CreateViewObject(winmdroot.Foundation.HWND, global::System.Guid*, void**)"/> 82 internal static unsafe winmdroot.Foundation.HRESULT CreateViewObject(this winmdroot.UI.Shell.IShellFolder.Interface @this, winmdroot.Foundation.HWND hwndOwner, in global::System.Guid riid, out void* ppv) 104 /// <inheritdoc cref="winmdroot.UI.Shell.IShellFolder.Interface.GetUIObjectOf(winmdroot.Foundation.HWND, uint, winmdroot.UI.Shell.Common.ITEMIDLIST**, global::System.Guid*, uint*, void**)"/> 105 internal static unsafe winmdroot.Foundation.HRESULT GetUIObjectOf(this winmdroot.UI.Shell.IShellFolder.Interface @this, winmdroot.Foundation.HWND hwndOwner, uint cidl, winmdroot.UI.Shell.Common.ITEMIDLIST** apidl, in global::System.Guid riid, out void* ppv) 130 /// <inheritdoc cref="winmdroot.UI.Shell.IShellFolder.Interface.SetNameOf(winmdroot.Foundation.HWND, winmdroot.UI.Shell.Common.ITEMIDLIST*, winmdroot.Foundation.PCWSTR, winmdroot.UI.Shell.SHGDNF, winmdroot.UI.Shell.Common.ITEMIDLIST**)"/> 131 internal static unsafe winmdroot.Foundation.HRESULT SetNameOf(this winmdroot.UI.Shell.IShellFolder.Interface @this, winmdroot.Foundation.HWND hwnd, in winmdroot.UI.Shell.Common.ITEMIDLIST pidl, string pszName, winmdroot.UI.Shell.SHGDNF uFlags, winmdroot.UI.Shell.Common.ITEMIDLIST** ppidlOut)
Windows.Win32.WINDOWPOS.g.cs (2)
33 internal winmdroot.Foundation.HWND hwnd; 39 internal winmdroot.Foundation.HWND hwndInsertAfter;
Windows.Win32.WNDCLASSW.g.cs (1)
40 internal unsafe delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,global::Windows.Win32.Foundation.WPARAM,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.LRESULT> lpfnWndProc;
Windows\Win32\PInvoke.ChildWindowFromPointEx.cs (4)
10/// <inheritdoc cref="ChildWindowFromPointEx(HWND, Point, CWP_FLAGS)"/> 11public static HWND ChildWindowFromPointEx<T>(T hwndParent, Point pt, CWP_FLAGS uFlags) 12where T : IHandle<HWND> 14HWND result = ChildWindowFromPointEx(hwndParent.Handle, pt, uFlags);
Windows\Win32\PInvoke.ClientToScreen.cs (2)
10/// <inheritdoc cref="ClientToScreen(HWND, ref Point)"/> 12where T : IHandle<HWND>
Windows\Win32\PInvoke.CreateWindowEx.cs (3)
11/// <inheritdoc cref="CreateWindowEx(WINDOW_EX_STYLE, string, string, WINDOW_STYLE, int, int, int, int, HWND, HMENU, HINSTANCE, void*)"/> 12public static unsafe HWND CreateWindowEx( 21HWND hWndParent,
Windows\Win32\PInvoke.DrawMenuBar.cs (2)
8/// <inheritdoc cref="DrawMenuBar(HWND)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.EnableScrollBar.cs (2)
8/// <inheritdoc cref="EnableScrollBar(HWND, uint, ENABLE_SCROLL_BAR_ARROWS)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.EnableWindow.cs (2)
8/// <inheritdoc cref="EnableWindow(HWND, BOOL)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.EndDialog.cs (2)
8/// <inheritdoc cref="EndDialog(HWND, nint)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.GetAncestor.cs (4)
8/// <inheritdoc cref="GetAncestor(HWND, GET_ANCESTOR_FLAGS)"/> 9public static HWND GetAncestor<T>(T hwnd, GET_ANCESTOR_FLAGS flags) where T : IHandle<HWND> 11HWND result = GetAncestor(hwnd.Handle, flags);
Windows\Win32\PInvoke.GetDlgItem.cs (4)
8/// <inheritdoc cref="GetDlgItem(HWND, int)"/> 9public static HWND GetDlgItem<T>(T hDlg, int nIDDlgItem) 10where T : IHandle<HWND> 12HWND result = GetDlgItem(hDlg.Handle, nIDDlgItem);
Windows\Win32\PInvoke.GetDpiForWindow.cs (2)
8/// <inheritdoc cref="GetDpiForWindow(HWND)"/> 9public static uint GetDpiForWindow<T>(T hwnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.GetMenu.cs (2)
8/// <inheritdoc cref="GetMenu(HWND)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.GetParent.cs (4)
8/// <inheritdoc cref="GetParent(HWND)"/> 9public static HWND GetParent<T>(T hwnd) where T : IHandle<HWND> 11HWND result = GetParent(hwnd.Handle);
Windows\Win32\PInvoke.GetScrollInfo.cs (2)
8/// <inheritdoc cref="GetScrollInfo(HWND, SCROLLBAR_CONSTANTS, ref SCROLLINFO)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.GetSystemMenu.cs (2)
8/// <inheritdoc cref="GetSystemMenu(HWND, BOOL)"/> 9public static HMENU GetSystemMenu<T>(T hwnd, BOOL bRevert) where T : IHandle<HWND>
Windows\Win32\PInvoke.GetWindow.cs (4)
8/// <inheritdoc cref="GetWindow(HWND, GET_WINDOW_CMD)"/> 9public static HWND GetWindow<T>(T hWnd, GET_WINDOW_CMD uCmd) where T : IHandle<HWND> 11HWND result = GetWindow(hWnd.Handle, uCmd);
Windows\Win32\PInvoke.HtmlHelp.cs (12)
10/// <inheritdoc cref="HtmlHelp(HWND, string, HTML_HELP_COMMAND, nuint)" /> 11internal static unsafe HWND HtmlHelp<T>(T hwndCaller, string? pszFile, HTML_HELP_COMMAND uCommand, nuint dwData) 12where T : IHandle<HWND> 14HWND result = HtmlHelp(hwndCaller.Handle, pszFile, uCommand, dwData); 19/// <inheritdoc cref="HtmlHelp(HWND, string, HTML_HELP_COMMAND, nuint)" /> 20internal static unsafe HWND HtmlHelp<T>(T hwndCaller, string? pszFile, HTML_HELP_COMMAND uCommand, string? dwData) 21where T : IHandle<HWND> 25HWND result = HtmlHelp(hwndCaller.Handle, pszFile, uCommand, (nuint)d); 31/// <inheritdoc cref="HtmlHelp(HWND, string, HTML_HELP_COMMAND, nuint)" /> 32internal static unsafe HWND HtmlHelp<TCaller, TData>( 37where TCaller : IHandle<HWND> 42HWND result = HtmlHelp(hwndCaller.Handle, pszFile, uCommand, (nuint)v);
Windows\Win32\PInvoke.ImmGetContext.cs (2)
10/// <inheritdoc cref="ImmGetContext(HWND)"/> 11public static HIMC ImmGetContext<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.ImmReleaseContext.cs (2)
10/// <inheritdoc cref="ImmReleaseContext(HWND, HIMC)"/> 11public static BOOL ImmReleaseContext<T>(T hWnd, HIMC hIMC) where T : IHandle<HWND>
Windows\Win32\PInvoke.InvalidateRect.cs (2)
8/// <inheritdoc cref="InvalidateRect(HWND, RECT*, BOOL)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.InvalidateRgn.cs (2)
8/// <inheritdoc cref="InvalidateRgn(HWND, HRGN, BOOL)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.IsChild.cs (4)
8/// <inheritdoc cref="IsChild(HWND, HWND)"/> 10where TParent : IHandle<HWND> 11where TChild : IHandle<HWND>
Windows\Win32\PInvoke.IsWindow.cs (2)
8/// <inheritdoc cref="IsWindow(HWND)"/> 9public static BOOL IsWindow<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.IsWindowEnabled.cs (2)
8/// <inheritdoc cref="IsWindowEnabled(HWND)"/> 9public static BOOL IsWindowEnabled<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.IsWindowVisible.cs (2)
8/// <inheritdoc cref="IsWindowVisible(HWND)"/> 9public static BOOL IsWindowVisible<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.KillTimer.cs (2)
8/// <inheritdoc cref="KillTimer(HWND, nuint)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.NotifyWinEvent.cs (2)
8/// <inheritdoc cref="NotifyWinEvent(uint, HWND, int, int)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.OpenThemeDataScope.cs (2)
26/// Opens the requested theme data using <see cref="OpenThemeData(HWND, string)"/>. 28public OpenThemeDataScope(HWND hwnd, string pszClassList)
Windows\Win32\PInvoke.RedrawWindow.cs (2)
8/// <inheritdoc cref="RedrawWindow(HWND, RECT*, HRGN, REDRAW_WINDOW_FLAGS)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.ScreenToClient.cs (2)
10/// <inheritdoc cref="ScreenToClient(HWND, ref Point)"/> 12where T : IHandle<HWND>
Windows\Win32\PInvoke.ScrollWindow.cs (2)
8/// <inheritdoc cref="ScrollWindow(HWND, int, int, RECT*, RECT*)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.ScrollWindowEx.cs (2)
8/// <inheritdoc cref="ScrollWindowEx(HWND, int, int, RECT*, RECT*, HRGN, RECT*, SCROLL_WINDOW_FLAGS)"/> 17SCROLL_WINDOW_FLAGS flags) where T : IHandle<HWND>
Windows\Win32\PInvoke.SendMessageCallback.cs (2)
17where T : IHandle<HWND> 26private static void NativeCallback(HWND hwnd, uint Msg, nuint dwData, LRESULT lResult)
Windows\Win32\PInvoke.SetActiveWindow.cs (4)
8/// <inheritdoc cref="SetActiveWindow(HWND)"/> 9public static HWND SetActiveWindow<T>(T hWnd) where T : IHandle<HWND> 11HWND result = SetActiveWindow(hWnd.Handle);
Windows\Win32\PInvoke.SetCapture.cs (2)
8/// <inheritdoc cref="SetCapture(HWND)"/> 9public static IntPtr SetCapture<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.SetFocus.cs (4)
8/// <inheritdoc cref="SetFocus(HWND)"/> 9public static HWND SetFocus<T>(T hWnd) where T : IHandle<HWND> 11HWND result = SetFocus(hWnd.Handle);
Windows\Win32\PInvoke.SetForegroundWindow.cs (2)
8/// <inheritdoc cref="SetForegroundWindow(HWND)"/> 9public static BOOL SetForegroundWindow<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.SetLayeredWindowAttributes.cs (2)
8/// <inheritdoc cref="SetLayeredWindowAttributes(HWND, COLORREF, byte, LAYERED_WINDOW_ATTRIBUTES_FLAGS)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.SetMenu.cs (4)
8/// <inheritdoc cref="SetMenu(HWND, HMENU)"/> 10where T : IHandle<HWND> 17/// <inheritdoc cref="SetMenu(HWND, HMENU)"/> 19where T1 : IHandle<HWND>
Windows\Win32\PInvoke.SetParent.cs (6)
8/// <inheritdoc cref="SetParent(HWND, HWND)"/> 9public static HWND SetParent<TChild, TParent>(TChild hWndChild, TParent hWndNewParent) 10where TChild : IHandle<HWND> 11where TParent : IHandle<HWND> 13HWND result = SetParent(hWndChild.Handle, hWndNewParent.Handle);
Windows\Win32\PInvoke.SetScrollInfo.cs (2)
8/// <inheritdoc cref="SetScrollInfo(HWND, SCROLLBAR_CONSTANTS, in SCROLLINFO, BOOL)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.SetScrollPos.cs (2)
8/// <inheritdoc cref="SetScrollPos(HWND, SCROLLBAR_CONSTANTS, int, BOOL)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.SetTimer.cs (1)
9where T : IHandle<HWND>
Windows\Win32\PInvoke.SetWindowPos.cs (4)
8/// <inheritdoc cref="SetWindowPos(HWND, HWND, int, int, int, int, SET_WINDOW_POS_FLAGS)"/> 10where T1 : IHandle<HWND> 11where T2 : IHandle<HWND>
Windows\Win32\PInvoke.SetWindowRgn.cs (2)
8/// <inheritdoc cref="SetWindowRgn(HWND, HRGN, BOOL)"/> 10where T : IHandle<HWND>
Windows\Win32\PInvoke.SetWindowText.cs (2)
8/// <inheritdoc cref="SetWindowText(HWND, string)"/> 9public static BOOL SetWindowText<T>(T hWnd, string text) where T : IHandle<HWND>
Windows\Win32\PInvoke.SHAutoComplete.cs (2)
8/// <inheritdoc cref="SHAutoComplete(HWND, SHELL_AUTOCOMPLETE_FLAGS)"/> 9public static HRESULT SHAutoComplete<T>(T hwndEdit, SHELL_AUTOCOMPLETE_FLAGS flags) where T : IHandle<HWND>
Windows\Win32\PInvoke.ShowWindow.cs (2)
8/// <inheritdoc cref="ShowWindow(HWND, SHOW_WINDOW_CMD)"/> 9public static BOOL ShowWindow<T>(T hWnd, SHOW_WINDOW_CMD nCmdShow) where T : IHandle<HWND>
Windows\Win32\PInvoke.UiaHostProviderFromHwnd.cs (2)
10/// <inheritdoc cref="UiaHostProviderFromHwnd(HWND, IRawElementProviderSimple**)"/> 11public static unsafe HRESULT UiaHostProviderFromHwnd<T>(T hwnd, out IRawElementProviderSimple* ppProvider) where T : IHandle<HWND>
Windows\Win32\PInvoke.UiaReturnRawElementProvider.cs (2)
10/// <inheritdoc cref="UiaReturnRawElementProvider(HWND, WPARAM, LPARAM, IRawElementProviderSimple*)"/> 16where T : IHandle<HWND>
Windows\Win32\PInvoke.UpdateWindow.cs (2)
8/// <inheritdoc cref="UpdateWindow(HWND)"/> 9public static BOOL UpdateWindow<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.ValidateRect.cs (2)
8/// <inheritdoc cref="ValidateRect(HWND, RECT*)"/> 10where T : IHandle<HWND>
Windows\Win32\UI\Controls\Dialogs\CHOOSECOLORW.cs (3)
45public HWND hwndOwner; 61public HWND hInstance; 146public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnHook;
Windows\Win32\UI\Controls\Dialogs\CHOOSEFONTW.cs (2)
39public HWND hwndOwner; 142public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnHook;
Windows\Win32\UI\Controls\Dialogs\OPENFILENAME.cs (1)
10public HWND hwndOwner;
Windows\Win32\UI\Controls\Dialogs\PAGESETUPDLGW.cs (3)
52public HWND hwndOwner; 187public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnPageSetupHook; 203public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnPagePaintHook;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_32.cs (3)
18public HWND hwndOwner; 42public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnPrintHook; 44public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnSetupHook;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_64.cs (3)
47public HWND hwndOwner; 255public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnPrintHook; 270public unsafe delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, nuint> lpfnSetupHook;
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (2)
7where T : IHandle<HWND> 36public LRESULT SendMessage(IHandle<HWND> sender, MessageId message, bool state = false)
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (2)
20HWND owner, 21delegate* unmanaged[Stdcall]<HWND, uint, LPARAM, LPARAM, int> callback,
System.Windows.Forms.Primitives.Tests (3)
Interop\User32\GetWindowTextTests.cs (3)
29HWND windowHandle = (HWND)windowClass.CreateWindow(shortText); 57protected override LRESULT WNDPROC(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam)
System.Windows.Forms.Primitives.TestUtilities (9)
Win32\Window.cs (2)
8internal class Window : IDisposable, IHandle<HWND> 12public HWND Handle { get; }
Win32\WindowClass.cs (7)
22public HWND MainWindow { get; private set; } 93lpfnWndProc = (delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, LRESULT>)Marshal.GetFunctionPointerForDelegate(_windowProcedure), 131HWND parentWindow = default, 146public unsafe HWND CreateWindow( 152HWND parentWindow = default, 161HWND window; 217protected virtual LRESULT WNDPROC(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam)
System.Windows.Forms.Tests (36)
System\Windows\Forms\Application.ComponentManagerTests.cs (1)
380HWND IMsoComponent.Interface.HwndGetWindow(msocWindow uWhich, uint dwReserved)
System\Windows\Forms\CheckBoxRendererTests.cs (1)
141CheckBoxRenderer.DrawCheckBox(graphics, point, bounds, control.Text, SystemFonts.DefaultFont, TextFormatFlags.Default, focus, cBState, HWND.Null);
System\Windows\Forms\ClipboardTests.cs (2)
549private static extern bool OpenClipboard(HWND hWndNewOwner); 559OpenClipboard(HWND.Null).Should().BeTrue();
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (4)
1117int actualValue = (int)PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_GETFIRSTVISIBLELINE); 1131int actualValue = (int)PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_GETLINECOUNT); 1157int expectedLine = (int)PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_LINEFROMCHAR, (WPARAM)charIndex); 1178bool expectedValue = PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_LINESCROLL, 0, newLine) != 0;
System\Windows\Forms\ComboBoxTests.cs (1)
2797public AutomationEventCountingComboBoxChildEditUiaProvider(ComboBox owner, HWND childEditControlhandle) : base(owner, childEditControlhandle)
System\Windows\Forms\FileDialogTests.cs (2)
656Assert.Equal((HWND)(nint)1, o.hwndOwner); 752Assert.Equal((HWND)(nint)1, o.hwndOwner);
System\Windows\Forms\FormTests.cs (1)
2746var message = Message.Create(HWND.Null, PInvokeCore.WM_QUERYENDSESSION, wparam: default, lparam: default);
System\Windows\Forms\MdiControlStripTests.cs (1)
308IntPtr menuHandle = PInvoke.GetMenu((HWND)mdiParent.Handle);
System\Windows\Forms\RadioButtonRendererTests.cs (3)
136HWND.Null 311HWND hwnd = HWND.Null;
System\Windows\Forms\RichTextBoxTests.cs (1)
11017private static unsafe string GetClassName(HWND hWnd)
System\Windows\Forms\ScrollBarTests.cs (17)
617Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 747Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 762Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 797Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 812Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 883Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 905Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 946Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 969Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1069Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1091Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1132Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1154Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1614Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1636Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1678Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1700Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si));
System\Windows\Forms\ToolStripItemTests.cs (1)
15618internal new void ReleaseUiaProvider(HWND handle)
System\Windows\Forms\ToolStripTests.cs (1)
492PInvokeCore.RevokeDragDrop((HWND)control.Handle);
System.Windows.Forms.TestUtilities (6)
DialogHostForm.cs (3)
23OnDialogIdle((HWND)m.LParamInternal); 29protected virtual void OnDialogIdle(HWND dialogHandle) 34protected static unsafe void Accept(HWND handle)
SystemEventsHelper.cs (3)
14private static HWND GetHWnd() 25HWND window = PInvoke.FindWindow(windowClassName, null); 31HWND window = GetHWnd();
System.Windows.Forms.UI.IntegrationTests (8)
DragDropTests.cs (2)
625(HWND)process.MainWindowHandle, 626HWND.HWND_TOP,
Infra\ControlTestBase.cs (1)
108Assert.Equal(HWND.Null, PInvoke.GetCapture());
Infra\SendInput.cs (2)
83PInvoke.SetWindowPos(window, HWND.HWND_TOPMOST, 0, 0, 0, 0, SET_WINDOW_POS_FLAGS.SWP_NOSIZE | SET_WINDOW_POS_FLAGS.SWP_NOMOVE); 103PInvoke.SetWindowPos(window, HWND.HWND_NOTOPMOST, 0, 0, 0, 0, SET_WINDOW_POS_FLAGS.SWP_NOSIZE | SET_WINDOW_POS_FLAGS.SWP_NOMOVE);
OpenFileDialogTests.cs (2)
69protected override void OnDialogIdle(HWND dialogHandle) 78protected override void OnDialogIdle(HWND dialogHandle)
PrintDialogTests.cs (1)
34protected override void OnDialogIdle(HWND dialogHandle)
WinFormsControlsTest (3)
ScalingBeforeChanges.cs (3)
31internal static void GetDevicePixels(HWND hwnd, out double x, out double y) 49GetDevicePixels((HWND)Handle, out _deviceDpiX, out _deviceDpiY); 88HWND.Null,