GetClientRect function Null safety user32

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

Retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).

BOOL GetClientRect(
  HWND   hWnd,
  LPRECT lpRect


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