ChildWindowFromPointEx

[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr ChildWindowFromPointEx(
   IntPtr hwnd,
   POINT pt,
   uint flags
);

Microsoft documentation: Link

Last updated