共用方式為


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)