PtInRect function Null safety user32

int PtInRect (
  1. Pointer<RECT> lprc,
  2. POINT pt

The PtInRect function determines whether the specified point lies within the specified rectangle. A point is within a rectangle if it lies on the left or top side or is within all four sides. A point on the right or bottom side is considered outside the rectangle.

BOOL PtInRect(
  const RECT *lprc,
  POINT      pt


int PtInRect(Pointer<RECT> lprc, POINT pt) {
  final _PtInRect = _user32.lookupFunction<
      Int32 Function(Pointer<RECT> lprc, POINT pt),
      int Function(Pointer<RECT> lprc, POINT pt)>('PtInRect');
  return _PtInRect(lprc, pt);