Subject: | Windows 2008 Server version detection by GetOSVersion() |
GetOSVersion() returns "Win7" when running on Windows 2008 R2.
According to http://msdn.microsoft.com/en-us/library/ms724833(VS.85).aspx
they both return dwMajorVersion 6 and dwMinorVersion 1, the only
difference is that for Win7 OSVERSIONINFOEX.wProductType =
VER_NT_WORKSTATION and for Win2008SP1 OSVERSIONINFOEX.wProductType !=
VER_NT_WORKSTATION
I understand that adding this kind of 'smartness' into GetOSVersion is
not desired, but I don't really see an alternative. Otherwise, I guess
this should at least be added to the docs.