VirtualBox

Changeset 38758 in vbox


Ignore:
Timestamp:
Sep 15, 2011 11:01:06 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74039
Message:

IPRT: Added Windows 8 OS detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/RTSystemQueryOSInfo-win.cpp

    r28800 r38758  
    6565    kRTWinOSType_2008,
    6666    kRTWinOSType_7,
     67    kRTWinOSType_8,
    6768    kRTWinOSType_NT_UNKNOWN = 199,
    6869    kRTWinOSType_NT_LAST    = kRTWinOSType_UNKNOWN
     
    205206                 && dwMinorVersion == 1)
    206207            enmVer = kRTWinOSType_7;
     208        else if (   dwMajorVersion == 6
     209                 && dwMinorVersion == 2)
     210            enmVer = kRTWinOSType_8;
    207211        else
    208212            enmVer = kRTWinOSType_NT_UNKNOWN;
     
    372376                case kRTWinOSType_2008:         strcpy(szTmp, "Windows 2008"); break;
    373377                case kRTWinOSType_7:            strcpy(szTmp, "Windows 7"); break;
     378                case kRTWinOSType_8:            strcpy(szTmp, "Windows 8"); break;
    374379
    375380                case kRTWinOSType_NT_UNKNOWN:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette