GetUpdateRect function Null safety user32

int GetUpdateRect (
  1. int hWnd,
  2. Pointer<RECT> lpRect,
  3. int bErase

The GetUpdateRect function retrieves the coordinates of the smallest rectangle that completely encloses the update region of the specified window. GetUpdateRect retrieves the rectangle in logical coordinates. If there is no update region, GetUpdateRect retrieves an empty rectangle (sets all coordinates to zero).

BOOL GetUpdateRect(
  HWND   hWnd,
  LPRECT lpRect,
  BOOL   bErase


int GetUpdateRect(int hWnd, Pointer<RECT> lpRect, int bErase) {
  final _GetUpdateRect = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Pointer<RECT> lpRect, Int32 bErase),
      int Function(
          int hWnd, Pointer<RECT> lpRect, int bErase)>('GetUpdateRect');
  return _GetUpdateRect(hWnd, lpRect, bErase);