GetPointerType function user32

Win32Result<bool> GetPointerType(
  1. int pointerId,
  2. Pointer<Int32> pointerType
)

Retrieves the pointer type for a specified pointer.

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

Implementation

Win32Result<bool> GetPointerType(int pointerId, Pointer<Int32> pointerType) {
  final result_ = GetPointerType_Wrapper(pointerId, pointerType);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}