GetCursorPos function Null safety user32
Retrieves the position of the mouse cursor, in screen coordinates.
BOOL GetCursorPos(
LPPOINT lpPoint
);
Implementation
int GetCursorPos(Pointer<POINT> lpPoint) {
final _GetCursorPos = _user32.lookupFunction<
Int32 Function(Pointer<POINT> lpPoint),
int Function(Pointer<POINT> lpPoint)>('GetCursorPos');
return _GetCursorPos(lpPoint);
}