Lines Matching refs:hrc

245     HRESULT hrc = vbox->CheckFirmwarePresent(aFirmwareType, empty.raw(),
247 AssertComRCReturn(hrc, Global::vboxStatusCodeFromCOM(hrc));
494 HRESULT hrc = pMachine->GetExtraData(bstrName.raw(), bstrValue.asOutParam());
495 if (FAILED(hrc))
496 throw hrc;
499 hrc = pVirtualBox->GetExtraData(bstrName.raw(), bstrValue.asOutParam());
500 if (FAILED(hrc))
501 throw hrc;
529 HRESULT hrc;
531 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR)
541 hrc = pMachine->GetMediumAttachmentsOfController(controllerName.raw(),
555 hrc = pMediumAtt->COMGETTER(Port)(&lPortNum); H();
556 if (SUCCEEDED(hrc))
559 hrc = pMediumAtt->COMGETTER(Type)(&lType); H();
560 if (SUCCEEDED(hrc) && lType == DeviceType_HardDisk)
571 hrc = pMediumAtt->COMGETTER(HotPluggable)(&fHotPluggable); H();
572 if (SUCCEEDED(hrc))
609 HRESULT hrc = S_OK;
615 hrc = aMachine->COMGETTER(PCIDeviceAssignments)(ComSafeArrayAsOutParam(assignments));
616 if ( hrc != S_OK
618 return hrc;
668 hrc = pBusMgr->assignPCIDevice("ich9pcibridge", pInst);
721 hrc = pBusMgr->assignHostPCIDevice("pciraw", pInst, HostPCIAddress, GuestPCIAddress, true);
722 if (hrc != S_OK)
723 return hrc;
741 return hrc;
830 HRESULT hrc;
845 hrc = HRESULT_FROM_WIN32(err);
847 hrc, hrc, err));
862 hrc = HRESULT_FROM_WIN32(err);
864 hrc, hrc, err));
876 hrc = HRESULT_FROM_WIN32(err);
878 hrc, hrc, err));
982 HRESULT hrc;
986 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR)
992 hrc = pMachine->COMGETTER(Parent)(virtualBox.asOutParam()); H();
995 hrc = virtualBox->COMGETTER(Host)(host.asOutParam()); H();
998 hrc = virtualBox->COMGETTER(SystemProperties)(systemProperties.asOutParam()); H();
1001 hrc = pMachine->COMGETTER(BIOSSettings)(biosSettings.asOutParam()); H();
1003 hrc = pMachine->COMGETTER(HardwareUUID)(bstr.asOutParam()); H();
1009 hrc = pMachine->COMGETTER(MemorySize)(&cRamMBs); H();
1020 hrc = pMachine->GetEffectiveParavirtProvider(&paravirtProvider); H();
1023 hrc = pMachine->COMGETTER(ChipsetType)(&chipsetType); H();
1036 hrc = pMachine->COMGETTER(CPUCount)(&cCpus); H();
1039 hrc = pMachine->COMGETTER(CPUExecutionCap)(&ulCpuExecutionCap); H();
1042 hrc = pMachine->COMGETTER(OSTypeId)(osTypeId.asOutParam()); H();
1046 hrc = biosSettings->COMGETTER(IOAPICEnabled)(&fIOAPIC); H();
1049 hrc = virtualBox->GetGuestOSType(osTypeId.raw(), guestOSType.asOutParam()); H();
1052 hrc = guestOSType->COMGETTER(FamilyId)(guestTypeFamilyId.asOutParam()); H();
1056 hrc = systemProperties->GetMaxNetworkAdapters(chipsetType, &maxNetworkAdapters); H();
1073 hrc = pMachine->COMGETTER(Name)(bstr.asOutParam()); H();
1099 hrc = pMachine->COMGETTER(PageFusionEnabled)(&fPageFusion); H();
1102 hrc = pMachine->COMGETTER(MemoryBalloonSize)(&ulBalloonSize); H();
1121 hrc = pMachine->GetCPUIDLeaf(uLeaf, &ulEax, &ulEbx, &ulEcx, &ulEdx);
1122 if (SUCCEEDED(hrc))
1132 else if (hrc != E_INVALIDARG) H();
1187 hrc = pMachine->GetCPUProperty(CPUPropertyType_Synthetic, &fSyntheticCpu); H();
1192 hrc = pMachine->GetCPUProperty(CPUPropertyType_PAE, &fEnablePAE); H();
1200 hrc = host->GetProcessorFeature(ProcessorFeature_HWVirtEx, &fSupportsHwVirtEx); H();
1203 hrc = pMachine->GetCPUProperty(CPUPropertyType_LongMode, &fIsGuest64Bit); H();
1207 hrc = host->GetProcessorFeature(ProcessorFeature_LongMode, &fSupportsLongMode); H();
1221 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Enabled, &fHMEnabled); H();
1259 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Force, &fHMForced); H();
1271 hrc = pMachine->GetCPUProperty(CPUPropertyType_TripleFaultReset, &fTripleFaultReset); H();
1305 hrc = systemProperties->COMGETTER(ExclusiveHwVirt)(&fHMExclusive); H();
1310 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_NestedPaging, &fEnableNestedPaging); H();
1315 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_LargePages, &fEnableLargePages); H();
1320 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_VPID, &fEnableVPID); H();
1325 hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_UnrestrictedExecution, &fEnableUX); H();
1402 hrc = pMachine->COMGETTER(IOCacheSize)(&ioCacheSize); H();
1414 hrc = pMachine->COMGETTER(BandwidthControl)(bwCtrl.asOutParam()); H();
1416 hrc = bwCtrl->GetAllBandwidthGroups(ComSafeArrayAsOutParam(bwGroups)); H();
1435 hrc = bwGroups[i]->COMGETTER(Name)(strName.asOutParam()); H();
1436 hrc = bwGroups[i]->COMGETTER(Type)(&enmType); H();
1437 hrc = bwGroups[i]->COMGETTER(MaxBytesPerSec)(&cMaxBytesPerSec); H();
1500 hrc = biosSettings->COMGETTER(TimeOffset)(&timeOffset); H();
1546 hrc = pBusMgr->assignPCIDevice("ich9pcibridge", pInst); H();
1550 hrc = pBusMgr->assignPCIDevice("ich9pcibridge", pInst); H();
1554 hrc = i_attachRawPCIDevices(pUVM, pBusMgr, pDevices); H();
1567 hrc = pMachine->COMGETTER(HPETEnabled)(&fHPETEnabled); H();
1612 hrc = pBusMgr->assignPCIDevice("lpc", pInst); H();
1640 hrc = pMachine->COMGETTER(PointingHIDType)(&aPointingHID); H();
1700 hrc = pMachine->COMGETTER(RTCUseUTC)(&fRTCUseUTC); H();
1707 hrc = pMachine->COMGETTER(GraphicsControllerType)(&enmGraphicsController); H();
1731 hrc = pMachine->COMGETTER(FirmwareType)(&eFwType); H();
1754 hrc = biosSettings->COMGETTER(PXEDebugEnabled)(&fPXEDebug); H();
1767 hrc = pMachine->GetBootOrder(pos, &bootDevice); H();
1882 hrc = pMachine->COMGETTER(USBControllers)(ComSafeArrayAsOutParam(usbCtrls)); H();
1922 hrc = pBusMgr->assignPCIDevice("usb-ohci", pInst); H();
1952 hrc = pBusMgr->assignPCIDevice("usb-ehci", pInst); H();
1998 hrc = pBusMgr->assignPCIDevice("usb-xhci", pInst); H();
2054 hrc = pMachine->COMGETTER(EmulatedUSBCardReaderEnabled)(&aEmulatedUSBCardReaderEnabled); H();
2115 hrc = pMachine->COMGETTER(KeyboardHIDType)(&aKbdHID); H();
2140 hrc = pMachine->COMGETTER(StorageControllers)(ComSafeArrayAsOutParam(ctrls)); H();
2197 hrc = pBusMgr->assignPCIDevice("lsilogic", pCtlInst); H();
2208 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H();
2221 hrc = pBusMgr->assignPCIDevice("buslogic", pCtlInst); H();
2232 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H();
2245 hrc = pBusMgr->assignPCIDevice("ahci", pCtlInst); H();
2248 hrc = ctrls[i]->COMGETTER(PortCount)(&cPorts); H();
2257 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigSata); H();
2275 hrc = pBusMgr->assignPCIDevice("piix3ide", pCtlInst); H();
2311 hrc = pBusMgr->assignPCIDevice("lsilogicsas", pCtlInst); H();
2323 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H();
2327 hrc = ctrls[i]->COMGETTER(PortCount)(&cPorts); H();
2364 hrc = pMachine->GetMediumAttachmentsOfController(controllerName.raw(),
2369 hrc = pMachine->COMGETTER(IOCacheEnabled)(&fBuiltinIOCache); H();
2419 hrc = pMachine->GetNetworkAdapter(ulInstance, networkAdapter.asOutParam()); H();
2421 hrc = networkAdapter->COMGETTER(Enabled)(&fEnabledNetAdapter); H();
2430 hrc = networkAdapter->COMGETTER(AdapterType)(&adapterType); H();
2494 hrc = pBusMgr->assignPCIDevice(pszAdapterName, pInst, PCIAddr); H();
2512 hrc = networkAdapter->COMGETTER(BootPriority)(&nic.mBootPrio); H();
2542 hrc = networkAdapter->COMGETTER(MACAddress)(macAddr.asOutParam()); H();
2566 hrc = networkAdapter->COMGETTER(CableConnected)(&fCableConnected); H();
2573 hrc = networkAdapter->COMGETTER(LineSpeed)(&ulLineSpeed); H();
2634 hrc = pMachine->GetSerialPort(ulInstance, serialPort.asOutParam()); H();
2637 hrc = serialPort->COMGETTER(Enabled)(&fEnabledSerPort); H();
2645 hrc = serialPort->COMGETTER(IRQ)(&ulIRQ); H();
2650 hrc = serialPort->COMGETTER(IOBase)(&ulIOBase); H();
2655 hrc = serialPort->COMGETTER(Server)(&fServer); H();
2656 hrc = serialPort->COMGETTER(Path)(bstr.asOutParam()); H();
2658 hrc = serialPort->COMGETTER(HostMode)(&eHostMode); H();
2704 hrc = pMachine->GetParallelPort(ulInstance, parallelPort.asOutParam()); H();
2708 hrc = parallelPort->COMGETTER(Enabled)(&fEnabledParPort); H();
2717 hrc = parallelPort->COMGETTER(IRQ)(&ulIRQ); H();
2720 hrc = parallelPort->COMGETTER(IOBase)(&ulIOBase); H();
2725 hrc = parallelPort->COMGETTER(Path)(bstr.asOutParam()); H();
2736 hrc = pBusMgr->assignPCIDevice("VMMDev", pInst); H();
2739 hrc = pMachine->COMGETTER(HardwareVersion)(hwVersion.asOutParam()); H();
2744 hrc = pMachine->COMGETTER(SnapshotFolder)(snapshotFolder.asOutParam()); H();
2778 hrc = pMachine->COMGETTER(AudioAdapter)(audioAdapter.asOutParam()); H();
2780 hrc = audioAdapter->COMGETTER(Enabled)(&fAudioEnabled); H();
2785 hrc = audioAdapter->COMGETTER(AudioController)(&audioController); H();
2794 hrc = pBusMgr->assignPCIDevice("ichac97", pInst); H();
2818 hrc = pBusMgr->assignPCIDevice("hda", pInst); H();
2833 hrc = audioAdapter->COMGETTER(AudioDriver)(&audioDriver); H();
2928 hrc = pMachine->COMGETTER(Name)(bstr.asOutParam()); H();
2956 hrc = pMachine->COMGETTER(ClipboardMode)(&mode); H();
2989 hrc = pMachine->GetExtraData(Bstr("HGCM/HostChannel").raw(),
2992 if ( hrc == S_OK
3011 hrc = pMachine->COMGETTER(DnDMode)(&enmMode); H();
3044 hrc = pMachine->COMGETTER(Accelerate3DEnabled)(&fEnabled3D); H();
3114 hrc = biosSettings->COMGETTER(ACPIEnabled)(&fACPI); H();
3126 hrc = pMachine->COMGETTER(CPUHotPlugEnabled)(&fCpuHotPlug); H();
3132 hrc = pBusMgr->assignPCIDevice("acpi", pInst); H();
3185 hrc = pMachine->GetCPUStatus(iCpuCurr, &fCpuAttached); H();
3205 hrc = pMachine->COMGETTER(SettingsFilePath)(bstr.asOutParam()); H();
3224 hrc = pMachine->COMGETTER(TracingEnabled)(&fTracingEnabled); H();
3228 hrc = pMachine->COMGETTER(TracingConfig)(bstr.asOutParam()); H();
3233 hrc = pMachine->COMGETTER(AllowTracingToAccessVM)(&fAllowTracingToAccessVM); H();
3245 AssertLogRelMsgFailedReturn(("hrc=%Rhrc\n", hrcXcpt), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR);
3334 HRESULT hrc = pVirtualBox->GetExtraDataKeys(ComSafeArrayAsOutParam(aGlobalExtraDataKeys));
3335 AssertMsg(SUCCEEDED(hrc), ("VirtualBox::GetExtraDataKeys failed with %Rhrc\n", hrc));
3340 hrc = pMachine->GetExtraDataKeys(ComSafeArrayAsOutParam(aMachineExtraDataKeys));
3341 AssertMsg(SUCCEEDED(hrc), ("Machine::GetExtraDataKeys failed with %Rhrc\n", hrc));
3371 hrc = pVirtualBox->GetExtraData(Bstr(strKey).raw(),
3374 hrc = pMachine->GetExtraData(Bstr(strKey).raw(),
3376 if (FAILED(hrc))
3377 LogRel(("Warning: Cannot get extra data key %s, rc = %Rhrc\n", strKey.c_str(), hrc));
3490 HRESULT hrc = pVirtualBox->GetExtraDataKeys(ComSafeArrayAsOutParam(aGlobalExtraDataKeys));
3491 AssertMsg(SUCCEEDED(hrc), ("VirtualBox::GetExtraDataKeys failed with %Rhrc\n", hrc));
3500 hrc = pVirtualBox->GetExtraData(Bstr(strKey).raw(),
3502 if (FAILED(hrc))
3513 HRESULT hrc = pMachine->GetExtraDataKeys(ComSafeArrayAsOutParam(aMachineExtraDataKeys));
3514 AssertMsg(SUCCEEDED(hrc), ("Machine::GetExtraDataKeys failed with %Rhrc\n", hrc));
3523 hrc = pMachine->GetExtraData(Bstr(strKey).raw(),
3525 if (FAILED(hrc))
3548 HRESULT hrc;
3552 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR)
3557 hrc = pBusMgr->assignPCIDevice(pcszDevice, pInst); H();
3560 hrc = ptrMachine->COMGETTER(VRAMSize)(&cVRamMBs); H();
3563 hrc = ptrMachine->COMGETTER(MonitorCount)(&cMonitorCount); H();
3579 hrc = i_getDisplay()->QueryFramebuffer(0, &pFramebuffer);
3580 if (SUCCEEDED(hrc) && pFramebuffer)
3585 hrc = pFramebuffer->COMGETTER(WinId)(&winId);
3590 hrc = ptrMachine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled); H();
3602 hrc = ptrMachine->GetExtraData(Bstr(szExtraDataKey).raw(), bstr.asOutParam()); H();
3613 hrc = i_getDisplay()->QueryFramebuffer(0, &pFramebuffer);
3614 if (SUCCEEDED(hrc) && pFramebuffer)
3616 hrc = pFramebuffer->COMGETTER(HeightReduction)(&ulHeightReduction); H();
3631 hrc = ptrBiosSettings->COMGETTER(LogoFadeIn)(&fFadeIn); H();
3634 hrc = ptrBiosSettings->COMGETTER(LogoFadeOut)(&fFadeOut); H();
3637 hrc = ptrBiosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime); H();
3640 hrc = ptrBiosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam()); H();
3648 hrc = ptrBiosSettings->COMGETTER(BootMenuMode)(&eBootMenuMode); H();
3729 HRESULT hrc;
3734 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR)
3737 hrc = pMediumAtt->COMGETTER(Device)(&lDev); H();
3739 hrc = pMediumAtt->COMGETTER(Port)(&lPort); H();
3741 hrc = pMediumAtt->COMGETTER(Type)(&lType); H();
3743 hrc = pMediumAtt->COMGETTER(NonRotational)(&fNonRotational); H();
3745 hrc = pMediumAtt->COMGETTER(Discard)(&fDiscard); H();
3749 hrc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); H();
3899 hrc = pMediumAtt->COMGETTER(Medium)(pMedium.asOutParam()); H();
3914 hrc = pMedium->COMGETTER(MediumFormat)(pMediumFormat.asOutParam()); H();
3917 hrc = pMediumFormat->COMGETTER(Capabilities)(ComSafeArrayAsOutParam(mediumFormatCap)); H();
3925 hrc = pMedium->COMGETTER(Location)(strFile.asOutParam()); H();
3929 hrc = pMachine->COMGETTER(SnapshotFolder)(strSnap.asOutParam()); H();
3947 hrc = pMedium->COMGETTER(LogicalSize)(&i64Size); H();
4088 hrc = pMedium->COMGETTER(HostDrive)(&fHostDrive); H();
4097 hrc = pMedium->COMGETTER(Location)(strFile.asOutParam()); H();
4108 hrc = pMediumAtt->COMGETTER(Passthrough)(&fPassthrough); H();
4112 hrc = pMediumAtt->COMGETTER(BandwidthGroup)(pBwGroup.asOutParam()); H();
4116 hrc = pBwGroup->COMGETTER(Name)(strBwGroup.asOutParam()); H();
4216 HRESULT hrc;
4222 AssertMsgReturnStmt(SUCCEEDED(hrc), ("hrc=%Rhrc\n", hrc), if (phrc) *phrc = hrc, Global::vboxStatusCodeFromCOM(hrc))
4229 hrc = pMedium->COMGETTER(HostDrive)(&fHostDrive); H();
4230 hrc = pMedium->COMGETTER(Type)(&mediumType); H();
4241 hrc = pMedium->COMGETTER(Location)(bstr.asOutParam()); H();
4251 hrc = pMedium->COMGETTER(Location)(bstr.asOutParam()); H();
4287 hrc = pMedium->RefreshState(&mediumState); H();
4291 hrc = pMedium->COMGETTER(Location)(loc.asOutParam()); H();
4309 hrc = pTmp->COMGETTER(Parent)(&pTmp); H();
4335 hrc = mptrExtPackManager->i_getLibraryPathForExtPack(s_pszVDPlugin, &strExtPackPuel, &strPlugin);
4337 if (SUCCEEDED(hrc))
4346 hrc = pMedium->COMGETTER(Location)(bstr.asOutParam()); H();
4349 hrc = pMedium->COMGETTER(Format)(bstr.asOutParam()); H();
4421 hrc = i_configMediumProperties(pCfg, pMedium, &fHostIP, &fEncrypted); H();
4428 hrc = pParentMedium->COMGETTER(Parent)(&pMedium); H();
4434 hrc = pMedium->COMGETTER(Location)(bstr.asOutParam()); H();
4437 hrc = pMedium->COMGETTER(Format)(bstr.asOutParam()); H();
4449 hrc = i_configMediumProperties(pCur, pMedium, &fHostIP, &fEncrypted); H();
4490 HRESULT hrc = pMedium->GetProperties(NULL, ComSafeArrayAsOutParam(aNames),
4493 if ( SUCCEEDED(hrc)
4511 hrc = strFilter.assignEx(name, 0, offSlash);
4512 if (FAILED(hrc))
4515 hrc = strKey.assignEx(name, offSlash + 1, name.length() - offSlash - 1); /* Skip slash */
4516 if (FAILED(hrc))
4540 return hrc;
4582 HRESULT hrc;
4585 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR)
4597 hrc = pMachine->COMGETTER(Parent)(virtualBox.asOutParam()); H();
4600 hrc = virtualBox->COMGETTER(Host)(host.asOutParam()); H();
4603 hrc = aNetworkAdapter->COMGETTER(TraceEnabled)(&fSniffer); H();
4606 hrc = aNetworkAdapter->COMGETTER(PromiscModePolicy)(&enmPromiscModePolicy); H();
4630 hrc = aNetworkAdapter->COMGETTER(BandwidthGroup)(pBwGroup.asOutParam()); H();
4634 hrc = pBwGroup->COMGETTER(Name)(strBwGroup.asOutParam()); H();
4657 hrc = aNetworkAdapter->COMGETTER(TraceFile)(bstr.asOutParam()); H();
4666 hrc = aNetworkAdapter->COMGETTER(AttachmentType)(&eAttachmentType); H();
4675 hrc = aNetworkAdapter->COMGETTER(NATEngine)(natEngine.asOutParam()); H();
4680 hrc = virtualBox->COMGETTER(HomeFolder)(bstr.asOutParam()); H();
4683 hrc = pMachine->COMGETTER(Name)(bstr.asOutParam()); H();
4686 hrc = natEngine->COMGETTER(Network)(bstr.asOutParam()); H();
4692 hrc = aNetworkAdapter->COMGETTER(Slot)(&uSlot); H();
4695 hrc = natEngine->COMGETTER(HostIP)(bstr.asOutParam()); H();
4703 hrc = natEngine->GetNetworkSettings(&mtu, &sockSnd, &sockRcv, &tcpSnd, &tcpRcv); H();
4714 hrc = natEngine->COMGETTER(TFTPPrefix)(bstr.asOutParam()); H();
4720 hrc = natEngine->COMGETTER(TFTPBootFile)(bstr.asOutParam()); H();
4726 hrc = natEngine->COMGETTER(TFTPNextServer)(bstr.asOutParam()); H();
4730 hrc = natEngine->COMGETTER(DNSPassDomain)(&fDNSFlag); H();
4732 hrc = natEngine->COMGETTER(DNSProxy)(&fDNSFlag); H();
4734 hrc = natEngine->COMGETTER(DNSUseHostResolver)(&fDNSFlag); H();
4738 hrc = natEngine->COMGETTER(AliasMode)(&aliasMode); H();
4743 hrc = natEngine->COMGETTER(Redirects)(ComSafeArrayAsOutParam(pfs)); H();
4822 hrc = i_attachToTapInterface(aNetworkAdapter);
4823 if (FAILED(hrc))
4825 switch (hrc)
4854 hrc = aNetworkAdapter->COMGETTER(BridgedInterface)(BridgedIfName.asOutParam());
4855 if (FAILED(hrc))
4857 LogRel(("NetworkAttachmentType_Bridged: COMGETTER(BridgedInterface) failed, hrc (0x%x)\n", hrc));
4877 // * hrc = aNetworkAdapter->Detach(); H();
4910 hrc = host->FindHostNetworkInterfaceByName(BridgedIfName.raw(),
4912 if (!SUCCEEDED(hrc))
4914 AssertLogRelMsgFailed(("NetworkAttachmentType_Bridged: FindByName failed, rc=%Rhrc (0x%x)", hrc, hrc));
4921 hrc = hostInterface->COMGETTER(InterfaceType)(&eIfType);
4922 if (FAILED(hrc))
4924 LogRel(("NetworkAttachmentType_Bridged: COMGETTER(InterfaceType) failed, hrc (0x%x)\n", hrc));
4935 hrc = hostInterface->COMGETTER(Id)(bstr.asOutParam());
4936 if (FAILED(hrc))
4938 LogRel(("NetworkAttachmentType_Bridged: COMGETTER(Id) failed, hrc (0x%x)\n", hrc));
4947 hrc = VBoxNetCfgWinQueryINetCfg(&pNc, FALSE, L"VirtualBox", 10, &pszApp);
4948 Assert(hrc == S_OK);
4949 if (hrc != S_OK)
4951 LogRel(("NetworkAttachmentType_Bridged: Failed to get NetCfg, hrc=%Rhrc (0x%x)\n", hrc, hrc));
4956 hrc = VBoxNetCfgWinGetComponentByGuid(pNc, &GUID_DEVCLASS_NET, (GUID*)hostIFGuid.raw(),
4958 if (hrc != S_OK)
4961 LogRel(("NetworkAttachmentType_Bridged: VBoxNetCfgWinGetComponentByGuid failed, hrc (0x%x)\n", hrc));
4968 hrc = pAdaptorComponent->GetBindName(&pswzBindName);
4969 Assert(hrc == S_OK);
4970 if (hrc == S_OK)
4982 hrc = HRESULT_FROM_WIN32(err);
4983 AssertMsgFailed(("%hrc=%Rhrc %#x\n", hrc, hrc));
4985 hrc, hrc, err));
4992 hrc = E_FAIL;
4995 if (hrc != S_OK)
5008 AssertLogRelMsgFailed(("NetworkAttachmentType_Bridged: VBoxNetCfgWinGetComponentByGuid failed, hrc (0x%x)",
5009 hrc));
5024 hrc = i_attachToTapInterface(aNetworkAdapter);
5025 if (FAILED(hrc))
5027 switch (hrc)
5255 hrc = aNetworkAdapter->COMGETTER(InternalNetwork)(bstr.asOutParam()); H();
5275 hrc = aNetworkAdapter->COMGETTER(HostOnlyInterface)(HostOnlyName.asOutParam());
5276 if (FAILED(hrc))
5278 LogRel(("NetworkAttachmentType_HostOnly: COMGETTER(HostOnlyInterface) failed, hrc (0x%x)\n", hrc));
5300 hrc = E_NOTIMPL;
5307 hrc = hostInterface->COMGETTER(InterfaceType)(&eIfType);
5308 if (FAILED(hrc))
5310 LogRel(("NetworkAttachmentType_HostOnly: COMGETTER(InterfaceType) failed, hrc (0x%x)\n", hrc));
5319 hrc = hostInterface->COMGETTER(Id)(bstr.asOutParam());
5320 if (FAILED(hrc))
5322 LogRel(("NetworkAttachmentType_HostOnly: COMGETTER(Id) failed, hrc (0x%x)\n", hrc));
5330 hrc = VBoxNetCfgWinQueryINetCfg(&pNc, FALSE, L"VirtualBox", 10, &pszApp);
5331 Assert(hrc == S_OK);
5332 if (hrc != S_OK)
5334 LogRel(("NetworkAttachmentType_HostOnly: Failed to get NetCfg, hrc=%Rhrc (0x%x)\n", hrc, hrc));
5339 hrc = VBoxNetCfgWinGetComponentByGuid(pNc, &GUID_DEVCLASS_NET, (GUID*)hostIFGuid.raw(),
5341 if (hrc != S_OK)
5344 LogRel(("NetworkAttachmentType_HostOnly: VBoxNetCfgWinGetComponentByGuid failed, hrc=%Rhrc (0x%x)\n", hrc, hrc));
5351 hrc = pAdaptorComponent->GetBindName(&pswzBindName);
5352 Assert(hrc == S_OK);
5353 if (hrc == S_OK)
5365 hrc = HRESULT_FROM_WIN32(err);
5367 hrc, hrc, err));
5374 hrc = E_FAIL;
5377 if (hrc != S_OK)
5388 AssertLogRelMsgFailed(("NetworkAttachmentType_HostOnly: VBoxNetCfgWinGetComponentByGuid failed, hrc=%Rhrc (0x%x)\n",
5389 hrc, hrc));
5400 hrc = pAdaptorComponent->OpenParamKey(&hkParams);
5401 Assert(hrc == S_OK);
5402 if (hrc == S_OK)
5406 hrc = RegQueryValueExW(hkParams, L"InfSection", NULL, NULL, (LPBYTE)swzInfSection, &dwSize);
5407 if (hrc == S_OK)
5424 "falling back to NDIS5 attachment\n", pszTrunkName, hrc));
5463 hrc = virtualBox->GetExtraData(BstrFmt("HostOnly/%s/IPAddress",
5466 if (SUCCEEDED(hrc) && !tmpAddr.isEmpty())
5468 hrc = virtualBox->GetExtraData(BstrFmt("HostOnly/%s/IPNetMask",
5471 if (SUCCEEDED(hrc) && !tmpMask.isEmpty())
5472 hrc = hostInterface->EnableStaticIPConfig(tmpAddr.raw(),
5475 hrc = hostInterface->EnableStaticIPConfig(tmpAddr.raw(),
5481 hrc = hostInterface->EnableStaticIPConfig(getDefaultIPv4Address(Bstr(pszHostOnlyName)).raw(),
5485 ComAssertComRC(hrc); /** @todo r=bird: Why this isn't fatal? (H()) */
5487 hrc = virtualBox->GetExtraData(BstrFmt("HostOnly/%s/IPV6Address",
5490 if (SUCCEEDED(hrc))
5491 hrc = virtualBox->GetExtraData(BstrFmt("HostOnly/%s/IPV6NetMask", pszHostOnlyName).raw(),
5493 if (SUCCEEDED(hrc) && !tmpAddr.isEmpty() && !tmpMask.isEmpty())
5495 hrc = hostInterface->EnableStaticIPConfigV6(tmpAddr.raw(),
5497 ComAssertComRC(hrc); /** @todo r=bird: Why this isn't fatal? (H()) */
5505 hrc = aNetworkAdapter->COMGETTER(GenericDriver)(bstr.asOutParam()); H();
5508 hrc = aNetworkAdapter->GetProperties(Bstr().raw(),
5528 hrc = aNetworkAdapter->COMGETTER(NATNetwork)(bstr.asOutParam()); H();
5563 if (SUCCEEDED(hrc) && SUCCEEDED(rc))
5591 hrc = virtualBox->FindDHCPServerByNetworkName(networkName.raw(),
5593 if (SUCCEEDED(hrc))
5597 hrc = dhcpServer->COMGETTER(Enabled)(&fEnabledDhcp);
5598 if (FAILED(hrc))
5600 LogRel(("DHCP svr: COMGETTER(Enabled) failed, hrc (%Rhrc)\n", hrc));
5605 hrc = dhcpServer->Start(networkName.raw(),
5610 hrc = S_OK;
5774 HRESULT hrc;
5775 hrc = pConsole->mControl->PullGuestProperties(ComSafeArrayAsOutParam(namesOut),
5779 AssertLogRelMsgReturn(SUCCEEDED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR);