GetUpdateRgn function Null safety user32

int GetUpdateRgn (
  1. int hWnd,
  2. int hRgn,
  3. int bErase

The GetUpdateRgn function retrieves the update region of a window by copying it into the specified region. The coordinates of the update region are relative to the upper-left corner of the window (that is, they are client coordinates).

int GetUpdateRgn(
  HWND hWnd,
  HRGN hRgn,
  BOOL bErase


int GetUpdateRgn(int hWnd, int hRgn, int bErase) {
  final _GetUpdateRgn = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, IntPtr hRgn, Int32 bErase),
      int Function(int hWnd, int hRgn, int bErase)>('GetUpdateRgn');
  return _GetUpdateRgn(hWnd, hRgn, bErase);