6 implementations of Handle
System.Private.Windows.Core (6)
Windows\Win32\Foundation\HWND.cs (1)
8HWND IHandle<HWND>.Handle => this;
Windows\Win32\Foundation\NullHandle.cs (1)
12public T Handle => default;
Windows\Win32\Graphics\Gdi\HDC.cs (1)
8HDC IHandle<HDC>.Handle => this;
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
24public HDC Handle { get; private set; }
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (1)
8HCURSOR IHandle<HCURSOR>.Handle => this;
Windows\Win32\UI\WindowsAndMessaging\HICON.cs (1)
8HICON IHandle<HICON>.Handle => this;
31 references to Handle
System.Private.Windows.Core (31)
Windows\Win32\Foundation\HandleRef.cs (1)
39Handle = handle?.Handle ?? default;
Windows\Win32\Foundation\IHandle.cs (1)
38/// Owner of the <see cref="Handle"/> that might close it when finalized. Default is the
Windows\Win32\PInvoke.CallWindowProc.cs (1)
13hWnd.Handle,
Windows\Win32\PInvoke.GetWindowRect.cs (1)
11BOOL result = GetWindowRect(hWnd.Handle, out lpRect);
Windows\Win32\PInvoke.GetWindowText.cs (2)
24int newTextLength = GetWindowTextLength(hWnd.Handle); 46int actualTextLength = GetWindowText(hWnd.Handle, b, buffer.Length);
Windows\Win32\PInvoke.GetWindowTextLength.cs (1)
11int result = GetWindowTextLength(hWnd.Handle);
Windows\Win32\PInvoke.MapWindowPoints.cs (4)
17int result = MapWindowPoints(hWndFrom.Handle, hWndTo.Handle, (Point*)p, cPoints: 2); 31int result = MapWindowPoints(hWndFrom.Handle, hWndTo.Handle, (Point*)p, cPoints: 1);
Windows\Win32\PInvokeCore.BitBlt.cs (2)
21hdc.Handle, 52hdcSrc.Handle,
Windows\Win32\PInvokeCore.CopyImage.cs (2)
12HICON result = (HICON)CopyImage(hImage.Handle, GDI_IMAGE_TYPE.IMAGE_ICON, cx, cy, flags); 21HCURSOR result = (HCURSOR)CopyImage(hImage.Handle, GDI_IMAGE_TYPE.IMAGE_CURSOR, cx, cy, flags);
Windows\Win32\PInvokeCore.DrawIconEx.cs (1)
25BOOL result = DrawIconEx(hDC, xLeft, yTop, hIcon.Handle, cxWidth, cyWidth, 0, HBRUSH.Null, diFlags);
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
22return EnumChildWindows(hwndParent.Handle, &EnumChildWindowsNativeCallback, (LPARAM)(nint)gcHandle);
Windows\Win32\PInvokeCore.GetClientRect.cs (1)
12BOOL result = GetClientRect(hWnd.Handle, out lpRect);
Windows\Win32\PInvokeCore.GetIconInfo.cs (1)
12GetIconInfo(icon.Handle, out ICONINFO info);
Windows\Win32\PInvokeCore.GetWindowLong.cs (2)
31? GetWindowLongPtrW(hWnd.Handle, nIndex) 32: GetWindowLongW(hWnd.Handle, nIndex);
Windows\Win32\PInvokeCore.PeekMessage.cs (1)
17BOOL result = PeekMessage(lpMsg, hWnd.Handle, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
Windows\Win32\PInvokeCore.PostMessage.cs (1)
16BOOL result = PostMessage(hWnd.Handle, (uint)Msg, wParam, lParam);
Windows\Win32\PInvokeCore.SendMessage.cs (3)
15LRESULT result = SendMessage(hWnd.Handle, (uint)Msg, wParam, lParam); 27LRESULT result = SendMessage(hWnd.Handle, (uint)Msg, (WPARAM)wParam.Handle, lParam);
Windows\Win32\PInvokeCore.SetWindowLong.cs (3)
20? SetWindowLongPtrW(hWnd.Handle, nIndex, newValue) 21: SetWindowLongW(hWnd.Handle, nIndex, (int)newValue); 30nint result = SetWindowLong(hWnd, nIndex, (nint)newValue.Handle);
Windows\Win32\System\Ole\PICTDESC.cs (2)
33(HANDLE)icon.Handle, 38: icon.Handle;