共用方式為


PosBarcodeScannerErrorOccurredEventData 結構(pointofservicedriverinterface.h)

此結構包含傳遞至 BarcodeScannerErrorOccurred 事件的錯誤數據。

語法

typedef struct _PosBarcodeScannerErrorOccurredEventData {
  PosEventDataHeader                     Header;
  LONG                                   IsRetriable;
  DriverUnifiedPosErrorSeverity          Severity;
  UINT32                                 VendorErrorCode;
  DriverUnifiedPosErrorReason            Reason;
  UINT32                                 ExtendedReason;
  UINT32                                 MessageLength;
  PosBarcodeScannerDataReceivedEventData PartialData;
} PosBarcodeScannerErrorOccurredEventData;

成員

Header

PosEventDataHeader 結構,描述 PosBarcodeScannerErrorOccurredEventData 結構和尾端錯誤訊息和掃描數據的記憶體數量。

IsRetriable

指出是否可以再次呼叫 ReadFile 來讀取此事件

Severity

UnifiedPosErrorSeverity 列舉中包含值,指出錯誤的嚴重性。

VendorErrorCode

包含廠商特定的錯誤碼。

Reason

UnifiedPosErrorReason 列舉中包含值,指出錯誤的原因。

ExtendedReason

包含有關錯誤原因的其他數據。

MessageLength

指出錯誤訊息的長度,以位元組為單位。

PartialData

如果掃描錯誤發生,而且已取得某些掃描數據,則會在此參數中取得部分掃描數據。

言論

錯誤數據應該填滿緩衝區,如下表所示(依序)。

數據 以位元組為單位的長度
PosBarcodeScannerErrorOccurredEventData 結構 sizeof(PosBarcodeScannerErrorOccurredEventData
錯誤訊息文字 MessageLength
部分掃描數據 PartialData.ScanDataLength
標籤數據 PartialData.ScanDataLabelLength

要求

要求 價值
標頭 pointofservicedriverinterface.h (include PointOfServiceDriverInterface.h)