SetScrollInfo function Null safety user32

int SetScrollInfo(
  1. int hwnd,
  2. int nBar,
  3. Pointer<SCROLLINFO> lpsi,
  4. int redraw
)

The SetScrollInfo function sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb). The function also redraws the scroll bar, if requested.

int SetScrollInfo(
  HWND          hwnd,
  int           nBar,
  LPCSCROLLINFO lpsi,
  BOOL          redraw
);

Implementation

int SetScrollInfo(int hwnd, int nBar, Pointer<SCROLLINFO> lpsi, int redraw) {
  final _SetScrollInfo = _user32.lookupFunction<
      Int32 Function(
          IntPtr hwnd, Uint32 nBar, Pointer<SCROLLINFO> lpsi, Int32 redraw),
      int Function(int hwnd, int nBar, Pointer<SCROLLINFO> lpsi,
          int redraw)>('SetScrollInfo');
  return _SetScrollInfo(hwnd, nBar, lpsi, redraw);
}