Create And Delete Adc Com Object Functions; Itcdeviceopen - Intermec 700 Series 700 User Manual

Monochrome mobile computer
Hide thumbs Also See for 700 Series 700:
Table of Contents

Advertisement

Chapter
6
Scanner Support

Create and Delete ADC COM Object Functions

154
Use these functions to create and release ADC COM interfaces.
ITCDEVMGMT.H is the header file and ITCDEVMGMT.LIB is the
library.

ITCDeviceOpen

This function opens and initializes a communication channel to the de-
vice. In C++, this function returns a pointer to an interface on which the
methods are called. In C, this function returns a handle, which is the first
parameter in each of the interface function calls.
Syntax
HRESULT ITCDeviceOpen( LPCTSTR pszDeviceName, REFIID iid,
ITC_DEVICE_FLAGS eDeviceFlags, void** ppvObject );
Parameters
pszDevice
[in]
iid
[in]
eDeviceFlags
[in]
ppvObject
[out]
Return Values
HRESULT that indicates success or failure.
Remarks
None.
See Also
S ITCDeviceClose
700 Series Monochrome Mobile Computer User's Manual
Pointer to a string that contains the device name
on which to initialize the logical connection.
The device name (Merlin 1) identifies a
communications port.
Use "default" for all internal scanners, such as
Imager, SE900, etc. Use "ExtScanner" for
tethered scanners.
The identifier of the interface being requested.
Enumeration that identifies the read
characteristics as follows:
S ITC_DHDEVFLAG_READAHEAD
Data is buffered on behalf of the calling
applications. Data Buffering starts after the
first call to IADC::Read ().
S ITC_DHDEVFLAG_NODATA
The client application is managing the device
to set its configuration or control its interface
but not to collect data from the device.
A pointer to the interface pointer identified by
iid. If the object does not support this interface,
ppvObject is set to NULL.

Advertisement

Table of Contents
loading

Table of Contents