ChildWindowFromPoint function Null safety user32

int ChildWindowFromPoint (
  1. int hWndParent,
  2. POINT Point
)

Determines which, if any, of the child windows belonging to a parent window contains the specified point. The search is restricted to immediate child windows. Grandchildren, and deeper descendant windows are not searched.

HWND ChildWindowFromPoint(
  HWND  hWndParent,
  POINT Point
);

Implementation

int ChildWindowFromPoint(int hWndParent, POINT Point) {
  final _ChildWindowFromPoint = _user32.lookupFunction<
      IntPtr Function(IntPtr hWndParent, POINT Point),
      int Function(int hWndParent, POINT Point)>('ChildWindowFromPoint');
  return _ChildWindowFromPoint(hWndParent, Point);
}