OffsetRect function Null safety user32

int OffsetRect(
  1. Pointer<RECT> lprc,
  2. int dx,
  3. int dy
)

The OffsetRect function moves the specified rectangle by the specified offsets.

BOOL OffsetRect(
  LPRECT lprc,
  int    dx,
  int    dy
);

Implementation

int OffsetRect(Pointer<RECT> lprc, int dx, int dy) {
  final _OffsetRect = _user32.lookupFunction<
      Int32 Function(Pointer<RECT> lprc, Int32 dx, Int32 dy),
      int Function(Pointer<RECT> lprc, int dx, int dy)>('OffsetRect');
  return _OffsetRect(lprc, dx, dy);
}