Changeset 53038 in vbox for trunk/src/VBox/HostDrivers/win
- Timestamp:
- Oct 13, 2014 10:42:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/win/cfg/VBoxDrvCfg.cpp
r52241 r53038 352 352 LPWSTR lpszPnPId; 353 353 HRESULT hr = vboxDrvCfgInfQueryModelsSectionName(hInf, &lpszModels, NULL); 354 NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgInfQueryModelsSectionName returned lpszModels = (%S)", lpszModels)); 354 355 if (hr != S_OK) 355 356 { … … 367 368 { 368 369 hr = vboxDrvCfgInfQueryKeyValue(&InfCtx, 2, &lpszPnPId, NULL); 370 NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgRegQueryKeyValue for models (%S) returned lpszPnPId (%S) \n", lpszModels, lpszPnPId)); 371 369 372 if (hr != S_OK) 370 373 { … … 488 491 { 489 492 list.add(pDrvDetail->InfFileName); 493 NonStandardLogRelCrap((__FUNCTION__": %S added to list", pDrvDetail->InfFileName)); 490 494 } 491 495 } … … 505 509 if (dwErr == ERROR_NO_MORE_ITEMS) 506 510 { 511 NonStandardLogRelCrap((__FUNCTION__": dwErr == ERROR_NO_MORE_ITEMS -> search was finished ")); 507 512 break; 508 513 } … … 557 562 VBoxDrvCfgStringList list(128); 558 563 HRESULT hr = vboxDrvCfgCollectInfsSetupDi(pGuidClass, lpszPnPId, list); 564 NonStandardLogRelCrap((__FUNCTION__": vboxDrvCfgCollectInfsSetupDi returned %d devices with PnPId %S and class name %S", list.size(), lpszPnPId, lpszClassName)); 559 565 if (hr == S_OK) 560 566 { … … 575 581 576 582 vboxDrvCfgInfEnumerationCallback(pRel, &Context); 577 // NonStandardLogRelCrap(("inf :%S\n", list.get(i)));583 NonStandardLogRelCrap((__FUNCTION__": inf = %S\n", list.get(i))); 578 584 } 579 585 } … … 633 639 PINFENUM_CONTEXT pContext = (PINFENUM_CONTEXT)pCtxt; 634 640 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)); 637 643 HINF hInf = SetupOpenInfFileW(lpszFileName, pContext->InfInfo.lpszClassName, INF_STYLE_WIN4, NULL /*__in PUINT ErrorLine */); 638 644 if (hInf == INVALID_HANDLE_VALUE) … … 644 650 NonStandardLogCrap((__FUNCTION__ ": SetupOpenInfFileW err dwErr=%ld\n", dwErr)); 645 651 } 646 652 else 653 { 654 NonStandardLogCrap((__FUNCTION__ ": dwErr == ERROR_CLASS_MISMATCH")); 655 } 647 656 return true; 648 657 } … … 650 659 LPWSTR lpszPnPId; 651 660 HRESULT hr = vboxDrvCfgInfQueryFirstPnPId(hInf, &lpszPnPId); 661 NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgInfQueryFirstPnPId returned lpszPnPId = (%S)", lpszPnPId)); 662 NonStandardLogRelCrap((__FUNCTION__ ": pContext->InfInfo.lpszPnPId = (%S)", pContext->InfInfo.lpszPnPId)); 652 663 if (hr == S_OK) 653 664 { … … 694 705 Context.Flags = Flags; 695 706 Context.hr = S_OK; 707 NonStandardLogRelCrap((__FUNCTION__": Calling vboxDrvCfgEnumFiles(wszInfDirPath, vboxDrvCfgInfEnumerationCallback, &Context)")); 696 708 hr = vboxDrvCfgEnumFiles(wszInfDirPath, vboxDrvCfgInfEnumerationCallback, &Context); 697 709 NonStandardAssert(hr == S_OK);
Note:
See TracChangeset
for help on using the changeset viewer.