Changeset 53008 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 9, 2014 11:34:57 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 96474
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPUtils.cpp
r51078 r53008 52 52 ULONG major, minor, build; 53 53 BOOLEAN checkedBuild; 54 static vboxWinVersion_t s_WinVersion = UNKNOWN_WINVERSION;55 56 if (s_WinVersion != UNKNOWN_WINVERSION)54 static vboxWinVersion_t s_WinVersion = WINVERSION_UNKNOWN; 55 56 if (s_WinVersion != WINVERSION_UNKNOWN) 57 57 return s_WinVersion; 58 58 … … 60 60 LOG(("running on version %d.%d, build %d(checked=%d)", major, minor, build, (int)checkedBuild)); 61 61 62 if(major == 6) 63 { 64 if (minor == 3) 65 s_WinVersion = WIN81; 62 if (major == 6) 63 { 64 if (minor >= 4) 65 s_WinVersion = WINVERSION_10; 66 else if (minor == 3) 67 s_WinVersion = WINVERSION_81; 66 68 else if (minor == 2) 67 s_WinVersion = WIN 8;69 s_WinVersion = WINVERSION_8; 68 70 else if (minor == 1) 69 s_WinVersion = WIN 7;71 s_WinVersion = WINVERSION_7; 70 72 else if (minor == 0) 71 s_WinVersion = WINV ISTA; /* Or Windows Server 2008. */73 s_WinVersion = WINVERSION_VISTA; /* Or Windows Server 2008. */ 72 74 } 73 75 else if (major == 5) 74 s_WinVersion = (minor>=1) ? WIN XP:WIN2K;76 s_WinVersion = (minor>=1) ? WINVERSION_XP: WINVERSION_2K; 75 77 else if (major == 4) 76 s_WinVersion = WIN NT4;78 s_WinVersion = WINVERSION_NT4; 77 79 else 78 80 WARN(("NT4 required!")); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPUtils.h
r46876 r53008 88 88 typedef enum 89 89 { 90 UNKNOWN_WINVERSION = 0, 91 WINNT4 = 1, 92 WIN2K = 2, 93 WINXP = 3, 94 WINVISTA = 4, 95 WIN7 = 5, 96 WIN8 = 6, 97 WIN81 = 7 90 WINVERSION_UNKNOWN = 0, 91 WINVERSION_NT4 = 1, 92 WINVERSION_2K = 2, 93 WINVERSION_XP = 3, 94 WINVERSION_VISTA = 4, 95 WINVERSION_7 = 5, 96 WINVERSION_8 = 6, 97 WINVERSION_81 = 7, 98 WINVERSION_10 = 8 98 99 } vboxWinVersion_t; 99 100 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r52350 r53008 619 619 620 620 vboxWinVersion_t ver = VBoxQueryWinVersion(); 621 if (ver == WINV ISTA)621 if (ver == WINVERSION_VISTA) 622 622 { 623 623 pKeyPrefix = VBOXWDDM_REG_DISPLAYSETTINGSKEY_PREFIX_VISTA; … … 626 626 else 627 627 { 628 Assert(ver == WIN7 || ver == WIN8 || ver == WIN81);628 Assert(ver > WINVERSION_VISTA); 629 629 pKeyPrefix = VBOXWDDM_REG_DISPLAYSETTINGSKEY_PREFIX_WIN7; 630 630 cbKeyPrefix = sizeof (VBOXWDDM_REG_DISPLAYSETTINGSKEY_PREFIX_WIN7); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r52806 r53008 7431 7431 else if (major == 6) 7432 7432 { 7433 if (minor > 3)7433 if (minor > 4) 7434 7434 { 7435 7435 WARN(("Unknow win version, newer minor release, assuming 3D check is required")); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
r49450 r53008 104 104 VideoPortZeroMemory(tmpRanges, sizeof(tmpRanges)); 105 105 106 if (VBoxQueryWinVersion() == WIN NT4)106 if (VBoxQueryWinVersion() == WINVERSION_NT4) 107 107 { 108 108 /* NT crashes if either of 'vendorId, 'deviceId' or 'slot' parameters is NULL, … … 758 758 switch (VBoxQueryWinVersion()) 759 759 { 760 case WIN NT4:761 LOG(("WIN NT4"));760 case WINVERSION_NT4: 761 LOG(("WINVERSION_NT4")); 762 762 vhwData.HwInitDataSize = SIZE_OF_NT4_VIDEO_HW_INITIALIZATION_DATA; 763 763 break; 764 case WIN 2K:765 LOG(("WIN 2K"));764 case WINVERSION_2K: 765 LOG(("WINVERSION_2K")); 766 766 vhwData.HwInitDataSize = SIZE_OF_W2K_VIDEO_HW_INITIALIZATION_DATA; 767 767 break; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPInternal.cpp
r49750 r53008 427 427 if (pContext) 428 428 { 429 VideoPortZeroMemory(pContext, size);429 VideoPortZeroMemory(pContext, (ULONG)size); 430 430 pContext->cContexts = cDisplays; 431 431 pContext->pCommon = pCommon; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPVideoPortAPI.cpp
r37423 r53008 89 89 VideoPortZeroMemory(pAPI, sizeof(VBOXVIDEOPORTPROCS)); 90 90 91 if (VBoxQueryWinVersion() <= WIN NT4)91 if (VBoxQueryWinVersion() <= WINVERSION_NT4) 92 92 { 93 93 /* VideoPortGetProcAddress is available for >= win2k */ -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r50421 r53008 665 665 StrCmp $g_strWinVersion "8" vista ; Windows 8 666 666 StrCmp $g_strWinVersion "8_1" vista ; Windows 8.1 / Windows 2012 Server R2 667 StrCmp $g_strWinVersion "10" vista ; Windows 10 667 668 668 669 ${If} $g_bForceInstall == "true" … … 762 763 ${OrIf} $R0 == '8' ; Windows 8. 763 764 ${OrIf} $R0 == '8_1' ; Windows 8.1 / Windows Server 2012 R2. 765 ${OrIf} $R0 == '10' ; Windows 10. 764 766 ; Use VBoxCredProv on Vista and up. 765 767 ${LogVerbose} "Installing VirtualBox credential provider ..." … … 1026 1028 ${If} $g_strWinVersion != "8" ; On Windows 8 WDDM is mandatory 1027 1029 ${AndIf} $g_strWinVersion != "8_1" ; ... also on Windows 8.1 / Windows 2012 Server R2 1030 ${AndIf} $g_strWinVersion != "10" ; ... also on Windows 10 1028 1031 StrCpy $g_bWithWDDM "false" 1029 1032 ${EndIf} … … 1204 1207 !insertmacro SelectSection ${SEC03} 1205 1208 ${EndIf} 1206 ; On Windows 8 / 8.1 / Windows Server 2012 R2 we always select the 3D1209 ; On Windows 8 / 8.1 / Windows Server 2012 R2 and newer we always select the 3D 1207 1210 ; section and disable it so that it cannot be deselected again 1208 1211 ${If} $g_strWinVersion == "8" 1209 1212 ${OrIf} $g_strWinVersion == "8_1" 1213 ${OrIf} $g_strWinVersion == "10" 1210 1214 IntOp $0 ${SF_SELECTED} | ${SF_RO} 1211 1215 SectionSetFlags ${SEC03} $0 -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh
r50433 r53008 545 545 ${OrIf} $g_strWinVersion == "8" 546 546 ${OrIf} $g_strWinVersion == "8_1" 547 ${OrIf} $g_strWinVersion == "10" 547 548 StrCpy $g_bCapWDDM "true" 548 549 ${LogVerbose} "OS is WDDM driver capable" … … 552 553 ${If} $g_strWinVersion == "8" 553 554 ${OrIf} $g_strWinVersion == "8_1" 555 ${OrIf} $g_strWinVersion == "10" 554 556 StrCpy $g_bWithWDDM "true" 555 557 ${LogVerbose} "OS needs WDDM driver by default" … … 576 578 ${OrIf} $g_strWinVersion == "8" 577 579 ${OrIf} $g_strWinVersion == "8_1" 580 ${OrIf} $g_strWinVersion == "10" 578 581 StrCpy $g_bCapDllCache "true" 579 582 ${LogVerbose} "OS has a DLL cache" -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstall.nsh
r46845 r53008 87 87 StrCmp $g_strWinVersion "8" vista ; Windows 8 88 88 StrCmp $g_strWinVersion "8_1" vista ; Windows 8.1 / Windows Server 2012 R2 89 StrCmp $g_strWinVersion "10" vista ; Windows 10 89 90 90 91 ${If} $g_bForceInstall == "true" … … 146 147 StrCmp $g_strWinVersion "8" vista ; Windows 8 147 148 StrCmp $g_strWinVersion "8_1" vista ; Windows 8.1 / Windows Server 2012 R2 149 StrCmp $g_strWinVersion "10" vista ; Windows 10 148 150 149 151 ${If} $g_bForceInstall == "true" -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r46876 r53008 122 122 ${OrIf} $g_strWinVersion == "8" 123 123 ${OrIf} $g_strWinVersion == "8_1" 124 ${OrIf} $g_strWinVersion == "10" 124 125 StrCpy $reg_path_device "SYSTEM\CurrentControlSet\Control\Video\$dev_id\0000" 125 126 StrCpy $reg_path_monitor "SYSTEM\CurrentControlSet\Control\VIDEO\$dev_id\0000\Mon00000001" … … 235 236 ${If} $g_strWinVersion == "8" 236 237 ${OrIf} $g_strWinVersion == "8_1" 238 ${OrIf} $g_strWinVersion == "10" 237 239 !ifdef VBOX_SIGN_ADDITIONS 238 240 FILE "$%PATH_OUT%\bin\additions\VBoxVideoW8.cat" … … 396 398 ${If} $g_strWinVersion == "8" 397 399 ${OrIf} $g_strWinVersion == "8_1" 398 ${LogVerbose} "Installing WDDM video driver for Windows 8..." 400 ${OrIf} $g_strWinVersion == "10" 401 ${LogVerbose} "Installing WDDM video driver for Windows 8 or newer..." 399 402 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" driver install $\"$INSTDIR\VBoxVideoW8.inf$\" $\"$INSTDIR\install_drivers.log$\"" "false" 400 403 ${Else} … … 466 469 SetRegView 32 467 470 ; Write additional keys required for Windows XP, Vista and 7 64-bit (but for 32-bit stuff) 468 ${If} $g_strWinVersion == '8_1' 471 ${If} $g_strWinVersion == '10' 472 ${OrIf} $g_strWinVersion == '8_1' 469 473 ${OrIf} $g_strWinVersion == '8' 470 474 ${OrIf} $g_strWinVersion == '7' -
trunk/src/VBox/Additions/WINNT/Installer/winver.nsh
r46838 r53008 67 67 StrCmp $R1 '6.1' lbl_winnt_7 68 68 StrCmp $R1 '6.2' lbl_winnt_8 69 StrCmp $R1 '6.3' lbl_winnt_8_1 lbl_error 69 StrCmp $R1 '6.3' lbl_winnt_8_1 70 StrCmp $R1 '6.4' lbl_winnt_10 lbl_error 70 71 71 72 lbl_winnt_x: … … 101 102 Goto lbl_done 102 103 104 lbl_winnt_10: 105 Strcpy $R0 '10' 106 Goto lbl_done 107 103 108 lbl_error: 104 109 Strcpy $R0 '' -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp
r51224 r53008 130 130 case 3: 131 131 g_enmVbgdNtVer = VBGDNTVER_WIN81; 132 break; 133 case 4: 134 g_enmVbgdNtVer = VBGDNTVER_WIN10; 132 135 break; 133 136 default: … … 1311 1314 break; 1312 1315 1316 case VBGDNTVER_WIN10: 1317 #if ARCH_BITS == 64 1318 enmOsType = VBOXOSTYPE_Win10_x64; 1319 #else 1320 enmOsType = VBOXOSTYPE_Win10; 1321 #endif 1322 break; 1323 1313 1324 default: 1314 1325 /* We don't know, therefore NT family. */ -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.h
r48938 r53008 137 137 VBGDNTVER_WIN8, 138 138 VBGDNTVER_WIN81, 139 VBGDNTVER_WIN10 139 140 } VBGDNTVER; 140 141 extern VBGDNTVER g_enmVbgdNtVer;
Note:
See TracChangeset
for help on using the changeset viewer.