3 instantiations of HWND
Microsoft.Private.Windows.Core (3)
_generated\121\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());
197 references to HWND
Microsoft.Private.Windows.Core (197)
_generated\121\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);
_generated\131\Windows.Win32.IDragSourceHelper.g.cs (6)
83 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 84 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 108 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 110 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); 142 internal delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 157 unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
_generated\132\Windows.Win32.IDragSourceHelper2.g.cs (6)
70 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 71 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 78 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 80 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); 128 internal delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 145 unsafe new winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
_generated\134\Windows.Win32.IDropSourceNotify.g.cs (4)
61 public winmdroot.Foundation.HRESULT DragEnterTarget(winmdroot.Foundation.HWND hwndTarget) 63 return ((delegate *unmanaged [Stdcall]<IDropSourceNotify*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDropSourceNotify*)Unsafe.AsPointer(ref this), hwndTarget); 103 internal delegate *unmanaged [Stdcall]<IDropSourceNotify*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> DragEnterTarget_4; 117winmdroot.Foundation.HRESULT DragEnterTarget(winmdroot.Foundation.HWND hwndTarget);
_generated\136\Windows.Win32.IDropTargetHelper.g.cs (6)
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) 86 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) 88 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); 202 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; 222 unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect);
_generated\172\Windows.Win32.MSG.g.cs (1)
33 internal winmdroot.Foundation.HWND hwnd;
_generated\195\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);
_generated\197\Windows.Win32.PInvokeCore.SHELL32.dll.g.cs (1)
38 internal static extern void DragAcceptFiles(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.BOOL fAccept);
_generated\198\Windows.Win32.PInvokeCore.USER32.dll.g.cs (40)
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); 138 internal static extern winmdroot.Foundation.LRESULT DefWindowProc(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 203 /// <inheritdoc cref="EndPaint(winmdroot.Foundation.HWND, winmdroot.Graphics.Gdi.PAINTSTRUCT*)"/> 205 internal static unsafe winmdroot.Foundation.BOOL EndPaint(winmdroot.Foundation.HWND hWnd, in winmdroot.Graphics.Gdi.PAINTSTRUCT lpPaint) 224 internal static extern unsafe winmdroot.Foundation.BOOL EndPaint(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.PAINTSTRUCT* lpPaint); 248 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); 303 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); 323 internal static extern 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); 325 /// <inheritdoc cref="GetClientRect(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*)"/> 327 internal static unsafe winmdroot.Foundation.BOOL GetClientRect(winmdroot.Foundation.HWND hWnd, out winmdroot.Foundation.RECT lpRect) 351 internal static extern unsafe winmdroot.Foundation.BOOL GetClientRect(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT* lpRect); 388 internal static extern winmdroot.Graphics.Gdi.HDC GetDC(winmdroot.Foundation.HWND hWnd); 403 internal static extern winmdroot.Graphics.Gdi.HDC GetDCEx(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hrgnClip, winmdroot.Graphics.Gdi.GET_DCX_FLAGS flags); 414 internal static extern winmdroot.Foundation.HWND GetDesktopWindow(); 425 internal static extern winmdroot.Foundation.HWND GetForegroundWindow(); 539 /// <inheritdoc cref="GetWindowRect(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*)"/> 541 internal static unsafe winmdroot.Foundation.BOOL GetWindowRect(winmdroot.Foundation.HWND hWnd, out winmdroot.Foundation.RECT lpRect) 568 internal static extern unsafe winmdroot.Foundation.BOOL GetWindowRect(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT* lpRect); 592 internal static extern int GetWindowText(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.PWSTR lpString, int nMaxCount); 609 internal static extern int GetWindowTextLength(winmdroot.Foundation.HWND hWnd); 628 internal static extern unsafe uint GetWindowThreadProcessId(winmdroot.Foundation.HWND hWnd, [Optional] uint* lpdwProcessId); 679 /// <inheritdoc cref="MapWindowPoints(winmdroot.Foundation.HWND, winmdroot.Foundation.HWND, global::System.Drawing.Point*, uint)"/> 681 internal static unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, ReadOnlySpan<global::System.Drawing.Point> lpPoints) 706 internal static extern unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, global::System.Drawing.Point* lpPoints, uint cPoints); 754 internal static extern winmdroot.Graphics.Gdi.HMONITOR MonitorFromWindow(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Gdi.MONITOR_FROM_FLAGS dwFlags); 756 /// <inheritdoc cref="PeekMessage(winmdroot.UI.WindowsAndMessaging.MSG*, winmdroot.Foundation.HWND, uint, uint, winmdroot.UI.WindowsAndMessaging.PEEK_MESSAGE_REMOVE_TYPE)"/> 758 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) 796 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); 825 internal static extern winmdroot.Foundation.BOOL PostMessage(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 866 internal static extern int ReleaseDC(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HDC hDC); 894 internal static extern winmdroot.Foundation.LRESULT SendMessage(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 950 internal static extern winmdroot.Foundation.HWND WindowFromDC(winmdroot.Graphics.Gdi.HDC hDC);
_generated\259\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)
_generated\260\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)
_generated\261\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)
System\Private\Windows\Ole\DragDropHelper.cs (2)
52public static void DragEnter(HWND targetWindowHandle, IDragEvent e) 67public static void DragEnter(HWND targetWindowHandle, IComVisibleDataObject dataObject, ref Point point, DROPEFFECT effect)
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 (6)
8public delegate BOOL EnumChildWindowsCallback(HWND hWnd); 11private delegate BOOL EnumChildWindowsNativeCallback(HWND hWnd, LPARAM lParam); 13private static readonly delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL> s_enumChildWindowsNativeCallbackFunctionPointer = 14(delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumChildWindowsNativeCallback); 18where T : IHandle<HWND> 42private static BOOL HandleEnumChildWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (5)
8public delegate BOOL EnumThreadWindowsCallback(HWND hWnd); 11private delegate BOOL EnumThreadWindowsNativeCallback(HWND hWnd, LPARAM lParam); 13private static readonly delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL> s_enumThreadWindowsNativeCallbackFunctionPointer = 14(delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumThreadWindowsNativeCallback); 46private static BOOL HandleEnumThreadWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.EnumWindows.cs (5)
8public delegate BOOL EnumWindowsCallback(HWND hWnd); 11private delegate BOOL EnumWindowsNativeCallback(HWND hWnd, LPARAM lParam); 13private static readonly delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL> s_enumWindowsNativeCallbackFunctionPointer = 14(delegate* unmanaged[Stdcall]<HWND, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumWindowsNativeCallback); 40private static BOOL HandleEnumWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.GetClassLong.cs (3)
11private static extern nint GetClassLongW(HWND hWnd, GET_CLASS_LONG_INDEX nIndex); 15private static extern nint GetClassLongPtrW(HWND hWnd, GET_CLASS_LONG_INDEX nIndex); 17public 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)
9private static extern nint GetWindowLongW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex); 12private static extern nint GetWindowLongPtrW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex); 26where 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)
13public 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)
10private static extern nint SetClassLongW(HWND hwnd, GET_CLASS_LONG_INDEX nIndex, nint dwNewLong); 13private static extern nint SetClassLongPtrW(HWND hwnd, GET_CLASS_LONG_INDEX nIndex, nint dwNewLong); 15public static nint SetClassLong(HWND hWnd, GET_CLASS_LONG_INDEX nIndex, nint dwNewLong)
Windows\Win32\PInvokeCore.SetWindowLong.cs (6)
9private static extern nint SetWindowLongW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex, nint dwNewLong); 12private static extern nint SetWindowLongPtrW(HWND hWnd, WINDOW_LONG_PTR_INDEX nIndex, nint dwNewLong); 15where T : IHandle<HWND> 25where THwnd : IHandle<HWND> 26where TNewValue : IHandle<HWND> 34where 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);