Operating System Version
The GetVersionEx function retrieves the major and minor version numbers and other information about the currently running version of the operating system. The VerifyVersionInfo function enables you to determine whether the current system satisfies a specified set of operating system version conditions. For more information, see the following topics:
The following table summarizes the most recent operating system version numbers.
|Operating system||Version number|
|Windows Server 2012||6.2|
|Windows Server 2008 R2||6.1|
|Windows Server 2008||6.0|
|Windows Server 2003 R2||5.2|
|Windows Server 2003||5.2|
|Windows XP 64-Bit Edition||5.2|
Identifying the current operating system is usually not the best way to determine whether a particular operating system feature is present. This is because the operating system may have had new features added in a redistributable DLL. Rather than using GetVersionEx to determine the operating system platform or version number, test for the presence of the feature itself.