I’m writing a C++ code to determine what OS it is running on. I use GetVersionEx() API to do that, and this code as a tutorial, but it doesn’t seems to handle Windows 8. Does anyone know how to fix it to run under Windows 8?
I’m writing a C++ code to determine what OS it is running on. I
Share
According to several comments in the MSDN forums and this article the version number for Windows 8 is 6.2
This is the sample code updated and tested in Windows 8 Developer Preview
This returns
Microsoft Windows 8 (build 8102), 64-biton my Windows 8 Test Machine