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
OK, I was hoping someone has done this already ... but, I guess not, so here you go:
Windows 8 Consumer Preview
//OSVERSIONINFO for GetVersionEx returns:
dwMajorVersion = 6;
dwMinorVersion = 2;
wProductType = 1;
//GetProductInfo returns:
dwType = 0x4A; //Not documented yet???
PS. I don't have VS IDE installed there. Had to make a small app to get those...