VirtualBox

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


Ignore:
Timestamp:
Nov 9, 2024 1:46:17 AM (2 months ago)
Author:
vboxsync
Message:

Add/Nt/InstallHelper: Don't set the windows version of arm64 and amd64 to nt4. bugref:10762 VBP-1253

Location:
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/Makefile.kmk

    r106898 r106908  
    3838PROGRAMS += VBoxGuestInstallHelper
    3939VBoxGuestInstallHelper_TEMPLATE = VBoxGuestR3Exe
    40 VBoxGuestInstallHelper_DEFS    = _WIN32_WINNT=0x0400 _UNICODE UNICODE
    41 VBoxGuestInstallHelper_DEFS   += VBOX_SVN_REV=$(VBOX_SVN_REV)
     40VBoxGuestInstallHelper_DEFS     = _UNICODE UNICODE
     41VBoxGuestInstallHelper_DEFS    += VBOX_SVN_REV=$(VBOX_SVN_REV)
    4242ifdef VBOX_WITH_WDDM
    43  VBoxGuestInstallHelper_DEFS  += VBOX_WITH_WDDM
     43 VBoxGuestInstallHelper_DEFS   += VBOX_WITH_WDDM
    4444endif
    45 VBoxGuestInstallHelper_DEPS    = $(VBOX_SVN_REV_KMK)
    46 VBoxGuestInstallHelper_SDKS    = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST)
    47 VBoxGuestInstallHelper_INCS    = ../../include
     45if1of ($(KBUILD_TARGET_ARCH), x86)
     46 VBoxGuestInstallHelper_DEFS   += _WIN32_WINNT=0x0400
     47else if1of ($(KBUILD_TARGET_ARCH), amd64)
     48 VBoxGuestInstallHelper_DEFS   += _WIN32_WINNT=0x0501
     49endif
     50VBoxGuestInstallHelper_DEPS     = $(VBOX_SVN_REV_KMK)
     51VBoxGuestInstallHelper_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK_GST) $(VBOX_WINDDK_GST)
     52VBoxGuestInstallHelper_INCS     = ../../include
    4853VBoxGuestInstallHelper_SOURCES = \
    4954        VBoxGuestInstallHelper.cpp \
     
    7984VBoxGuestInstallHelperDll_DEFS            := WIN32_LEAN_AND_MEAN=1 UNICODE _UNICODE
    8085if1of ($(KBUILD_TARGET_ARCH), x86)
    81  VBoxGuestInstallHelperDll_DEFS           := _WIN32_WINNT=0x0400
     86 VBoxGuestInstallHelperDll_DEFS           += _WIN32_WINNT=0x0400
    8287 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := nt4
    8388else if1of ($(KBUILD_TARGET_ARCH), amd64)
    84  VBoxGuestInstallHelperDll_DEFS           := _WIN32_WINNT=0x0501
     89 VBoxGuestInstallHelperDll_DEFS           += _WIN32_WINNT=0x0501
    8590 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := xp
    8691else
    87  VBoxGuestInstallHelperDll_DEFS           := _WIN32_WINNT=0x0a00
     92 VBoxGuestInstallHelperDll_DEFS           += _WIN32_WINNT=0x0a00
    8893 VBoxGuestInstallHelperDll_VBOX_IMPORT_CHECKER.win.x86 := w8
    8994endif
  • trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp

    r106896 r106908  
    760760     *          - SP_INF_SIGNER_INFO_W,
    761761     *       but we only make use of SP_DRVINFO_DATA_W.
     762     *
     763     *       The newer SP_DRVINFO_DATA_W version was introduced with Windows
     764     *       2000, so this only affects x86.
    762765     */
    763766    SetLastError(NO_ERROR);
     767#if defined(RT_ARCH_X86)
    764768    SP_DRVINFO_DATA_V1_W drvInfoData = { sizeof(drvInfoData) };
     769#else
     770    SP_DRVINFO_DATA_W drvInfoData = { sizeof(drvInfoData) };
     771#endif
    765772    if (!SetupDiEnumDriverInfoW(hDevInfo, NULL, SPDIT_CLASSDRIVER, 0, &drvInfoData))
    766773        return ErrorMsgLastErr("SetupDiEnumDriverInfoW");
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