PosBarcodeScannerDataReceivedEventData 結構 (pointofservicedriverinterface.h)
此結構包含傳遞至 BarcodeScannerDataReceived 事件的掃描數據。
語法
typedef struct _PosBarcodeScannerDataReceivedEventData {
PosEventDataHeader Header;
UINT32 DataType;
UINT32 ScanDataLength;
UINT32 ScanDataLabelLength;
} PosBarcodeScannerDataReceivedEventData;
成員
Header
PosEventDataHeader 此事件的標頭資訊。
DataType
指出哪些 BarcodeSymbology 與掃描數據相關聯。
ScanDataLength
指出原始掃描數據的位元組數目。
ScanDataLabelLength
指出已譯碼掃描數據的位元組數目。 標籤是已譯碼的掃描數據,其中已移除頁首和頁尾資訊,只留下原始掃描器數據。
言論
ScanDataLength 個字節的掃描數據緊接在 PosBarcodeScannerDataReceivedEventData 結構之後,後面接著 ScanDataLabelLength 位元組的捲標數據。
要求
要求 | 價值 |
---|---|
標頭 | pointofservicedriverinterface.h (include PointOfServiceDriverInterface.h) |