Add detection of Windows 8 and Windows Server 2012

svn path=/trunk/; revision=46881
This commit is contained in:
Pascal Quantin 2013-01-01 14:20:17 +00:00
parent 7e30804155
commit dad3ca304a
1 changed files with 3 additions and 0 deletions

View File

@ -474,6 +474,9 @@ void get_os_version_info(GString *str)
case 1:
g_string_append_printf(str, is_nt_workstation ? "Windows 7" : "Windows Server 2008 R2");
break;
case 2:
g_string_append_printf(str, is_nt_workstation ? "Windows 8" : "Windows Server 2012");
break;
default:
g_string_append_printf(str, "Windows NT, unknown version %lu.%lu",
info.dwMajorVersion, info.dwMinorVersion);