RedrawWindow function Null safety user32

int RedrawWindow(
  1. int hWnd,
  2. Pointer<RECT> lprcUpdate,
  3. int hrgnUpdate,
  4. int flags
)

The RedrawWindow function updates the specified rectangle or region in a window's client area.

BOOL RedrawWindow(
  HWND       hWnd,
  const RECT *lprcUpdate,
  HRGN       hrgnUpdate,
  UINT       flags
);

Implementation

int RedrawWindow(
    int hWnd, Pointer<RECT> lprcUpdate, int hrgnUpdate, int flags) {
  final _RedrawWindow = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Pointer<RECT> lprcUpdate, IntPtr hrgnUpdate,
          Uint32 flags),
      int Function(int hWnd, Pointer<RECT> lprcUpdate, int hrgnUpdate,
          int flags)>('RedrawWindow');
  return _RedrawWindow(hWnd, lprcUpdate, hrgnUpdate, flags);
}