10 setlocale(LC_ALL, "");
12 OSVERSIONINFOEXW info = {0};
13 info.dwOSVersionInfoSize = sizeof(info);
14 assert(GetVersionExW((OSVERSIONINFOW*)&info));
16 printf("dwMajorVersion = %d\n", (int)info.dwMajorVersion);
17 printf("dwMinorVersion = %d\n", (int)info.dwMinorVersion);
18 printf("dwBuildNumber = %d\n", (int)info.dwBuildNumber);
19 printf("dwPlatformId = %d\n", (int)info.dwPlatformId);
20 printf("szCSDVersion = %ls\n", info.szCSDVersion);
21 printf("wServicePackMajor = %d\n", info.wServicePackMajor);
22 printf("wServicePackMinor = %d\n", info.wServicePackMinor);
23 printf("wSuiteMask = 0x%x\n", (unsigned int)info.wSuiteMask);
24 printf("wProductType = 0x%x\n", (unsigned int)info.wProductType);