| File: Windows\Win32\PInvoke.ChildWindowFromPointEx.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms.Primitives\src\System.Windows.Forms.Primitives.csproj (System.Windows.Forms.Primitives) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Drawing; namespace Windows.Win32; internal static partial class PInvoke { /// <inheritdoc cref="ChildWindowFromPointEx(HWND, Point, CWP_FLAGS)"/> public static HWND ChildWindowFromPointEx<T>(T hwndParent, Point pt, CWP_FLAGS uFlags) where T : IHandle<HWND> { HWND result = ChildWindowFromPointEx(hwndParent.Handle, pt, uFlags); GC.KeepAlive(hwndParent.Wrapper); return result; } }