VirtualBox

Changeset 91546 in vbox


Ignore:
Timestamp:
Oct 4, 2021 3:34:38 PM (3 years ago)
Author:
vboxsync
Message:

Additions, VMMDev: More Windows 11 detection.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp

    r87579 r91546  
    174174    VGDRVNTVER_WIN8,
    175175    VGDRVNTVER_WIN81,
    176     VGDRVNTVER_WIN10
     176    VGDRVNTVER_WIN10,
     177    VGDRVNTVER_WIN11
    177178} VGDRVNTVER;
    178179
     
    340341    switch (ulMajorVer)
    341342    {
     343        case 11: /* Windows 11 Preview builds starting with 22000. */
     344            g_enmVGDrvNtVer = VGDRVNTVER_WIN11;
     345            break;
    342346        case 10: /* Windows 10 Preview builds starting with 9926. */
    343347            g_enmVGDrvNtVer = VGDRVNTVER_WIN10;
     
    539543        case VGDRVNTVER_WIN81:      enmOsType = VBOXOSTYPE_Win81; break;
    540544        case VGDRVNTVER_WIN10:      enmOsType = VBOXOSTYPE_Win10; break;
     545        case VGDRVNTVER_WIN11:      enmOsType = VBOXOSTYPE_Win11; break;
    541546
    542547        default:
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r90461 r91546  
    189189        case VBOXOSTYPE_Win2k16_x64 & ~VBOXOSTYPE_x64:    pszOs = "Windows 2k16";   break;
    190190        case VBOXOSTYPE_Win2k19_x64 & ~VBOXOSTYPE_x64:    pszOs = "Windows 2k19";   break;
     191        case VBOXOSTYPE_Win11:                            pszOs = "Windows 11";     break;
    191192        case VBOXOSTYPE_OS2:                              pszOs = "OS/2";           break;
    192193        case VBOXOSTYPE_OS2Warp3:                         pszOs = "OS/2 Warp 3";    break;
Note: See TracChangeset for help on using the changeset viewer.

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