7 implementations of IHandle
Microsoft.Private.Windows.Core (7)
Windows\Win32\Foundation\HandleRef.cs (1)
19internal readonly struct HandleRef<THandle> : IHandle<THandle>, IEquatable<HandleRef<THandle>>
Windows\Win32\Foundation\HWND.cs (1)
6internal partial struct HWND : IHandle<HWND>
Windows\Win32\Foundation\NullHandle.cs (1)
6internal class NullHandle<T> : IHandle<T> where T : unmanaged
Windows\Win32\Graphics\Gdi\HDC.cs (1)
9internal readonly partial struct HDC : IHandle<HDC>
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
10internal sealed class HdcHandle : IDisposable, IHandle<HDC>
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (1)
6internal unsafe partial struct HCURSOR : IHandle<HCURSOR>
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (1)
6internal unsafe partial struct HICON : IHandle<HICON>
47 references to IHandle
Microsoft.Private.Windows.Core (47)
Windows\Win32\Foundation\HandleRef.cs (2)
7/// Adapter to use when owning classes cannot directly implement <see cref="IHandle{T}"/>. 33public HandleRef(IHandle<THandle>? handle)
Windows\Win32\Foundation\HWND.cs (2)
8HWND IHandle<HWND>.Handle => this; 9object? IHandle<HWND>.Wrapper => null;
Windows\Win32\Foundation\IHandle.cs (3)
22/// <see cref="IHandle{THandle}"/>, but should take a generic "T" that is constrained to IHandle{T}. Doing 37/// <see cref="IHandle{THandle}"/> implementer. 42/// <see cref="IHandle{THandle}"/> is on a struct. See <see cref="HandleRef{THandle}"/> for a concrete usage.
Windows\Win32\Graphics\Gdi\HDC.cs (2)
11HDC IHandle<HDC>.Handle => this; 12object? IHandle<HDC>.Wrapper => null;
Windows\Win32\PInvokeCore.BitBlt.cs (2)
18ROP_CODE rop) where T : IHandle<HDC> 44ROP_CODE rop) where T : IHandle<HDC>
Windows\Win32\PInvokeCore.CallWindowProc.cs (1)
9where T : IHandle<HWND>
Windows\Win32\PInvokeCore.CopyImage.cs (2)
10where T : IHandle<HICON> 19where T : IHandle<HCURSOR>
Windows\Win32\PInvokeCore.DragAcceptFiles.cs (1)
9public static void DragAcceptFiles<T>(T hWnd, BOOL fAccept) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.DrawIcon.cs (1)
9where T : IHandle<HICON>
Windows\Win32\PInvokeCore.DrawIconEx.cs (1)
17where T : IHandle<HICON>
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
18where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetClientRect.cs (1)
10where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetIconInfo.cs (1)
10where T : IHandle<HICON>
Windows\Win32\PInvokeCore.GetWindowLong.cs (1)
26where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetWindowRect.cs (1)
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 (1)
9public static int GetWindowTextLength<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.GetWindowThreadProcessId.cs (1)
10where T : IHandle<HWND>
Windows\Win32\PInvokeCore.MapWindowPoints.cs (4)
12where TFrom : IHandle<HWND> 13where TTo : IHandle<HWND> 26where TFrom : IHandle<HWND> 27where TTo : IHandle<HWND>
Windows\Win32\PInvokeCore.PeekMessage.cs (1)
15where T : IHandle<HWND>
Windows\Win32\PInvokeCore.PostMessage.cs (1)
14where T : IHandle<HWND>
Windows\Win32\PInvokeCore.RegisterDragDrop.cs (1)
12where T : IHandle<HWND>
Windows\Win32\PInvokeCore.RevokeDragDrop.cs (1)
9public static HRESULT RevokeDragDrop<T>(T hwnd) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.SendMessage.cs (6)
13LPARAM lParam = default) where T : IHandle<HWND> 25LPARAM lParam = default) where THwnd : IHandle<HWND> where TWParam : IHandle<HWND> 37string? lParam) where T : IHandle<HWND> 51where THwnd : IHandle<HWND> 66where THwnd : IHandle<HWND>
Windows\Win32\PInvokeCore.SetWindowLong.cs (4)
15where T : IHandle<HWND> 25where THwnd : IHandle<HWND> 26where TNewValue : IHandle<HWND> 34where T : IHandle<HWND>
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (2)
8HCURSOR IHandle<HCURSOR>.Handle => this; 9object? IHandle<HCURSOR>.Wrapper => null;
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (2)
8HICON IHandle<HICON>.Handle => this; 9object? IHandle<HICON>.Wrapper => null;