Socket ScanAPI Reference
Release Function.
9.6 Release Function
The Release function releases the ScanObject the Wait function has allocated. This
function must be called each time the Wait function returns success. Only a ScanAPI
object can be used as referenced when calling this Release function.
9.6.1 Syntax
C/C++:
SKTRESULT SktScanRelease(
SKTHANDLE hScanAPI,
TSktScanObject* pSktObj
);
hScanAPI
[in] handle to ScanAPI object. This handle cannot be a handle of a scanner
device. If this handle is not a ScanAPI object, this function will return an
invalid handle error.
pSktObj
[in] pointer to a TSktScanObject to release when it is no longer needed.
Java or C#:
long ISktScanApi.ReleaseScanObject(
ISktScanObject scanObj
);
scanObj
[in] reference to a ScanObject to release when it is no longer needed.
Objective C:
-(SKTRESULT) releaseScanObject: (id<ISktScanObject>) scanObj;
Only from the ISktScanApi protocol.
scanObj
[in] reference to a ScanObject that was received in WaitForScanObject API.
© 2013 Socket Mobile, Inc.
60/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?