ITCSCAN_GetPortName

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

Gets the friendly name of a specified device port.

Syntax

HRESULT ITCSCAN_GetPortName(
INT32 iHandle,
DWORD dwPortId,
LPTSTR szPortName)

Parameters

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

[in] dwPortId
Port ID.

[out] szPortName
Location to return the port name. The szPortName buffer should be large enough to hold ITC_DEVICE_TYPE_MAXLEN characters.

Return Values

S_OK indicates success.

Header and Library Files

Header File: ITCSCAN2.h

Library: ITCSCAN2.lib

More Information

Native Scanner Functions