ValidateRgn function Null safety user32

int ValidateRgn(
  1. int hWnd,
  2. int hRgn

The ValidateRgn function validates the client area within a region by removing the region from the current update region of the specified window.

BOOL ValidateRgn(
  HWND hWnd,
  HRGN hRgn


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