// pointofservicecommontypes.h
typedef struct _BarcodeSymbologyAttributesData {
BarcodeSymbology Symbology;
UINT32 IsCheckDigitValidationSupported;
UINT32 IsCheckDigitValidationEnabled;
UINT32 IsCheckDigitTransmissionSupported;
UINT32 IsCheckDigitTransmissionEnabled;
UINT32 IsDecodeLengthSupported;
BarcodeSymbologyDecodeLengthType DecodeLengthType;
UINT32 DecodeLength1;
UINT32 DecodeLength2;
} BarcodeSymbologyAttributesData;
View the official Windows Driver Kit DDI referenceNo description available.
The BarcodeSymbologyAttributesData structure contains the attribute information for a barcode symbology.
SymbologyThe barcode symbology to set or get attributes to or from.
For more information, see the BarcodeSymbology enumeration topic.
IsCheckDigitValidationSupportedIndicates whether the barcode scanner supports check digit of the symbology. Non-zero if supported.
IsCheckDigitValidationEnabledIndicates whether the target barcodes are expected to contain a check digit.
Some barcodes may have the last digit as a validation digit to ensure decoding accuracy. Barcode scanners may choose to support the feature or not. Non-zero if enabled.
IsCheckDigitTransmissionSupportedIndicates whether the barcode scanner supports check digit transmission. Non-zero if supported.
IsCheckDigitTransmissionEnabledIndicates whether the check digit is transmitted along with the decoded data. Non-zero if enabled.
IsDecodeLengthSupportedIndicates whether the barcode scanner supports setting decode length for the symbology.
For example, the API can be used to set to read barcodes of decode length between 2 and 8. This helps with filtering the target barcodes. Non-zero if supported.
DecodeLengthTypeThe decode length type, which can be set to support a range, two discrete values, or be set to any length. For more information, see the BarcodeSymbologyDecodeLengthType.
DecodeLength1The first value in a range, or the first discrete value.
DecodeLength2The last value in a range, or a second discrete value.