ssCore.SysInfo.getOSVersionInfo

Return OS version information in several useful formats.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

None.


Output Parameters:

shortInfo - Returns a short string representing the OS version. Possible return values are '32s','NT3','NT3.1','NT3.5','NT3.51','NT4','NT5','95','98','2000','XP', '2003 Server', '2008 Server', 'Vista', 'Win7' and 'Unknown'.

longInfo - The format of the verison information is 'Name Version Build ServicePack' e.g. 'Windows 2000 Version 5.0 Build 2195 Service Pack 3'

version - The OS version in major.minor.build format, e.g. 5.0.2195 (for Windows 2000 build 2195).

platform - The platform id. Possible values are '1' for WIN32_WINDOWS (Win95, 98 or ME) and '2' for WIN32_NT (Windows NT 3.51, NT 4.0, 2000, XP or 2003/.NET Server, 2008 Server, Vista, Windows 7).

is64Bit - A boolean value that indicates whether you are running under 64-bit windows or not. Possible return values are 'true' and 'false'.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.SysInfo.getOSVersionInfo( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.SysInfo.getOSVersionInfo( paramsObject );


Notes:

None.


Examples:

var return_obj = ssCore.SysInfo.getOSVersionInfo();

ssDebug.trace(return_obj.shortInfo);
ssDebug.trace(return_obj.longInfo);
ssDebug.trace(return_obj.version);
ssDebug.trace(return_obj.platform);
ssDebug.trace(return_obj.is64Bit);