BarcodeScannerErrorOccurred
發生錯誤時,就會發生此事件,例如掃描錯誤。 此事件的資料緩衝區如下所示。
Syntax
// Error occurred data should fill the ReadFile buffer in this order:
// PosBarcodeScannerErrorOccurredEventData structure (length = sizeof(PosBarcodeScannerErrorOccurredEventData))
// Error Message (length = MessageLength)
// Scan Data (length = ScanDataLength)
// Scan Data Label (length = ScanDataLabelLength)
typedef struct _PosBarcodeScannerErrorOccurredEventData
{
PosEventDataHeader Header;
LONG IsRetriable;
UnifiedPosErrorSeverity Severity;
UINT32 VendorErrorCode;
UnifiedPosErrorReason Reason;
UINT32 ExtendedReason;
UINT32 MessageLength;
PosBarcodeScannerDataReceivedEventData PartialData;
} PosBarcodeScannerErrorOccurredEventData;
下表顯示此事件之資料緩衝區的記憶體配置。
記憶體值 | 描述 |
---|---|
0x00000006 | EventType = PosEventType:: BarcodeScannerTriggerPressed |
UINT32 | DataLength = sizeof (PosBarcodeScannerErrorOccurredData) + MessageLength ScanDataLength + + ScanDataLabelLength) |
BOOL | IsRetriable |
32 位 UnifiedPosErrorSeverity | 嚴重性 |
UINT32 | VendorErrorCode |
32 位 UnifiedPosErrorReason | 原因 |
UINT32 | ExtendedReason |
UINT32 | MessageLength |
PosBarcodeScannerDataReceivedEventData | PartialData |
UINT32 | 未指定 EventType |
UINT32 | DataLength = sizeof (PosBarcodeScannerDataRecievedEventData) + MessageLengthScanDataLength + ScanDataLabelLength + ) |
UINT32 | 未指定DataType |
UINT32 | ScanDataLength |
UINT32 | ScanDataLabelLength |
位元組 [] | MessageLength 位元組的訊息 |
位元組 [] | ScanDataLength 位元組的標籤資料 |
位元組 [] | ScanDataLabelLength 位元組掃描資料 |
備註
如果掃描錯誤發生,而且已取得某些掃描資料,則事件資料會包含部分掃描資料。
規格需求
標頭: pointofservicedriverinterface.h