Denso BHT-700-CE Reference Manual page 92

Barcode handy terminal
Table of Contents

Advertisement

BHT_ GetBarInfo
Description
BHT-700B
Read the information on the code read most recently, including the code type and the number of digits in
the code.
If no barcode has been read after the BHT was turned on, the function gets "0" for both the code type
and the number of digits.
BHT-700Q
Read the information on the code read most recently, including the code type and the number of digits in
the code.
If no barcode has been read after the BHT was turned on, the function gets "0" for both the code type
and the number of digits.
When a multi-line code has been read, the information on all the rows is obtained in an array format. Also,
the number of rows in the code is obtained.
When an RSS·EAN Composite code has been read, the information on all the codes constituting the
composite code is obtained in an array format. Also, the number of codes in the composite code is
obtained.
Syntax
DWORD BHT_GetBarInfo (
ST_CODE_INFO*
DWORD*
pdwCodeNum
Parameters
pstInfo
[out] Destination address into which the code information is to be stored
pdwCodeNum
[in] No. of codes to be obtained
[out] Destination address into which the number of codes is to be stored. This is set to "1" when a code
other than a multiple-row code or an EAN·UCC composite code has been read.
Shown below is the format of the structure containing code information. For the relationship between
dwType and code type, refer to BHT_GetBarType.
struct ST_CODE_INFO {
DWORD dwType; // code type
DWORD dwLen; // no. of digits
) ;
Return value
Error code
ERROR_SUCCESS
ERROR_INVALID_PARAMETER Storage address not specified.
If you specify NULL in pstCodeInfo, the number of elements of ST_CODE_INFO necessary to store the
read code will be stored into pdwCodeNum.
An error occurs if a value greater than MAX_NUM_CODE_1D_SCANNER (when using the BHT-700B) or
MAX_NUM_CODE_2D_SCANNER (when using the BHT-700Q) is specified for pdwCodeNum.
pstInfo
,
)
Successful completion
Meaning
87

Advertisement

Table of Contents
loading

Table of Contents