ScrollWindow function Null safety user32

int ScrollWindow (
  1. int hWnd,
  2. int XAmount,
  3. int YAmount,
  4. Pointer<RECT> lpRect,
  5. Pointer<RECT> lpClipRect
)

The ScrollWindow function scrolls the contents of the specified window's client area.

BOOL ScrollWindow(
  HWND       hWnd,
  int        XAmount,
  int        YAmount,
  const RECT *lpRect,
  const RECT *lpClipRect
);

Implementation

int ScrollWindow(int hWnd, int XAmount, int YAmount, Pointer<RECT> lpRect,
    Pointer<RECT> lpClipRect) {
  final _ScrollWindow = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Int32 XAmount, Int32 YAmount,
          Pointer<RECT> lpRect, Pointer<RECT> lpClipRect),
      int Function(int hWnd, int XAmount, int YAmount, Pointer<RECT> lpRect,
          Pointer<RECT> lpClipRect)>('ScrollWindow');
  return _ScrollWindow(hWnd, XAmount, YAmount, lpRect, lpClipRect);
}