Changeset 15954 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 14, 2009 7:46:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/RTSystemQueryOSInfo-win.cpp
r11356 r15954 67 67 kRTWinOSType_2003, 68 68 kRTWinOSType_VISTA, 69 kRTWinOSType_2008, 70 kRTWinOSType_7, 69 71 kRTWinOSType_NT_UNKNOWN = 199, 70 72 kRTWinOSType_NT_LAST = kRTWinOSType_UNKNOWN … … 147 149 { 148 150 RTWINOSTYPE enmVer = kRTWinOSType_UNKNOWN; 151 BYTE const bProductType = pOSInfoEx->wProductType; 149 152 DWORD const dwPlatformId = pOSInfoEx->dwPlatformId; 150 153 DWORD const dwMinorVersion = pOSInfoEx->dwMinorVersion; … … 197 200 else if ( dwMajorVersion == 6 198 201 && dwMinorVersion == 0) 199 enmVer = kRTWinOSType_VISTA; 200 /** @todo check Windows Server 2008! */ 202 { 203 if (bProductType != VER_NT_WORKSTATION) 204 enmVer = kRTWinOSType_2008; 205 else 206 enmVer = kRTWinOSType_VISTA; 207 } 208 else if ( dwMajorVersion == 6 209 && dwMinorVersion == 1) 210 enmVer = kRTWinOSType_7; 201 211 else 202 212 enmVer = kRTWinOSType_NT_UNKNOWN; … … 364 374 break; 365 375 } 376 case kRTWinOSType_2008: strcpy(szTmp, "Windows 2008"); break; 377 case kRTWinOSType_7: strcpy(szTmp, "Windows 7"); break; 366 378 367 379 case kRTWinOSType_NT_UNKNOWN:
Note:
See TracChangeset
for help on using the changeset viewer.