ClientToScreen function Null safety user32

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

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

BOOL ClientToScreen(
  HWND    hWnd,
  LPPOINT lpPoint
);

Implementation

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