User's Manual Part 1
Scanner SupportChapter —6
156 700 Series Color Mobile Computer User’s Manual
IADC::Read
This function requests user input data from the reader engine. This is a
blocking function that returns either when there is data or after a timeout.
Syntax
HRESULT IADC::Read ( BYTE rgbDataBuffer[], DWORD
dwDataBufferSize, DWORD pnBytesReturned, SYSTEMTIME
pSystemTime, DWORD dwTimeout );
Parameters
rgbDataBuffer [in] Pointer to the buffer that receives the data
from the device.
dwDataBufferSize [in] Maximum number of bytes that can be
stored in rgbDataBuffer.
pnBytesReturned [out] Pointer to the DWORD location to store
the number of bytes returned in
rgbDataBuffer.
pSystemTime [out] Pointer to a SYSTEMTIME structure that
will hold the time stamp of the received
data. This can be NULL if a timestamp is
not needed.
dwTimeout [in] Number of milliseconds caller waits for
data. This parameter is ignored if the
Read Ahead flag is not set.
S 0
If data is not available, returns quickly.
S INFINITE
Waits until data is available.
Return Values
HRESULT that indicates success or failure.
Remarks
None.
See Also
S IADC::CancelReadRequest
S IADC::Initialize
S IADC::QueryAttribute
S IADC::QueryData
S IADC::SetAttribute