ITCSCAN_SetPortState

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

Sets the device state of a specified port.

Syntax

HRESULT ITCSCAN_SetPortState(
INT32 iHandle,
DWORD dwPortId,
ITC_ADCPORT_STATE ePortState)

Parameters

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

[in] dwPortId
Port ID.

[in] ePortState
State of the specified port. Valid values are:

Return Values

S_OK indicates success.

S_FALSE if there are no more dwPortId values.

ITCADC_OPERATION_TIMED_OUT if the computer does not support more than one port.

Header and Library Files

Header File: ITCSCAN2.h

Library: ITCSCAN2.lib

More Information

Native Scanner Functions