Changeset 22540 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Aug 27, 2009 9:58:37 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.cpp
r21226 r22540 262 262 dprintf(("VBoxVideo::vboxQueryWinVersion: running on Windows NT version %d.%d, build %d\n", 263 263 majorVersion, minorVersion, buildNumber)); 264 265 if (majorVersion >= 5) 264 if(majorVersion == 7) 265 { 266 winVersion = WIN7; 267 } 268 else if(majorVersion == 6) 269 { 270 winVersion = WINVISTA; 271 } 272 else if (majorVersion == 5) 266 273 { 267 274 if (minorVersion >= 1) … … 272 279 winVersion = WIN2K; 273 280 } 274 } else275 if (majorVersion == 4)281 } 282 else if (majorVersion == 4) 276 283 { 277 284 winVersion = WINNT4; 278 } else 285 } 286 else 279 287 { 280 288 dprintf(("VBoxVideo::vboxQueryWinVersion: NT4 required!\n")); -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.h
r19430 r22540 25 25 { 26 26 UNKNOWN_WINVERSION = 0, 27 WINNT4 = 1, 28 WIN2K = 2, 29 WINXP = 3 27 WINNT4 = 1, 28 WIN2K = 2, 29 WINXP = 3, 30 WINVISTA = 4, 31 WIN7 = 5 30 32 } winVersion_t; 31 33 -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r22469 r22540 30 30 #include <VBoxDisplay.h> 31 31 32 #ifdef VBOX_WITH_HGSMI33 #include <iprt/initterm.h>34 #endif35 36 32 #if _MSC_VER >= 1400 /* bird: MS fixed swprintf to be standard-conforming... */ 37 33 #define _INC_SWPRINTF_INL_ … … 63 59 VIDEO_HW_INITIALIZATION_DATA InitData; 64 60 ULONG rc; 65 66 #ifdef VBOX_WITH_HGSMI67 RTR0Init(0);68 #endif69 61 70 62 dprintf(("VBoxVideo::DriverEntry. Built %s %s\n", __DATE__, __TIME__)); … … 1216 1208 ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = 0; 1217 1209 1218 VIDEO_ACCESS_RANGE tmpRanges[ 2];1210 VIDEO_ACCESS_RANGE tmpRanges[4]; 1219 1211 ULONG slot; 1212 1213 VideoPortZeroMemory(tmpRanges, sizeof(tmpRanges)); 1220 1214 1221 1215 /* need to call VideoPortGetAccessRanges to ensure interrupt info in ConfigInfo gets set up */
Note:
See TracChangeset
for help on using the changeset viewer.