SubtractRect function Null safety user32

int SubtractRect(
  1. Pointer<RECT> lprcDst,
  2. Pointer<RECT> lprcSrc1,
  3. Pointer<RECT> lprcSrc2
)

The SubtractRect function determines the coordinates of a rectangle formed by subtracting one rectangle from another.

BOOL SubtractRect(
  LPRECT     lprcDst,
  const RECT *lprcSrc1,
  const RECT *lprcSrc2
);

Implementation

int SubtractRect(
    Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) {
  final _SubtractRect = _user32.lookupFunction<
      Int32 Function(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1,
          Pointer<RECT> lprcSrc2),
      int Function(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1,
          Pointer<RECT> lprcSrc2)>('SubtractRect');
  return _SubtractRect(lprcDst, lprcSrc1, lprcSrc2);
}