win32api.GetVersion

int = GetVersion()

Returns the current version of Windows, and information about the environment.

Return Value

The return value's low word is the major/minor version of Windows. The high word is 0 if the platform is Windows NT, or 1 if Win32s on Windows 3.1