GetPointerPenInfo function user32
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,
) {
resolveGetLastError();
final result_ = _GetPointerPenInfo(pointerId, penInfo);
return .new(value: result_ != FALSE, error: GetLastError());
}