ScreenToClient function Null safety user32

int ScreenToClient(
  1. int hWnd,
  2. Pointer<POINT> lpPoint

The ScreenToClient function converts the screen coordinates of a specified point on the screen to client-area coordinates.

BOOL ScreenToClient(
  HWND    hWnd,
  LPPOINT lpPoint


int ScreenToClient(int hWnd, Pointer<POINT> lpPoint) {
  final _ScreenToClient = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Pointer<POINT> lpPoint),
      int Function(int hWnd, Pointer<POINT> lpPoint)>('ScreenToClient');
  return _ScreenToClient(hWnd, lpPoint);