User's Manual Part 1

6 Scanner SupportChapter
157700 Series Color Mobile Computer User’s Manual
IADC::SetAttribute
This function changes an attribute such as a grid specification.
Syntax
HRESULT IADC::SetAttribute ( ITC_ADC_ATTRIBUTE_ID eAttribID,
BYTE rgbData[], DWORD nBufferSize );
Parameters
eAttribID [in] Identifies the attribute to set. Only one attribute
can be set at a time. The attribute is:
S ITC_MULTICLIENT_ENABLE
Indicates whether this client can coexist with
other clients.
rgbData [in] Contains data for the attribute to be set.
Depending on the eAttribID, this will be mapped
to the appropriate structure as follows:
S ITC_MULTICLIENT_ENABLE
BOOL is the rgbData Data Structure.
S TRUE, Client can receive data with other
clients (default).
S FALSE, Data stream to this client is turned
off when there are other clients.
S ITC_DHATTR_READFILTER
ITC_READFILTER is the rgbData Data
Structure. The ITC_READFILE structure is
defined in IADCDEVICE.H as follows:
typedef struct
{
#define ITC_MAXFILTER_CHARS 240
WORD nFilterChars;
TCHAR szFilter[ITC_MAXFILTER_CHARS];
} ITC_READFILTER;
where:
S ITC_MAXFILTER_CHARS
Maximum number of characters in a filter
specification. Includes NULL termination.
S nFilterChars Number of characters in
pszDataMask.
S szFilter Data mask specification. See
Grid Data Filtering.”
nBufferSize [in] Number of bytes in rgbData.
ITC_DHATTR_READFILTER
Regular expression that performs data filtering and data editing. See Grid
Data Filtering on page 141 for more information.
Return Values
A standard status code that indicates success or failure.
Remarks
None.