Socket ScanAPI Reference
9.3 Set Function
The Set function sets a property of an object identified by its reference. This function
returns immediately before the property set is actually done. The final status should
be checked using the Wait function.
9.3.1 Syntax
C/C++:
SKTRESULT SktScanSet(
SKTHANDLE hDevice,
TSktScanObject * pSktObj
);
hDevice
[in] handle of the device.
pSktObj
[in] pointer to an allocated TSktScanObject that contains the property and its
value to set.
Java or C#:
long ISktScanDevice.SetProperty(
ISktScanObject scanObj
);
Or
Long ISktScanApi.SetProperty(
ISktScanObject scanObj
);
scanObj
[in] reference to a ScanObject that contains the property and its value to set.
The ScanObject should be created using the
SktClassFactory.createScanObject().
Objective C:
-(SKTRESULT) setProperty: (id<ISktScanObject>) scanObj;
From the ISktScanApi or ISktScanDevice protocol.
scanObj
[in] reference to a ScanObject that contains the property and its value to set.
The ScanObject should be created using the [SktClassFactory
createScanObject] message. Once this object is no longer useful it should be
freed by using the message releaseScanObject of the same class,
[SktClassFactory releaseScanObject:scanObject];
© 2013 Socket Mobile, Inc.
48/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?