Specifications
BHT_ReadBarEx
Description
Read out data from the barcode buffer and encodes it into the specified data format.
If the length of the read data is shorter than the specified maximum data length (dwBarLen), the excess
part will be filled with 0s.
If barcode reading is disabled, an error (ERROR_INVALID_HANDLE) will be caused.
Syntax:
DWORD BHT_ReadBarEx (
DWORD dwDataType,
LPVOID lpBuffer,
DWORD dwBarLen,
DWORD* pdwActualBarLen )
Parameters
dwDataType
[in] Encoding format
READ_CODE_BINARY : binary data (no encoding)
READ_CODE_UNICODE : unicode data
lpBuffer
[in] Starting address of the read data in the storage buffer
dwBarLen
[in] Maximum read data length (maximum length of data to be read out)
pdwActualBarLen
[out] Length of data read
Return value
Error code Meaning
ERROR_SUCCESS Successful completion
ERROR_INVALID_HANDLE Barcode device file not opened.
ERROR_INVALID_PARAMETER
The specified encoding is wrong.
No storage address specified.
85










