Lines Matching refs:rc
39 int rc = VINF_SUCCESS;
46 rc = RTProcQueryUsernameA(RTProcSelf(), &pszUser);
47 if (RT_SUCCESS(rc))
60 rc = RTStrAPrintf(&pszFile, "%s/%s.%s",
62 if (RT_SUCCESS(rc))
64 rc = RTFileOpen(&hAutostartFile, pszFile, fOpen);
65 if (RT_SUCCESS(rc))
74 rc = RTFileGetSize(hAutostartFile, &cbFile);
75 if ( RT_SUCCESS(rc)
86 rc = RTFileRead(hAutostartFile, abBuf, cbFile, NULL);
87 if (RT_SUCCESS(rc))
89 rc = RTStrToUInt32Ex(abBuf, NULL, 10 /* uBase */, &cAutostartVms);
90 if ( rc == VWRN_TRAILING_CHARS
91 || rc == VWRN_TRAILING_SPACES)
92 rc = VINF_SUCCESS;
96 if (RT_SUCCESS(rc))
109 rc = RTFileSetSize(hAutostartFile, cbBuf);
110 if (RT_SUCCESS(rc))
111 rc = RTFileWriteAt(hAutostartFile, 0, abBuf, cbBuf, NULL);
122 else if (RT_SUCCESS(rc))
123 rc = VERR_FILE_TOO_BIG;
134 return rc;
142 int rc = RTCritSectInit(&this->CritSect);
143 NOREF(rc);
184 int rc = VERR_NOT_SUPPORTED;
190 rc = autostartModifyDb(true /* fAutostart */, true /* fAddVM */);
194 rc = VINF_SUCCESS;
197 rc = VERR_NOT_SUPPORTED;
200 return rc;
205 int rc = VINF_SUCCESS;
210 rc = autostartModifyDb(true /* fAutostart */, false /* fAddVM */);
214 rc = VINF_SUCCESS;
217 rc = VERR_NOT_SUPPORTED;
220 return rc;
225 int rc = VINF_SUCCESS;
230 rc = autostartModifyDb(false /* fAutostart */, true /* fAddVM */);
234 rc = VINF_SUCCESS;
237 rc = VERR_NOT_SUPPORTED;
240 return rc;
245 int rc = VINF_SUCCESS;
250 rc = autostartModifyDb(false /* fAutostart */, false /* fAddVM */);
254 rc = VINF_SUCCESS;
257 rc = VERR_NOT_SUPPORTED;
260 return rc;