GEOS SDK TechDocs
|
|
Versions
|
2 User's Name
The INI file contains the version number. The [ui] category's productName field will be one of the following strings:
There is also a software serial number, in the swSerialNumber field. This field has the format: 000000/00/AAABBCCDDLLLFKK/0
Use one of the the
IniFileReadString...()
routines to find out the value of these INI file fields.
Code Display 13-1 Getting the Software Version Number
@start StringRes; @chunk TCHAR UICategory[] = "ui"; @chunk TCHAR SWSerialNumber[] = "swSerialNumber"; @end StringRes;
...
@method TestProcessClass, MSG_TEST_PROCESS_GET_VERSION
{
TCHAR version[28] = "";
TCHAR *category;
TCHAR *key;
word value;
MemLock( OptrToHandle( @UICategory ) );
category = (TCHAR *) LMemDeref( @UICategory );
key = (TCHAR *) LMemDeref( @SWSerialNumber );
/*
* Extract the information you want from version string.
*/
MemUnlock( OptrToHandle( @UICategory ) ); }
GEOS SDK TechDocs
|
|
Versions
|
2 User's Name