次の方法で共有


BarcodeScannerErrorOccurred

スキャン エラーなどのエラーが発生したときに発生します。 このイベントのデータ バッファは、次のとおりです。

構文

// 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) + MessageLength + ScanDataLength + ScanDataLabelLength)
UINT32 DataType が指定されていません
UINT32 ScanDataLength
UINT32 ScanDataLabelLength
byte [] メッセージの MessageLength バイト
byte [] ラベル データの ScanDataLength バイト
byte [] スキャン データの ScanDataLabelLength バイト

解説

スキャン エラーが発生し、一部のスキャン データが取得された場合、イベント データには部分スキャン データが含まれます。

要件

ヘッダー : pointofservicedriverinterface.h