BarcodeScannerDataReceived

이 이벤트는 검사 이벤트가 성공한 후에 발생합니다.

스캔된 데이터는 가변 길이이며 PosBarcodeScannerDataReceivedEventData 구조와 원시 검사 데이터의 ScanDataLength 바이트, 헤더 및 바닥글 정보가 제거되는 디코딩된 스캔 데이터의 ScanDataLabelLength 바이트로 구성되며 스캐너 데이터만 남습니다. 이 이벤트의 데이터 버퍼는 다음과 같습니다.

Syntax

typedef struct _PosBarcodeScannerDataReceivedEventData
{
    PosEventDataHeader Header;
    UINT32 DataType;
    UINT32 ScanDataLength;
    UINT32 ScanDataLabelLength;
} PosBarcodeScannerDataReceivedEventData;

다음 표에서는 이 이벤트에 대한 데이터 버퍼의 메모리 레이아웃을 보여줍니다.

메모리 값 Description
0x00000005 Header.EventType = PosEventType::BarcodeScannerDataReceived
0000020+데이터 길이 검사 + 레이블 데이터 길이 Header.DataLength = sizeof(PosBarcodeScannerDataReceivedEventData) + ScanDataLength + ScanDataLabelLength
Uint32 PosBarcodeScannerDataReceivedEventData.DataType
Uint32 PosBarcodeScannerDataReceivedEventData.ScanDataLength
Uint32 PosBarcodeScannerDataReceivedEventData.ScanDataLabelLength
byte [] ScanDataLength 원시 검사 데이터의 바이트
byte [] 디코딩된 스캔 데이터의 ScanDataLabelLength 바이트

요구 사항

헤더: pointofservicedriverinterface.h