VirtualBox

Ignore:
Timestamp:
Oct 13, 2014 10:42:54 AM (10 years ago)
Author:
vboxsync
Message:

pr7489. Fixed RemoveHostOnlyInterfaces(). Function RemoveHostOnlyInterfaces() resumes deleting driver packages and inf files (not only devices) related to Host-only adapters again. UninstallNetAdp deletes Host-only driver packages(not devices) only. RemoveHostOnlyInterfaces is used during uninstallation, UninstallNetAdp is used during upgrade.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp

    r52824 r53038  
    548548        case VBOXNECTFGWINPROPCHANGE_TYPE_DISABLE:
    549549            PcParams.StateChange = DICS_DISABLE;
     550            NonStandardLogFlow(("vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback: Change type (DICS_DISABLE): %d\n", pPc->enmPcType));
    550551            break;
    551552        case VBOXNECTFGWINPROPCHANGE_TYPE_ENABLE:
    552553            PcParams.StateChange = DICS_ENABLE;
     554            NonStandardLogFlow(("vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback: Change type (DICS_ENABLE): %d\n", pPc->enmPcType));
    553555            break;
    554556        default:
     
    684686            if (cCurId >= cPnPId)
    685687            {
     688                NonStandardLogFlow(("!wcsnicmp(pCurId = (%S), pwszPnPId = (%S), cPnPId = (%d))", pCurId, pwszPnPId, cPnPId));
     689
    686690                pCurId += cCurId - cPnPId;
    687691                if (!wcsnicmp(pCurId, pwszPnPId, cPnPId))
     
    723727    Pc.enmPcType = enmPcType;
    724728    Pc.hr = S_OK;
     729    NonStandardLogFlow(("Calling VBoxNetCfgWinEnumNetDevices with lpszPnPId =(%S) and vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback", lpszPnPId));
     730
    725731    HRESULT hr = VBoxNetCfgWinEnumNetDevices(lpszPnPId, vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback, &Pc);
    726732    if (!SUCCEEDED(hr))
     
    20692075static HRESULT vboxNetCfgWinNetAdpUninstall(IN INetCfg *pNc, DWORD InfRmFlags)
    20702076{
    2071     INetCfgComponent *pNcc = NULL;
    2072     HRESULT hr = pNc->FindComponent(VBOXNETCFGWIN_NETADP_ID, &pNcc);
    2073     if (hr == S_OK)
    2074     {
    2075         NonStandardLog("NetAdp is installed currently, uninstalling ...\n");
    2076 
    2077         hr = VBoxNetCfgWinUninstallComponent(pNc, pNcc);
    2078         NonStandardLogFlow(("NetAdp component uninstallation ended with hr (0x%x)\n", hr));
    2079 
    2080         pNcc->Release();
    2081     }
    2082     else if (hr == S_FALSE)
    2083     {
    2084         NonStandardLog("NetAdp is not installed currently\n");
    2085     }
    2086     else
    2087     {
    2088         NonStandardLogFlow(("FindComponent failed, hr (0x%x)\n", hr));
    2089     }
     2077    HRESULT hr = S_OK;
     2078    NonStandardLog("Finding NetAdp driver package and trying to uninstall it ...\n");
    20902079
    20912080    VBoxDrvCfgInfUninstallAllF(L"Net", VBOXNETCFGWIN_NETADP_ID, InfRmFlags);
    2092 
     2081    NonStandardLog("NetAdp is not installed currently\n");
    20932082    return hr;
    20942083}
     
    20962085VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetAdpUninstall(IN INetCfg *pNc)
    20972086{
    2098     return vboxNetCfgWinNetAdpUninstall(pNc, 0);
     2087    return vboxNetCfgWinNetAdpUninstall(pNc, SUOI_FORCEDELETE);
    20992088}
    21002089
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