wtsVersion

Returns the Windows Terminal Server Extender version number.

Syntax:

wtsVersion([request])

Parameters:

(i) request [optional]: This is a number that identifies what extender version information is to be returned. The following values are valid
0 = extender major version number
1 = extender version array
2 = extender full version string
3 = extender version binary buffer

This parameter is optional. If it is omitted then a requestvalue of zero is used.

Returns:

(i/a/s) extender major version number as an array, binary buffer or full version string

 

If Request #0 is used, then the return value is an integer representing the major version number of the extender.

If Request #1 is used, then the return value is an array with a single dimension containing 4 elements as follows:

Element #0 = major version

Element #1 = minor version

Element #2 = release

Element #3 = build

If Request #2 is used, then the return value is a string containing the version number information in dotted notation as follows:

"major-version.minor-version.release.build"

If Request #3 is used, then the return value is a binary buffer handle. The buffer will be 16 bytes long, consisting of 4 long word values representing the major version, minor version, release and build values at offsets 0, 4, 8 and 12, respectively.

Example:
;Load 32-bit or 64-bit extender
AddExtender( "WWWTS44I.DLL" , 0, "WWWTS64I.DLL" )

Title01 = 'Test wtsVersion()' MajorVerNum = wtsVersion(0) FullVerStr = wtsVersion(2) TempMsg = StrCat('Major version number = ',MajorVerNum,@CRLF) TempMsg = StrCat(TempMsg,@CRLF,'Full version string = ',FullVerStr) Message(Title01,TempMsg) Exit