ITCSCAN_GetBarcodeMessage

Call ITCSCAN Open before any other Native Scanner function, and call ITCSCAN Close when exiting the application.

This function blocks until a bar code is read, a bar code error returns, the port state changes, or ITCSCAN_Close is called.

Applications should call this function on a separate thread concurrent with calls to other methods.

Syntax

HRESULT ITCSCAN_GetBarcodeMessage (
INT32 iHandle,
ITCSCAN_MESSAGE_TYPE *peMsgType,
INT32 *piMsgData)

Parameters

[in] iHandle
Pointer to a bar code reader object.

[out] * peMsgType
Returns ITCSCAN_MESSAGE_TYPE value.

[out] piMsgData
Value that depends on the peMsgType:

Return Values

A standard error code indicating success or failure.

Header and Library Files

Header File: ITCSCAN2.h

Library: ITCSCAN2.lib

More Information

Native Scanner Functions