ITCSCAN_GetPortDeviceType

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

Gets the device type of a specified device port.

Syntax

HRESULT ITCSCAN_GetPortDeviceType(
INT32 iHandle,
DWORD dwPortId,
LPTSTR szDeviceType)

Parameters

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

[in] dwPortId
Port ID.

[out] szDeviceType
Location to return the device type. The maximum number of characters in a DeviceType string is ITC_DEVICE_TYPE_MAXLEN.

Return Values

S_OK indicates success.

S_FALSE if there are no more dwPortId values.

Header and Library Files

Header File: ITCSCAN2.h

Library: ITCSCAN2.lib

More Information

Native Scanner Functions