ITCSCAN_Open

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

Creates a logical code reader object and initializes a communication channel between this logical object and a bar code reader engine. This communication channel is required to collect data or configure the device. Call ITCSCAN Close when finished.

Syntax

HRESULT ITCSCAN_Open(
INT32 *pHandle,
LPCTSTR pszDeviceName,
DWORD dwDataBufferSize)

Parameters

[Out] pHandle
Pointer to the newly created bar code reader object.

[in] pszDeviceName
Pointer to a Unicode string that contains the device name on which to initialize the logical connection. The device identifies a communication port. Always set to "External".

[in] dwDatabufferSize
Size of buffer that stores the barcode data. The application should allocate at least 130 bytes.

Return Values

A standard error status code indicating success or failure.

Header and Library Files

Header File: ITCSCAN2.h

Library: ITCSCAN2.lib

More Information

Native Scanner Functions