ValidateRect function Null safety user32

int ValidateRect(
  1. int hWnd,
  2. Pointer<RECT> lpRect
)

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

BOOL ValidateRect(
  HWND       hWnd,
  const RECT *lpRect
);

Implementation

int ValidateRect(int hWnd, Pointer<RECT> lpRect) {
  final _ValidateRect = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Pointer<RECT> lpRect),
      int Function(int hWnd, Pointer<RECT> lpRect)>('ValidateRect');
  return _ValidateRect(hWnd, lpRect);
}