Changeset 51480 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg
- Timestamp:
- May 30, 2014 9:10:39 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94072
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r51181 r51480 2042 2042 apInfFullPaths, 2043 2043 cInfFullPaths, 2044 NULL); 2045 } 2046 return hr; 2047 } 2048 2049 /* 2050 * Use the same id as does the old implementation for NDIS 5 2051 * #define VBOXNETCFGWIN_NETLWF_ID L"oracle_VBoxNetLwf" 2052 */ 2053 #define VBOXNETCFGWIN_NETLWF_ID L"sun_VBoxNetFlt" 2054 2055 static HRESULT vboxNetCfgWinNetLwfUninstall(IN INetCfg *pNc, DWORD InfRmFlags) 2056 { 2057 INetCfgComponent * pNcc = NULL; 2058 HRESULT hr = pNc->FindComponent(VBOXNETCFGWIN_NETLWF_ID, &pNcc); 2059 if (hr == S_OK) 2060 { 2061 NonStandardLog("NetLwf is installed currently, uninstalling ...\n"); 2062 2063 hr = VBoxNetCfgWinUninstallComponent(pNc, pNcc); 2064 2065 pNcc->Release(); 2066 } 2067 else if (hr == S_FALSE) 2068 { 2069 NonStandardLog("NetLwf is not installed currently\n"); 2070 hr = S_OK; 2071 } 2072 else 2073 { 2074 NonStandardLogFlow(("FindComponent failed, hr (0x%x)\n", hr)); 2075 hr = S_OK; 2076 } 2077 2078 VBoxDrvCfgInfUninstallAllF(L"NetService", VBOXNETCFGWIN_NETLWF_ID, InfRmFlags); 2079 2080 return hr; 2081 } 2082 2083 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetLwfUninstall(IN INetCfg *pNc) 2084 { 2085 return vboxNetCfgWinNetLwfUninstall(pNc, 0); 2086 } 2087 2088 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetLwfInstall(IN INetCfg *pNc, 2089 IN LPCWSTR const pInfFullPath) 2090 { 2091 HRESULT hr = vboxNetCfgWinNetLwfUninstall(pNc, SUOI_FORCEDELETE); 2092 if (SUCCEEDED(hr)) 2093 { 2094 NonStandardLog("NetLwf will be installed ...\n"); 2095 hr = vboxNetCfgWinInstallInfAndComponent(pNc, VBOXNETCFGWIN_NETLWF_ID, 2096 &GUID_DEVCLASS_NETSERVICE, 2097 &pInfFullPath, 2098 1, 2044 2099 NULL); 2045 2100 }
Note:
See TracChangeset
for help on using the changeset viewer.