Specifications

BHT_ReadBar
Description
Read out data read from the barcode buffer.
If the string length longer than that of the read barcode is specified to dwBarLen, the remaining area
following the read barcode will be filled with NULL codes.
If barcode reading is not enabled, an error (ERROR_INVALID_HANDLE) will result.
Syntax:
DWORD BHT_ReadBar (
TCHAR* pwchBuffer ,
DWORD dwBarLen ,
DWORD* pdwActualBarLen )
Parameters
pwchBuffer
[out] Heading address of the storage buffer storing the read data
dwBarLen
[in] Maximum length of data to be read
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 No storage address specified.
84