Changeset 38765 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Sep 15, 2011 2:11:47 PM (13 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPUtils.cpp
r36955 r38765 50 50 51 51 if (s_WinVersion != UNKNOWN_WINVERSION) 52 {53 52 return s_WinVersion; 54 }55 53 56 54 checkedBuild = PsGetVersion(&major, &minor, &build, NULL); … … 59 57 if(major == 6) 60 58 { 61 if (minor == 1) 62 { 59 if (minor == 2) 60 s_WinVersion = WIN8; 61 else if (minor == 1) 63 62 s_WinVersion = WIN7; 64 }65 63 else if (minor == 0) 66 {67 64 s_WinVersion = WINVISTA; /* Or Windows Server 2008. */ 68 }69 65 } 70 66 else if (major == 5) 71 {72 67 s_WinVersion = (minor>=1) ? WINXP:WIN2K; 73 }74 68 else if (major == 4) 75 {76 69 s_WinVersion = WINNT4; 77 } 78 else 79 { 70 else 80 71 WARN(("NT4 required!")); 81 }82 72 return s_WinVersion; 83 73 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPUtils.h
r38739 r38765 88 88 WINXP = 3, 89 89 WINVISTA = 4, 90 WIN7 = 5 90 WIN7 = 5, 91 WIN8 = 6 91 92 } vboxWinVersion_t; 92 93 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r38405 r38765 606 606 else 607 607 { 608 Assert(ver == WIN7 );608 Assert(ver == WIN7 || ver == WIN8); 609 609 pKeyPrefix = VBOXWDDM_REG_DISPLAYSETTINGSKEY_PREFIX_WIN7; 610 610 cbKeyPrefix = sizeof (VBOXWDDM_REG_DISPLAYSETTINGSKEY_PREFIX_WIN7);
Note:
See TracChangeset
for help on using the changeset viewer.