Changeset 52592 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Sep 3, 2014 8:23:24 PM (10 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
r52134 r52592 306 306 307 307 # 308 # NetAdp6Uninstall 309 # 310 PROGRAMS.win += NetAdp6Uninstall 311 NetAdp6Uninstall_TEMPLATE = VBOXR3STATIC 312 NetAdp6Uninstall_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL 313 NetAdp6Uninstall_SOURCES = win/tools/VBoxNetAdpUninstall.cpp 314 NetAdp6Uninstall_DEFS += NDIS60=1 315 NetAdp6Uninstall_LIBS = \ 316 $(WinNetConfig_1_TARGET) \ 317 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \ 318 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \ 319 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \ 320 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib 321 322 # 308 323 # NetLwfInstall 309 324 # … … 437 452 endif # ifdef VBOX_SIGNING_MODE 438 453 439 ifdef VBOX_WITH_NDIS6440 454 # 441 455 # VBoxNetAdp6.sys - The VirtualBox Adapter miniport driver. … … 494 508 495 509 endif # ifdef VBOX_SIGNING_MODE 496 497 endif # ifdef VBOX_WITH_NDIS6498 510 499 511 endif #ifeq ($(KBUILD_TARGET), win) -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r51908 r52592 2390 2390 2391 2391 #define DRIVERHWID _T("sun_VBoxNetAdp") 2392 #define DRIVERHWID_NDIS6 _T("sun_VBoxNetAdp6") 2392 2393 2393 2394 #define SetErrBreak(strAndArgs) \ … … 2546 2547 t += _tcslen (t) + 1) 2547 2548 { 2548 if (!_tcsicmp (DRIVERHWID, t) )2549 if (!_tcsicmp (DRIVERHWID, t) || !_tcsicmp (DRIVERHWID_NDIS6, t)) 2549 2550 { 2550 2551 /* get the device instance ID */ … … 2603 2604 } 2604 2605 2605 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinUpdateHostOnlyNetworkInterface(LPCWSTR pcsxwInf, BOOL *pbRebootRequired )2606 { 2607 return VBoxDrvCfgDrvUpdate( DRIVERHWID, pcsxwInf, pbRebootRequired);2606 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinUpdateHostOnlyNetworkInterface(LPCWSTR pcsxwInf, BOOL *pbRebootRequired, LPCWSTR pcsxwId) 2607 { 2608 return VBoxDrvCfgDrvUpdate(pcsxwId, pcsxwInf, pbRebootRequired); 2608 2609 } 2609 2610 … … 2766 2767 while (t && *t && t < (TCHAR *) &detailBuf [RT_ELEMENTS(detailBuf)]) 2767 2768 { 2768 if (!_tcsicmp(t, DRIVERHWID) )2769 if (!_tcsicmp(t, DRIVERHWID) || !_tcsicmp(t, DRIVERHWID_NDIS6)) 2769 2770 break; 2770 2771 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/nobj/VBoxNetFltNobj.cpp
r38738 r52592 201 201 if (hr == S_OK) 202 202 { 203 if (!_wcsnicmp(pDevId, L"sun_VBoxNetAdp", sizeof(L"sun_VBoxNetAdp")/2)) 203 if (!_wcsnicmp(pDevId, L"sun_VBoxNetAdp", sizeof(L"sun_VBoxNetAdp")/2) || 204 !_wcsnicmp(pDevId, L"sun_VBoxNetAdp6", sizeof(L"sun_VBoxNetAdp6")/2)) 204 205 { 205 206 *pbShouldBind = false; -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/tools/VBoxNetAdpInstall.cpp
r52183 r52592 24 24 #ifdef NDIS60 25 25 #define VBOX_NETADP_INF L"VBoxNetAdp6.inf" 26 #define VBOX_NETADP_HWID L"sun_VBoxNetAdp6" 26 27 #else /* !NDIS60 */ 27 28 #define VBOX_NETADP_INF L"VBoxNetAdp.inf" 29 #define VBOX_NETADP_HWID L"sun_VBoxNetAdp" 28 30 #endif /* !NDIS60 */ 29 31 … … 106 108 if (SUCCEEDED(hr)) 107 109 { 108 hr = VBoxNetCfgWinRemoveAllNetDevicesOfId( L"sun_VBoxNetAdp");109 if (SUCCEEDED(hr)) 110 { 111 hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, L"Net", L"sun_VBoxNetAdp", 0/* could be SUOI_FORCEDELETE */);110 hr = VBoxNetCfgWinRemoveAllNetDevicesOfId(VBOX_NETADP_HWID); 111 if (SUCCEEDED(hr)) 112 { 113 hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, L"Net", VBOX_NETADP_HWID, 0/* could be SUOI_FORCEDELETE */); 112 114 if (SUCCEEDED(hr)) 113 115 { … … 139 141 { 140 142 BOOL fRebootRequired = FALSE; 141 hr = VBoxNetCfgWinUpdateHostOnlyNetworkInterface(VBOX_NETADP_INF, &fRebootRequired );143 hr = VBoxNetCfgWinUpdateHostOnlyNetworkInterface(VBOX_NETADP_INF, &fRebootRequired, VBOX_NETADP_HWID); 142 144 if (SUCCEEDED(hr)) 143 145 { … … 168 170 if (SUCCEEDED(hr)) 169 171 { 170 hr = VBoxNetCfgWinPropChangeAllNetDevicesOfId( L"sun_VBoxNetAdp", VBOXNECTFGWINPROPCHANGE_TYPE_DISABLE);172 hr = VBoxNetCfgWinPropChangeAllNetDevicesOfId(VBOX_NETADP_HWID, VBOXNECTFGWINPROPCHANGE_TYPE_DISABLE); 171 173 if (SUCCEEDED(hr)) 172 174 { … … 195 197 if (SUCCEEDED(hr)) 196 198 { 197 hr = VBoxNetCfgWinPropChangeAllNetDevicesOfId( L"sun_VBoxNetAdp", VBOXNECTFGWINPROPCHANGE_TYPE_ENABLE);199 hr = VBoxNetCfgWinPropChangeAllNetDevicesOfId(VBOX_NETADP_HWID, VBOXNECTFGWINPROPCHANGE_TYPE_ENABLE); 198 200 if (SUCCEEDED(hr)) 199 201 { -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/tools/VBoxNetAdpUninstall.cpp
r44529 r52592 22 22 #include <devguid.h> 23 23 24 #ifdef NDIS60 25 #define VBOX_NETADP_HWID L"sun_VBoxNetAdp6" 26 #else /* !NDIS60 */ 27 #define VBOX_NETADP_HWID L"sun_VBoxNetAdp" 28 #endif /* !NDIS60 */ 24 29 25 30 static VOID winNetCfgLogger (LPCSTR szString) … … 38 43 if(hr == S_OK) 39 44 { 40 hr = VBoxNetCfgWinRemoveAllNetDevicesOfId( L"sun_VBoxNetAdp");45 hr = VBoxNetCfgWinRemoveAllNetDevicesOfId(VBOX_NETADP_HWID); 41 46 if(hr == S_OK) 42 47 { 43 hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, L"Net", L"sun_VBoxNetAdp", 0/* could be SUOI_FORCEDELETE */);48 hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, L"Net", VBOX_NETADP_HWID, 0/* could be SUOI_FORCEDELETE */); 44 49 if(hr == S_OK) 45 50 {
Note:
See TracChangeset
for help on using the changeset viewer.