Get winetest to detect windows server 2003 R2.

This commit is contained in:
Ivan Leo Puoti 2005-09-15 18:56:20 +00:00 committed by Alexandre Julliard
parent 91861e44e7
commit dc2e1399ef
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,7 @@ static void print_version (void)
{
OSVERSIONINFOEX ver;
BOOL ext;
int is_win2k3_r2;
ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
if (!(ext = GetVersionEx ((OSVERSIONINFO *) &ver)))
@ -112,6 +113,10 @@ static void print_version (void)
ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber,
ver.dwPlatformId, ver.szCSDVersion);
is_win2k3_r2 = GetSystemMetrics(SM_SERVERR2);
if(is_win2k3_r2)
xprintf(" R2 build number=%d\n", is_win2k3_r2);
if (!ext) return;
xprintf (" wServicePackMajor=%d\n wServicePackMinor=%d\n"