VirtualBox

Changeset 53038 in vbox for trunk/src/VBox/HostDrivers/win


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/win/cfg/VBoxDrvCfg.cpp

    r52241 r53038  
    352352    LPWSTR lpszPnPId;
    353353    HRESULT hr = vboxDrvCfgInfQueryModelsSectionName(hInf, &lpszModels, NULL);
     354    NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgInfQueryModelsSectionName returned lpszModels = (%S)", lpszModels));
    354355    if (hr != S_OK)
    355356    {
     
    367368    {
    368369        hr = vboxDrvCfgInfQueryKeyValue(&InfCtx, 2, &lpszPnPId, NULL);
     370        NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgRegQueryKeyValue for models (%S) returned lpszPnPId (%S) \n", lpszModels, lpszPnPId));
     371
    369372        if (hr != S_OK)
    370373        {
     
    488491                                {
    489492                                    list.add(pDrvDetail->InfFileName);
     493                                    NonStandardLogRelCrap((__FUNCTION__": %S added to list", pDrvDetail->InfFileName));
    490494                                }
    491495                            }
     
    505509                    if (dwErr == ERROR_NO_MORE_ITEMS)
    506510                    {
     511                        NonStandardLogRelCrap((__FUNCTION__": dwErr == ERROR_NO_MORE_ITEMS -> search was finished "));
    507512                        break;
    508513                    }
     
    557562    VBoxDrvCfgStringList list(128);
    558563    HRESULT hr = vboxDrvCfgCollectInfsSetupDi(pGuidClass, lpszPnPId, list);
     564    NonStandardLogRelCrap((__FUNCTION__": vboxDrvCfgCollectInfsSetupDi returned %d devices with PnPId %S and class name %S", list.size(), lpszPnPId, lpszClassName));
    559565    if (hr == S_OK)
    560566    {
     
    575581
    576582            vboxDrvCfgInfEnumerationCallback(pRel, &Context);
    577 //            NonStandardLogRelCrap(("inf : %S\n", list.get(i)));
     583            NonStandardLogRelCrap((__FUNCTION__": inf = %S\n", list.get(i)));
    578584        }
    579585    }
     
    633639    PINFENUM_CONTEXT pContext = (PINFENUM_CONTEXT)pCtxt;
    634640    DWORD dwErr;
    635 //    NonStandardLogRelCrap(("vboxDrvCfgInfEnumerationCallback: pFileName (%S)\n", pFileName));
    636 
     641    NonStandardLogRelCrap((__FUNCTION__": lpszFileName (%S)\n", lpszFileName));
     642    NonStandardLogRelCrap((__FUNCTION__ ": pContext->InfInfo.lpszClassName = (%S)", pContext->InfInfo.lpszClassName));
    637643    HINF hInf = SetupOpenInfFileW(lpszFileName, pContext->InfInfo.lpszClassName, INF_STYLE_WIN4, NULL /*__in PUINT ErrorLine */);
    638644    if (hInf == INVALID_HANDLE_VALUE)
     
    644650            NonStandardLogCrap((__FUNCTION__ ": SetupOpenInfFileW err dwErr=%ld\n", dwErr));
    645651        }
    646 
     652        else
     653        {
     654            NonStandardLogCrap((__FUNCTION__ ": dwErr == ERROR_CLASS_MISMATCH"));
     655        }
    647656        return true;
    648657    }
     
    650659    LPWSTR lpszPnPId;
    651660    HRESULT hr = vboxDrvCfgInfQueryFirstPnPId(hInf, &lpszPnPId);
     661    NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgInfQueryFirstPnPId returned lpszPnPId = (%S)", lpszPnPId));
     662    NonStandardLogRelCrap((__FUNCTION__ ": pContext->InfInfo.lpszPnPId = (%S)", pContext->InfInfo.lpszPnPId));
    652663    if (hr == S_OK)
    653664    {
     
    694705        Context.Flags = Flags;
    695706        Context.hr = S_OK;
     707        NonStandardLogRelCrap((__FUNCTION__": Calling vboxDrvCfgEnumFiles(wszInfDirPath, vboxDrvCfgInfEnumerationCallback, &Context)"));
    696708        hr = vboxDrvCfgEnumFiles(wszInfDirPath, vboxDrvCfgInfEnumerationCallback, &Context);
    697709        NonStandardAssert(hr == S_OK);
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