Versions: 1 Software Version Number

Up: GEOS SDK TechDocs | Up | Prev: Versions | Next: 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

AAA : hardware version
1st digit: hardware major protocol (2)
2nd digit: hardware minor protocol (a)
3rd digit: hardware variant number (0)
This is not the actual hardware version, but rather
which version the software was compiled for. All
released images are for 2.10.0 ("2a0" hex).
BB :
build major number (03,04)
CC :
build minor number (08,03)
DD : build variant number (08,07)
Same as for productName, but padded with extra zeros.
LLL :
localization country code (044 = English, 033 = French, 049 = German)
F :
0=all current releases 1=certain future releases
KK :
keyboard mapping version (01 = English, 02 = French, 03 = German, 04 = Scandinavian)

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 ) );
}

Up: GEOS SDK TechDocs | Up | Prev: Versions | Next: 2 User's Name