VirtualBox

Ignore:
Timestamp:
Sep 23, 2014 10:37:15 AM (10 years ago)
Author:
vboxsync
Message:

pr7489. Added uninstallation inf files and driver packages related to Host-Only adapter (VBoxNetAdp)

File:
1 edited

Legend:

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

    r52592 r52824  
    20642064    }
    20652065    return hr;
     2066}
     2067
     2068#define VBOXNETCFGWIN_NETADP_ID L"sun_VBoxNetAdp"
     2069static HRESULT vboxNetCfgWinNetAdpUninstall(IN INetCfg *pNc, DWORD InfRmFlags)
     2070{
     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    }
     2090
     2091    VBoxDrvCfgInfUninstallAllF(L"Net", VBOXNETCFGWIN_NETADP_ID, InfRmFlags);
     2092
     2093    return hr;
     2094}
     2095
     2096VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetAdpUninstall(IN INetCfg *pNc)
     2097{
     2098    return vboxNetCfgWinNetAdpUninstall(pNc, 0);
    20662099}
    20672100
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