Changeset 107362 in vbox for trunk/src/VBox/Main/src-all/win
- Timestamp:
- Dec 18, 2024 3:40:40 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 166400
- Location:
- trunk/src/VBox/Main/src-all/win
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c ¶
r107098 r107362 91 91 * Selects the proxy stub DLL based on 32-on-64-bit and host OS version. 92 92 * 93 * The legacy DLL covers 64-bit pre Windows 7 versions of Windows. W2K3-amd64 94 * has trouble parsing the result when MIDL /target NT51 or higher. Vista and 95 * windows server 2008 seems to have trouble with newer IDL compilers. 93 * Note! We used to have a separate version of the 64-bit DLL for pre-win7. 96 94 */ 97 95 #if ARCH_BITS == 64 || defined(VBOX_IN_32_ON_64_MAIN_API) … … 100 98 # define VBPS_PROXY_STUB_FILE(a_fIs32On64) VBPS_PROXY_STUB_FILE_SUB() 101 99 #endif 102 #define VBPS_PROXY_STUB_FILE_SUB() \ 103 ( RT_MAKE_U64(((PKUSER_SHARED_DATA)MM_SHARED_USER_DATA_VA)->NtMinorVersion, \ 104 ((PKUSER_SHARED_DATA)MM_SHARED_USER_DATA_VA)->NtMajorVersion) >= RT_MAKE_U64(1/*Lo*/,6/*Hi*/) \ 105 ? "VBoxProxyStub.dll" : "VBoxProxyStubLegacy.dll" ) 100 #define VBPS_PROXY_STUB_FILE_SUB() "VBoxProxyStub.dll" 106 101 107 102 /** For use with AssertLogRel except a_Expr1 from assertions but not LogRel. */ -
TabularUnified trunk/src/VBox/Main/src-all/win/comregister.cmd ¶
r106061 r107362 113 113 114 114 REM 115 REM Figure out the Windows version as the proxy stub requires 6.0 or later (at least for 64-bit).116 REM117 set WinVer=Version 4.0.1381118 set WinVerMajor=4119 set WinVerMinor=0120 set WinVerBuild=1381121 for /f "tokens=2 delims=[]" %%a in ('ver') do set WinVer=%%a122 for /f "tokens=2,3,4 delims=. " %%a in ("%WinVer%") do (123 set WinVerMajor=%%a124 set WinVerMinor=%%b125 set WinVerBuild=%%c126 )127 REM echo WinVerMajor=%WinVerMajor% WinVerMinor=%WinVerMinor% WinVerBuild=%WinVerBuild% WinVer=%WinVer%128 129 REM130 115 REM Parse arguments. 131 116 REM … … 182 167 REM Unregister all first, then register them. The order matters here. 183 168 :register_amd64 184 if "%WinVerMajor%" == "5" goto register_amd64_legacy185 if not "%WinVerMajor%" == "6" goto register_amd64_not_legacy186 if not "%WinVerMinor%" == "0" goto register_amd64_not_legacy187 :register_amd64_legacy188 set s64BitProxyStub=VBoxProxyStubLegacy.dll189 goto register_amd64_begin190 :register_amd64_not_legacy191 set s64BitProxyStub=VBoxProxyStub.dll192 :register_amd64_begin193 echo s64BitProxyStub=%s64BitProxyStub%194 169 @echo on 195 170 "%_VBOX_DIR%VBoxSVC.exe" /UnregServer … … 197 172 %windir%\system32\regsvr32 /s /u "%_VBOX_DIR%VBoxC.dll" 198 173 %windir%\syswow64\regsvr32 /s /u "%_VBOX_DIR%x86\VBoxClient-x86.dll" 199 %windir%\system32\regsvr32 /s /u "%_VBOX_DIR% %s64BitProxyStub%"174 %windir%\system32\regsvr32 /s /u "%_VBOX_DIR%VBoxProxyStub.dll" 200 175 %windir%\syswow64\regsvr32 /s /u "%_VBOX_DIR%x86\VBoxProxyStub-x86.dll" 201 176 if %fUninstallOnly% == 1 goto end … … 205 180 %windir%\syswow64\regsvr32 /s "%_VBOX_DIR%x86\VBoxClient-x86.dll" 206 181 if %fNoProxy% == 1 goto end 207 if exist "%_VBOX_DIR% %s64BitProxyStub%" %windir%\system32\regsvr32 /s "%_VBOX_DIR%%s64BitProxyStub%"182 if exist "%_VBOX_DIR%VBoxProxyStub.dll" %windir%\system32\regsvr32 /s "%_VBOX_DIR%VBoxProxyStub.dll" 208 183 if exist "%_VBOX_DIR%x86\VBoxProxyStub-x86.dll" %windir%\syswow64\regsvr32 /s "%_VBOX_DIR%x86\VBoxProxyStub-x86.dll" 209 184 @echo off
Note:
See TracChangeset
for help on using the changeset viewer.