Socket ScanAPI Reference
9.2 Close Function
This function closes ether a ScanAPI object or a Device object.
9.2.1 Syntax
C/C++:
SKTRESULT SktScanClose(
SKTHANDLE hDevice
);
hDevice
[in] Handle to the scanner device or ScanAPI to close.
Java or C#:
long ISktScanDevice.Close(); or
long ISktScanApi.Close();
Objective C:
-(SKTRESULT) close;
From the protocol ISktScanApi or ISktScanDevice.
9.2.2 Return Value
If the function succeeds it returns ESKT_NOERROR.
9.2.3 Remarks
Any pending operation attached to this device will be aborted.
Once the object is closed, any subsequent operation using this handle will return an
error of invalid handle.
9.2.4 Example
See Sample handling asynchronous events of ScanAPI
9.2.5 Function Information
C/C++
Header
Import library
Minimum operating systems
C#
© 2013 Socket Mobile, Inc.
SktScanAPI.h, include SktScanErrors.h,
SktScanTypes.h
ScanAPI.lib
Windows XP, Windows Mobile 5.0
46/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?