BHT_BAR_SetDecodeOptions
Description
Sets the editing function setting value for the decoded result.
This is supported only by the BHT-700B.
Syntax
DWORD BHT_BAR_SetDecodeOptions (
EN_DCD_OPTIONS_CODE_TYPE enCodeType,
LPVOID pOptions,
DWORD dwLen)
Parameters
enCodeType
[in] Code type to be edited
pOptions
[out] Editing function setting value. The addresses for the structure are listed below.
Code type EnCodeType pOptions
UPC-E EnOptionsUPCE ST_DCD_UPCE_OPTIONS
UPC-A EnOptionsUPCA ST_DCD_UPCA_OPTIONS
EAN-8 enOptionsEAN8 ST_DCD_EAN8_OPTIONS
dwLen
[in] pOptions size (bytes). Sets the value calculated at Sizeof.
Return value
Error code Meaning
ERROR_SUCCESS Successful completion
ERROR_INVALID_PARAMETER
The storage address has not been set.
Invalid size specified.
Construction
The member construction for EN_DCD_OPTIONS_CODE_TYPE used to specify the code type is as
follows.
typedef enum _EN_DCD_OPTIONS_CODE_TYPE {
enOptionsUPCE,
enOptionsUPCA,
enOptionsEAN8,
} EN_DCD_OPTIONS_CODE_TYPE;
The member construction for ST_DCD_UPCE_OPTIONS, ST_DCD_UPCA_OPTIONS, and
ST_DCD_EAN8_OPTIONS is shown below.
typedef struct _ST_DCD_UPCE_OPTIONS {
BOOL bConvertToUPCA;
BOOL bReportNumsys;
BOOL bReportChk;
} ST_DCD_UPCE_OPTIONS, *PST_DCD_UPCE_OPTIONS;
97
Commentaires sur ces manuels