Lines Matching defs:rc

65     HRESULT rc;
72 rc = virtualBox->get_Machines(&machinesArray);
73 if (SUCCEEDED(rc))
76 rc = SafeArrayAccessData(machinesArray, (void **) &machines);
77 if (SUCCEEDED(rc))
83 rc = machines[i]->get_Name(&str);
84 if (SUCCEEDED(rc))
103 HRESULT rc;
109 rc = virtualBox->FindMachine(machineName, &machine);
111 if (FAILED(rc))
115 rc = GetErrorInfo(0, &errorInfo);
117 if (FAILED(rc))
118 printf("Error getting error info! rc = 0x%x\n", rc);
123 rc = errorInfo->GetDescription(&errorDescription);
125 if (FAILED(rc) || !errorDescription)
126 printf("Error getting error description! rc = 0x%x\n", rc);
147 HRESULT rc;
153 rc = virtualBox->FindMachine(machineName, &machine);
155 if (FAILED(rc))
159 rc = GetErrorInfo(0, &errorInfo);
161 if (FAILED(rc))
162 printf("Error getting error info! rc = 0x%x\n", rc);
167 rc = errorInfo->GetDescription(&errorDescription);
169 if (FAILED(rc) || !errorDescription)
170 printf("Error getting error description! rc = 0x%x\n", rc);
191 rc = machine->get_Id(&guid); /* Get the GUID of the machine. */
192 if (!SUCCEEDED(rc))
194 printf("Error retrieving machine ID! rc = 0x%x\n", rc);
199 rc = CoCreateInstance(CLSID_Session, /* the VirtualBox base object */
204 if (!SUCCEEDED(rc))
206 printf("Error creating Session instance! rc = 0x%x\n", rc);
211 rc = machine->LaunchVMProcess(session, sessiontype,
213 if (!SUCCEEDED(rc))
215 printf("Could not open remote session! rc = 0x%x\n", rc);
221 rc = progress->WaitForCompletion(-1);
233 rc = console->PowerDown(&progress);
237 rc = progress->WaitForCompletion(-1);
240 rc = session->UnlockMachine();
260 HRESULT rc;
269 rc = CoCreateInstance(CLSID_VirtualBox, /* the VirtualBox base object */
275 if (!SUCCEEDED(rc))
277 printf("Error creating VirtualBox instance! rc = 0x%x\n", rc);