VirtualBox

Changeset 70350 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Dec 26, 2017 5:24:43 PM (7 years ago)
Author:
vboxsync
Message:

VBoxGuestNt3.sys: Use the regular driver for NT3 too.

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk

    r70342 r70350  
    5050 VBoxGuest_DEFS.solaris  = VBOX_SVN_REV=$(VBOX_SVN_REV)
    5151 VBoxGuest_DEFS.win      = VBOX_GUESTDRV_WITH_RELEASE_LOGGER
    52  VBoxGuest_DEFS.win.x86  = TARGET_NT4
     52 VBoxGuest_DEFS.win.x86  = TARGET_NT4 TARGET_NT3 RT_WITHOUT_NOCRT_WRAPPERS
    5353 VBoxGuest_DEFS.darwin   = VBOX_GUESTDRV_WITH_RELEASE_LOGGER
    5454 ifeq ($(KBUILD_TYPE),release)
     
    8585    VBoxGuest_SDKS       = ReorderCompilerIncs $(VBOX_WINDDK_GST_NT4)
    8686    VBoxGuest_LIBS       = \
     87        $(VBOX_LIB_VBGL_R0BASE) \
     88        $(VBOX_LIB_IPRT_GUEST_R0) \
    8789        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib \
     90        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/int64.lib \
    8891        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \
    8992        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib
     
    9497   endif
    9598   VBoxGuest_USES.win += vboximportchecker
    96    VBoxGuest_VBOX_IMPORT_CHECKER.win.x86 = nt4/r0
     99   VBoxGuest_VBOX_IMPORT_CHECKER.win.x86 = nt31/r0
    97100   VBoxGuest_VBOX_IMPORT_CHECKER.win.amd64 = xp64/r0
    98101  endif # win
     
    108111  VBoxGuest_SOURCES     += \
    109112        VBoxGuest.cpp
    110   ifeq ($(KBUILD_TARGET), win)
    111    VBoxGuest_SOURCES += \
     113  VBoxGuest_SOURCES.win += \
    112114        win/VBoxGuest.rc
    113   endif
     115  VBoxGuest_SOURCES.win.x86 += \
     116       ../../../Runtime/common/string/strcmp.asm \
     117       ../../../Runtime/common/string/strchr.asm \
     118       ../../../Runtime/r0drv/nt/nt3fakes-r0drv-nt.cpp \
     119       ../../../Runtime/r0drv/nt/nt3fakesA-r0drv-nt.asm
    114120  VBoxGuest_LIBS        += \
    115121        $(VBOX_LIB_VBGL_R0BASE) \
     
    159165
    160166 VBoxGuest.cpp_DEFS     = VBOX_SVN_REV=$(VBOX_SVN_REV)
    161 
    162  if "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_NT3_ADDITIONS)
    163   #
    164   # Windows NT 3.x driver.
    165   #
    166   SYSMODS.x86 += VBoxGuestNT3
    167   VBoxGuestNT3_EXTENDS = VBoxGuest
    168   VBoxGuestNT3_INSTTYPE.win = both
    169   VBoxGuestNT3_SDKS    = ReorderCompilerIncs $(VBOX_WINDDK_GST_NT4)
    170   VBoxGuestNT3_DEFS    = $(VBoxGuest_DEFS) TARGET_NT4 TARGET_NT3 RT_WITHOUT_NOCRT_WRAPPERS
    171   VBoxGuestNT3_SOURCES = \
    172         VBoxGuest.cpp \
    173         VBoxGuest-$(KBUILD_TARGET).cpp \
    174        ../../../Runtime/common/string/strcmp.asm \
    175        ../../../Runtime/common/string/strchr.asm \
    176        ../../../Runtime/r0drv/nt/nt3fakes-r0drv-nt.cpp \
    177        ../../../Runtime/r0drv/nt/nt3fakesA-r0drv-nt.asm \
    178         win/VBoxGuest.rc
    179   VBoxGuestNT3_LIBS    = \
    180         $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
    181         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib \
    182         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/int64.lib \
    183         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \
    184         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib \
    185         $(VBOX_LIB_VBGL_R0BASE)
    186   VBoxGuestNT3_VBOX_IMPORT_CHECKER.win.x86 = nt31/r0
    187  endif # win
    188167endif # enabled
    189168
  • trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuestInst.cpp

    r70342 r70350  
    5454    }
    5555
    56     uint32_t const uMajorNtVer  = GetVersion() & 0xff;
    57     const char    *pszSlashName = uMajorNtVer < 4 ? "\\VBoxGuestNT3.sys" : "\\VBoxGuest.sys";
     56    const char    *pszSlashName = "\\VBoxGuest.sys";
    5857    char szDriver[MAX_PATH * 2];
    5958    GetCurrentDirectory(MAX_PATH, szDriver);
     
    6362        GetSystemDirectory(szDriver, sizeof(szDriver));
    6463        strcat(strcat(szDriver, "\\drivers"), pszSlashName);
    65 
    66         /* Try FAT name abbreviation. */
    67         if (   GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES
    68             && uMajorNtVer < 4)
    69         {
    70             pszSlashName = "\\VBoxGst3.sys";
    71             GetCurrentDirectory(MAX_PATH, szDriver);
    72             strcat(szDriver, pszSlashName);
    73             if (GetFileAttributesA(szDriver) == INVALID_FILE_ATTRIBUTES)
    74             {
    75                 GetSystemDirectory(szDriver, sizeof(szDriver));
    76                 strcat(strcat(szDriver, "\\drivers"), pszSlashName);
    77 
    78             }
    79         }
    8064    }
    8165
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