GetPointerPenInfo function user32

Win32Result<bool> GetPointerPenInfo(
  1. int pointerId,
  2. Pointer<POINTER_PEN_INFO> penInfo
)

Gets the pen-based information for the specified pointer (of type PT_PEN) associated with the current message.

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

Implementation

Win32Result<bool> GetPointerPenInfo(
  int pointerId,
  Pointer<POINTER_PEN_INFO> penInfo,
) {
  final result_ = GetPointerPenInfo_Wrapper(pointerId, penInfo);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}