PosBarcodeScannerErrorOccurredEventData 结构 (pointofservicedriverinterface.h)
此结构包含传递给 BarcodeScannerErrorOccurred 事件的错误数据。
语法
typedef struct _PosBarcodeScannerErrorOccurredEventData {
PosEventDataHeader Header;
LONG IsRetriable;
DriverUnifiedPosErrorSeverity Severity;
UINT32 VendorErrorCode;
DriverUnifiedPosErrorReason Reason;
UINT32 ExtendedReason;
UINT32 MessageLength;
PosBarcodeScannerDataReceivedEventData PartialData;
} PosBarcodeScannerErrorOccurredEventData;
成员
Header
PosEventDataHeader 结构,用于描述 PosBarcodeScannerErrorOccurredEventData 结构和尾随错误消息和扫描数据的内存量(以字节为单位)。
IsRetriable
指示是否可以再次调用 ReadFile 来读取此事件
Severity
在 UnifiedPosErrorSeverity 枚举中包含一个值,该值指示错误的严重性。
VendorErrorCode
包含特定于供应商的错误代码。
Reason
在 UnifiedPosErrorReason 枚举中包含一个值,指示错误的原因。
ExtendedReason
包含有关错误原因的其他数据。
MessageLength
指示错误消息的长度(以字节为单位)。
PartialData
如果出现扫描错误并获取了某些扫描数据,则部分扫描数据将在此参数中可用。
言论
错误数据应填充缓冲区,如下表所示(顺序)。
数据 | 长度(以字节为单位) |
---|---|
PosBarcodeScannerErrorOccurredEventData 结构 | sizeof(PosBarcodeScannerErrorOccurredEventData) |
错误消息文本 | MessageLength |
部分扫描数据 | PartialData.ScanDataLength |
标记数据 | PartialData.ScanDataLabelLength |
要求
要求 | 价值 |
---|---|
标头 | pointofservicedriverinterface.h (include PointOfServiceDriverInterface.h) |