6 instantiations of HANDLE
Microsoft.Private.Windows.Core (6)
Windows.Win32.HANDLE.g.cs (3)
41 public static explicit operator HANDLE(void* value) => new HANDLE(value); 57 public static explicit operator HANDLE(IntPtr value) => new HANDLE((void*)value.ToPointer()); 59 public static explicit operator HANDLE(UIntPtr value) => new HANDLE((void*)value.ToPointer());
Windows.Win32.HWND.g.cs (1)
61 public static implicit operator HANDLE(HWND value) => new HANDLE(value.Value);
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (1)
12public static implicit operator HANDLE(HCURSOR handle) => new((nint)handle);
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (1)
12public static implicit operator HANDLE(HICON handle) => new((nint)handle);
30 references to HANDLE
Microsoft.Private.Windows.Core (30)
System\Private\Windows\Ole\DragDropFormat.cs (1)
69(HANDLE)(nint)mediumSource.hGlobal,
Windows.Win32.HANDLE.g.cs (13)
25 : IEquatable<HANDLE> 35 internal static HANDLE Null => default; 39 public static implicit operator void*(HANDLE value) => value.Value; 41 public static explicit operator HANDLE(void* value) => new HANDLE(value); 43 public static bool operator ==(HANDLE left, HANDLE right) => left.Value == right.Value; 45 public static bool operator !=(HANDLE left, HANDLE right) => !(left == right); 47 public bool Equals(HANDLE other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HANDLE other && this.Equals(other); 55 public static implicit operator IntPtr(HANDLE value) => new IntPtr(value.Value); 57 public static explicit operator HANDLE(IntPtr value) => new HANDLE((void*)value.ToPointer()); 59 public static explicit operator HANDLE(UIntPtr value) => new HANDLE((void*)value.ToPointer());
Windows.Win32.HWND.g.cs (1)
61 public static implicit operator HANDLE(HWND value) => new HANDLE(value.Value);
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (3)
194 /// <inheritdoc cref="CreateDIBSection(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.BITMAPINFO*, winmdroot.Graphics.Gdi.DIB_USAGE, void**, winmdroot.Foundation.HANDLE, uint)"/> 196 internal static unsafe winmdroot.Graphics.Gdi.HBITMAP CreateDIBSection(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, out void* ppvBits, winmdroot.Foundation.HANDLE hSection, uint offset) 229 internal static extern unsafe winmdroot.Graphics.Gdi.HBITMAP CreateDIBSection(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, void** ppvBits, winmdroot.Foundation.HANDLE hSection, uint offset);
Windows.Win32.PInvokeCore.KERNEL32.dll.g.cs (1)
39 internal static extern winmdroot.Foundation.BOOL CloseHandle(winmdroot.Foundation.HANDLE hObject);
Windows.Win32.PInvokeCore.OLE32.dll.g.cs (2)
111 internal static extern winmdroot.Foundation.HANDLE OleDuplicateData(winmdroot.Foundation.HANDLE hSrc, winmdroot.System.Ole.CLIPBOARD_FORMAT cfFormat, winmdroot.System.Memory.GLOBAL_ALLOC_FLAGS uiFlags);
Windows.Win32.PInvokeCore.USER32.dll.g.cs (3)
110 internal static extern winmdroot.Foundation.HANDLE CopyImage(winmdroot.Foundation.HANDLE h, winmdroot.UI.WindowsAndMessaging.GDI_IMAGE_TYPE type, int cx, int cy, winmdroot.UI.WindowsAndMessaging.IMAGE_FLAGS flags); 442 internal static extern uint GetGuiResources(winmdroot.Foundation.HANDLE hProcess, winmdroot.System.Threading.GET_GUI_RESOURCES_FLAGS uiFlags);
Windows\Win32\PInvokeCore.CopyImage.cs (2)
8/// <inheritdoc cref="CopyImage(HANDLE, GDI_IMAGE_TYPE, int, int, IMAGE_FLAGS)"/> 17/// <inheritdoc cref="CopyImage(HANDLE, GDI_IMAGE_TYPE, int, int, IMAGE_FLAGS)"/>
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (2)
11public static explicit operator HCURSOR(HANDLE handle) => new((nint)handle); 12public static implicit operator HANDLE(HCURSOR handle) => new((nint)handle);
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (2)
11public static explicit operator HICON(HANDLE handle) => new((nint)handle); 12public static implicit operator HANDLE(HICON handle) => new((nint)handle);