Denso BHT-700-CE Reference Manual page 90

Barcode handy terminal
Table of Contents

Advertisement

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
ERROR_SUCCESS
ERROR_INVALID_HANDLE
ERROR_INVALID_PARAMETER
)
Meaning
Successful completion
Barcode device file not opened.
The specified encoding is wrong.
No storage address specified.
85

Advertisement

Table of Contents
loading

Table of Contents