Changeset 70361 in vbox for trunk/src/VBox/Runtime/r3/win/init-win.cpp
- Timestamp:
- Dec 27, 2017 4:58:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/init-win.cpp
r70345 r70361 222 222 else if (dwPlatformId == VER_PLATFORM_WIN32_NT) 223 223 { 224 if ( dwMajorVersion == 3 225 && dwMinorVersion == 1) 226 enmVer = kRTWinOSType_NT310; 227 else if ( dwMajorVersion == 3 228 && dwMinorVersion == 50) 229 enmVer = kRTWinOSType_NT350; 230 else if ( dwMajorVersion == 3 231 && dwMinorVersion == 51) 232 enmVer = kRTWinOSType_NT351; 233 else if ( dwMajorVersion == 4 234 && dwMinorVersion == 0) 224 if (dwMajorVersion == 3) 225 { 226 if ( dwMinorVersion < 50) 227 enmVer = kRTWinOSType_NT310; 228 else if (dwMinorVersion == 50) 229 enmVer = kRTWinOSType_NT350; 230 else 231 enmVer = kRTWinOSType_NT351; 232 } 233 else if (dwMajorVersion == 4) 235 234 enmVer = kRTWinOSType_NT4; 236 else if ( dwMajorVersion == 5 237 && dwMinorVersion == 0) 238 enmVer = kRTWinOSType_2K; 239 else if ( dwMajorVersion == 5 240 && dwMinorVersion == 1) 241 enmVer = kRTWinOSType_XP; 242 else if ( dwMajorVersion == 5 243 && dwMinorVersion == 2) 244 enmVer = kRTWinOSType_2003; 245 else if ( dwMajorVersion == 6 246 && dwMinorVersion == 0) 247 { 248 if (bProductType != VER_NT_WORKSTATION) 249 enmVer = kRTWinOSType_2008; 235 else if (dwMajorVersion == 5) 236 { 237 if (dwMinorVersion == 0) 238 enmVer = kRTWinOSType_2K; 239 else if (dwMinorVersion == 1) 240 enmVer = kRTWinOSType_XP; 250 241 else 251 enmVer = kRTWinOSType_VISTA; 252 } 253 else if ( dwMajorVersion == 6 254 && dwMinorVersion == 1) 255 { 256 if (bProductType != VER_NT_WORKSTATION) 257 enmVer = kRTWinOSType_2008R2; 242 enmVer = kRTWinOSType_2003; 243 } 244 else if (dwMajorVersion == 6) 245 { 246 if (dwMinorVersion == 0) 247 enmVer = bProductType != VER_NT_WORKSTATION ? kRTWinOSType_2008 : kRTWinOSType_VISTA; 248 else if (dwMinorVersion == 1) 249 enmVer = bProductType != VER_NT_WORKSTATION ? kRTWinOSType_2008R2 : kRTWinOSType_7; 250 else if (dwMinorVersion == 2) 251 enmVer = bProductType != VER_NT_WORKSTATION ? kRTWinOSType_2012 : kRTWinOSType_8; 252 else if (dwMinorVersion == 3) 253 enmVer = bProductType != VER_NT_WORKSTATION ? kRTWinOSType_2012R2 : kRTWinOSType_81; 254 else if (dwMinorVersion == 4) 255 enmVer = bProductType != VER_NT_WORKSTATION ? kRTWinOSType_2016 : kRTWinOSType_10; 258 256 else 259 enmVer = kRTWinOSType_7; 260 } 261 else if ( dwMajorVersion == 6 262 && dwMinorVersion == 2) 263 { 264 if (bProductType != VER_NT_WORKSTATION) 265 enmVer = kRTWinOSType_2012; 257 enmVer = kRTWinOSType_NT_UNKNOWN; 258 } 259 else if (dwMajorVersion == 10) 260 { 261 if (dwMinorVersion == 0) 262 enmVer = bProductType != VER_NT_WORKSTATION ? kRTWinOSType_2016 : kRTWinOSType_10; 266 263 else 267 enmVer = kRTWinOSType_8; 268 } 269 else if ( dwMajorVersion == 6 270 && dwMinorVersion == 3) 271 { 272 if (bProductType != VER_NT_WORKSTATION) 273 enmVer = kRTWinOSType_2012R2; 274 else 275 enmVer = kRTWinOSType_81; 276 } 277 else if ( ( dwMajorVersion == 6 278 && dwMinorVersion == 4) 279 || ( dwMajorVersion == 10 280 && dwMinorVersion == 0)) 281 { 282 if (bProductType != VER_NT_WORKSTATION) 283 enmVer = kRTWinOSType_2016; 284 else 285 enmVer = kRTWinOSType_10; 264 enmVer = kRTWinOSType_NT_UNKNOWN; 286 265 } 287 266 else
Note:
See TracChangeset
for help on using the changeset viewer.