Call the Win32 function GetVersionEx.
However, the docs for that advise, "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. For more information, see Operating System Version."
—JohnIn reply to Re: Windows Version Detection
by John M. Dlugosz
in thread Windows Version Detection
by jlongino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |