Socket ScanAPI Reference
message by using Release API and close ScanAPI by using the Close API with the
ScanAPI object reference.
This property can only be set. A get operation on this property will return an error.
Parameter type
Get
Not applicable
Version
ScanAPI Interface Version
13.2 Property kSktScanPropIdVersion
This property is used to retrieve the version of ScanAPI. This property can only be
used with the Get function.
The value returned in a Get Complete Response is a Version structure. The
ScanObject Property has its type set to kSktScanPropTypeVersion indicating that its
SktScanVersion structure is valid and contains the retrieved information. If the
result code is successful, the version can be read from that structure.
The Version structure has 9 fields; Major, Middle, Minor, Build, Month, Day, Year,
Hour and Minute.
Each field of the Version structure is a 2-byte quantity. The Build is a 4-byte
quantity.
All the fields are normally displayed in Hexadecimal format; however the Build
number is usually displayed in a decimal format.
Parameter type
Get
None
Example:
C/C++:
if(pScanObject->Property.Type==kSktScanPropTypeVersion)
{
© 2013 Socket Mobile, Inc.
Get Complete
Not applicable
Get Complete
Version
printf("version: %x.%x.%x %d\nDate: %x/%02x/%02x
pScanObject->Property.Version.wMajor,
pScanObject->Property.Version.wMiddle,
pScanObject->Property.Version.wMinor,
pScanObject->Property.Version.dwBuild,
pScanObject->Property.Version.wYear,
pScanObject->Property.Version.wMonth,
pScanObject->Property.Version.wDay,
pScanObject->Property.Version.wHour,
pScanObject->Property.Version.wMinute);
Set
None
1.0.0 or higher
Set
Not applicable
Set Complete
None
Set Complete
Not applicable
%02x:%02x\n",
71/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?