IWinApplication.GetOperatingSystemVersion

Syntax

GetOperatingSystemVersion: IOperatingSystemVersion;

Description

The GetOperatingSystemVersion method returns information on the operating system version installed on the computer.

Example

Sub UserProc;
Var
    WinApp: IWinApplication;
    OSVer: IOperatingSystemVersion;
Begin
    WinApp := WinApplication.Instance;
    OSVer := WinApp.GetOperatingSystemVersion;
    Debug.WriteLine("Major OS version: " + OSVer.MajorVersion.ToString);
    Debug.WriteLine("Minor OS version: " + OSVer.MinorVersion.ToString);
    Debug.WriteLine("Update name: " + OSVer.CSDVersion);
    Debug.WriteLine("Full name of OS: " + OSVer.FullName);
    Debug.WriteLine("OS name: " + OSVer.Name);
    Debug.WriteLine("OS platform identifier: " + OSVer.PlatformId.ToString);
End Sub UserProc;

On executing the example the console window displays information on the operating system version.

See also:

IWinApplication