GetPointerCursorId function user32

Win32Result<bool> GetPointerCursorId(
  1. int pointerId,
  2. Pointer<Uint32> cursorId
)

Retrieves the cursor identifier associated with the specified pointer.

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

Implementation

Win32Result<bool> GetPointerCursorId(int pointerId, Pointer<Uint32> cursorId) {
  resolveGetLastError();
  final result_ = _GetPointerCursorId(pointerId, cursorId);
  return .new(value: result_ != FALSE, error: GetLastError());
}