Changeset 53038 in vbox for trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
- Timestamp:
- Oct 13, 2014 10:42:54 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96525
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r52824 r53038 503 503 static MSIHANDLE g_hCurrentModule = NULL; 504 504 505 static VOID vboxDrvLoggerCallback(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char * msg, void * pvContext) 506 { 507 switch (enmSeverity) 508 { 509 case VBOXDRVCFG_LOG_SEVERITY_FLOW: 510 case VBOXDRVCFG_LOG_SEVERITY_REGULAR: 511 break; 512 case VBOXDRVCFG_LOG_SEVERITY_REL: 513 if (g_hCurrentModule) 514 logString(g_hCurrentModule, (LPCSTR)msg); 515 break; 516 default: 517 break; 518 } 519 } 520 505 521 static VOID netCfgLoggerCallback(LPCSTR szString) 506 522 { … … 528 544 529 545 VBoxNetCfgWinSetLogging((LOG_ROUTINE)netCfgLoggerCallback); 546 /* uncomment next line if you want to add logging information from VBoxDrvCfg.cpp */ 547 // VBoxDrvCfgLoggerSet(vboxDrvLoggerCallback, NULL); 530 548 } 531 549 … … 1083 1101 if (SUCCEEDED(hr)) 1084 1102 { 1085 hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, pwszId, L"Net", 0/* could be SUOI_FORCEDELETE */);1103 hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, L"Net", pwszId, SUOI_FORCEDELETE/* could be SUOI_FORCEDELETE */); 1086 1104 if (FAILED(hr)) 1087 1105 { 1088 1106 logStringW(hModule, L"RemoveHostOnlyInterfaces: NetAdp uninstalled successfully, but failed to remove INF files"); 1089 1107 } 1108 else 1109 logStringW(hModule, L"RemoveHostOnlyInterfaces: NetAdp uninstalled successfully"); 1110 1090 1111 } 1091 1112 else … … 1172 1193 if (SUCCEEDED(hr)) 1173 1194 { 1174 hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, pwszId, L"Net", 0/* could be SUOI_FORCEDELETE */); 1175 if (FAILED(hr)) 1176 logStringW(hModule, L"StopHostOnlyInterfaces: VBoxDrvCfgInfUninstallAllSetupDi failed, hr = 0x%x", hr); 1195 logStringW(hModule, L"StopHostOnlyInterfaces: Disabling host interfaces was successful, hr = 0x%x", hr); 1177 1196 } 1178 1197 else
Note:
See TracChangeset
for help on using the changeset viewer.