uversioninfo

Get Uniface version information.

void uversioninfo (unsigned char*version, unsigned char*track,

unsigned char*patch, unsigned char*platform,unsigned char*date,

unsigned char*oprsys, int*pMajor, int*pMinor, int*pMicro);

Parameters

Output parameters:

  • version—full Uniface version number, for example 8.4.02

  • track—full Uniface version number, including the build identifier, for example 8.4.02.01

  • patch—patch identifier plus the build date in format MMDD, for example D203 0330

  • platform—platform code, for example nt4

  • date—build date, for example March 30, 2005

  • oprsys—operating system code as returned by $oprsys, for example 2

  • pMajor—pointer to the major release number, for example 8

  • pMinor—pointer to the minor release number, for example 4

  • pMicro—pointer to the micro release number, for example 2

All the string buffers must be allocated large enough to hold the expected information. If one is too small, a crash is likely to result.

Return Values

None. This function is of type void and does not return a value.

Use

Library yrtl

Description

uversioninfo returns (by reference) the various pieces of Uniface version information, which are available in the 4GL ProcScript functions $about and $oprsys.

unsigned char ver[20], trk[20], pat[20], pla[20], dat[20], opr[20];
int maj, min, mic;
uversioninfo(ver, trk, pat, pla, dat, opr, &maj, &min, &mic);