VirtualBox

Changeset 22540 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Aug 27, 2009 9:58:37 PM (15 years ago)
Author:
vboxsync
Message:

VBoxVideo/win: proper handling OS version information for win > XP & make VideoPort be properly initialized for win > XP

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  
    262262    dprintf(("VBoxVideo::vboxQueryWinVersion: running on Windows NT version %d.%d, build %d\n",
    263263             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)
    266273    {
    267274        if (minorVersion >= 1)
     
    272279            winVersion = WIN2K;
    273280        }
    274     } else
    275     if (majorVersion == 4)
     281    }
     282    else if (majorVersion == 4)
    276283    {
    277284        winVersion = WINNT4;
    278     } else
     285    }
     286    else
    279287    {
    280288        dprintf(("VBoxVideo::vboxQueryWinVersion: NT4 required!\n"));
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.h

    r19430 r22540  
    2525{
    2626    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
    3032} winVersion_t;
    3133
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r22469 r22540  
    3030#include <VBoxDisplay.h>
    3131
    32 #ifdef VBOX_WITH_HGSMI
    33 #include <iprt/initterm.h>
    34 #endif
    35 
    3632#if _MSC_VER >= 1400 /* bird: MS fixed swprintf to be standard-conforming... */
    3733#define _INC_SWPRINTF_INL_
     
    6359    VIDEO_HW_INITIALIZATION_DATA InitData;
    6460    ULONG rc;
    65 
    66 #ifdef VBOX_WITH_HGSMI
    67     RTR0Init(0);
    68 #endif
    6961
    7062    dprintf(("VBoxVideo::DriverEntry. Built %s %s\n", __DATE__, __TIME__));
     
    12161208          ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = 0;
    12171209
    1218           VIDEO_ACCESS_RANGE tmpRanges[2];
     1210          VIDEO_ACCESS_RANGE tmpRanges[4];
    12191211          ULONG slot;
     1212
     1213          VideoPortZeroMemory(tmpRanges, sizeof(tmpRanges));
    12201214
    12211215          /* need to call VideoPortGetAccessRanges to ensure interrupt info in ConfigInfo gets set up */
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