// pointofservicedriverinterface.h
typedef struct _PosBarcodeScannerErrorOccurredEventData {
PosEventDataHeader Header;
LONG IsRetriable;
DriverUnifiedPosErrorSeverity Severity;
UINT32 VendorErrorCode;
DriverUnifiedPosErrorReason Reason;
UINT32 ExtendedReason;
UINT32 MessageLength;
PosBarcodeScannerDataReceivedEventData PartialData;
} PosBarcodeScannerErrorOccurredEventData;
View the official Windows Driver Kit DDI referenceNo description available.
This structure contains the error data that is passed to the BarcodeScannerErrorOccurred event.
HeaderThe PosEventDataHeader structure that describes the amount of memory, in bytes, of the PosBarcodeScannerErrorOccurredEventData structure and trailing error message and scan data.
IsRetriableIndicates whether ReadFile can be called again to read this event
SeverityContains a value in the UnifiedPosErrorSeverity enumeration indicating the severity of the error.
VendorErrorCodeContains a vendor-specific error code.
ReasonContains a value in the UnifiedPosErrorReason enumeration indicating the reason for the error.
ExtendedReasonContains additional data about the reason for the error.
MessageLengthIndicates the length, in bytes, of the error message.
PartialDataIf a scanning error occurs, and some scan data was obtained, the partial scan data will be available in this parameter.
The error data should fill the buffer as shown in the following table (in order).
| Data | Length in bytes |
|---|---|
| PosBarcodeScannerErrorOccurredEventData structure | sizeof(PosBarcodeScannerErrorOccurredEventData) |
| Error message text | MessageLength |
| Partial scan data | PartialData.ScanDataLength |
| Label data | PartialData.ScanDataLabelLength |