Ibarcodereadercontrol::read - Intermec 700 Series User Manual

Color mobile computer
Hide thumbs Also See for 700 Series:
Table of Contents

Advertisement

Scanner Support

IBarCodeReaderControl::Read

This function reads data from the bar code input device. This method performs
the same function as IADC::Read () except that it provides additional informa-
tion about data received such as bar code symbology used, data type, and time
stamp of received data.
Syntax:
Parameters:
Return Values:
6-22
700 Series Color Mobile Computer User's Manual
HRESULT IBarCodeReaderControl::Read ( BYTE rgbDataBuffer[],
DWORD dwDataBufferSize, DWORD pnBytesReturned,
ITC_BARCODE_DATA_DETAILS pBarCodeDataDetails,
DWORD dwTimeout );
rgbDataBuffer
dwDataBufferSize
pnBytesReturned
pBarCodeDataDetails [in]
typedef struct tagITCBarCodeDetails
{
WORD wStructSize,
ITC_BARCODE_SYMBOLOGY_ID eSymbology,
ITC_BARCODE_DATATYPE eDataType,
SYSTEMTIME stTimeStamp,
}ITC_BARCODE_DATA_DETAILS;
typedef enum tagBarCodeDataType
{
BARCODE_DATA_TYPE_UNKNOWN = 1,
BARCODE_DATA_TYPE_ASCII,
BARCODE_DATA_TYPE_UNICODE,
}ITC_BARCODE_DATATYPE;
where:
wStructSize
Size of structure. Used for versioning structure.
eSymbology
Symbology of the returned data.
eDataType
Identifies data types as ASCII, UNICODE, etc.
stTimeStamp
Timestamp of the received data.
BARCODE_DATA_TYPE_UNKNOWN
BARCODE_DATA_TYPE_ASCII
BARCODE_DATA_TYPE_UNICODE
dwTimeout
HRESULT that indicates success or failure.
[in]
Pointer to the buffer that receives data
from the device.
[in]
Maximum number of bytes that can be
stored in rgbDataBuffer.
[out]
Pointer to the DWORD location that will
store the bytes returned in rgbDataBuffer.
Address of data structure in which to put
the data details. This field may be NULL.
The ITC_BARCODE_DATA_DETAILS is:
[in]
Number of milliseconds caller waits for
data. If you set a timeout, the call will be
blocked until data is received.
0
If data not available, returns quickly.
INFINITE
Waits until data is available.
SECTION 6
Data in unknown.
Data is ASCII.
Data is UNICODE.

Advertisement

Table of Contents
loading

Table of Contents