GetCursorPos function user32

Win32Result<bool> GetCursorPos(
  1. Pointer<POINT> lpPoint
)

Retrieves the position of the mouse cursor, in screen coordinates.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getcursorpos.

Implementation

Win32Result<bool> GetCursorPos(Pointer<POINT> lpPoint) {
  final result_ = GetCursorPos_Wrapper(lpPoint);
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}