1 interface inheriting from IHandle
System.Private.Windows.Core (1)
System\Drawing\IIcon.cs (1)
6internal interface IIcon : IHandle<HICON>
7 implementations of IHandle
System.Private.Windows.Core (7)
Windows\Win32\Foundation\HandleRef.cs (1)
22internal 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)
6internal 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 partial struct HCURSOR : IHandle<HCURSOR>
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (1)
6internal partial struct HICON : IHandle<HICON>
43 references to IHandle
System.Private.Windows.Core (43)
Windows\Win32\Foundation\HandleRef.cs (2)
10/// Adapter to use when owning classes cannot directly implement <see cref="IHandle{T}"/>. 36public 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)
24/// <see cref="IHandle{THandle}"/>, but should take a generic "T" that is constrained to IHandle{T}. Doing 39/// <see cref="IHandle{THandle}"/> implementer. 44/// <see cref="IHandle{THandle}"/> is on a struct. See <see cref="HandleRef{THandle}"/> for a concrete usage.
Windows\Win32\Graphics\Gdi\HDC.cs (2)
8HDC IHandle<HDC>.Handle => this; 9object? IHandle<HDC>.Wrapper => null;
Windows\Win32\PInvoke.CallWindowProc.cs (1)
9where T : IHandle<HWND>
Windows\Win32\PInvoke.GetWindowRect.cs (1)
9public static BOOL GetWindowRect<T>(T hWnd, out RECT lpRect) where T : IHandle<HWND>
Windows\Win32\PInvoke.GetWindowText.cs (1)
15public static unsafe string GetWindowText<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.GetWindowTextLength.cs (1)
9public static int GetWindowTextLength<T>(T hWnd) where T : IHandle<HWND>
Windows\Win32\PInvoke.MapWindowPoints.cs (4)
12where TFrom : IHandle<HWND> 13where TTo : IHandle<HWND> 26where TFrom : IHandle<HWND> 27where TTo : IHandle<HWND>
Windows\Win32\PInvokeCore.BitBlt.cs (2)
18ROP_CODE rop) where T : IHandle<HDC> 44ROP_CODE rop) where T : IHandle<HDC>
Windows\Win32\PInvokeCore.CopyImage.cs (2)
10where T : IHandle<HICON> 19where T : IHandle<HCURSOR>
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)
14where 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)
28where T : 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.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)
17where T : IHandle<HWND> 27where THwnd : IHandle<HWND> 28where TNewValue : IHandle<HWND> 36where 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;