- Timestamp:
- Jan 13, 2011 2:21:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r35465 r35526 898 898 * @param uTimeLimitMS 899 899 */ 900 int VBoxServiceControlExecAllocateThreadData(PVBOXSERVICECTRLTHREAD pThread,901 uint32_t u32ContextID,902 const char *pszCmd, uint32_t uFlags,903 const char *pszArgs, uint32_t uNumArgs,904 const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars,905 const char *pszUser, const char *pszPassword, uint32_t uTimeLimitMS)900 static int VBoxServiceControlExecAllocateThreadData(PVBOXSERVICECTRLTHREAD pThread, 901 uint32_t u32ContextID, 902 const char *pszCmd, uint32_t uFlags, 903 const char *pszArgs, uint32_t uNumArgs, 904 const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars, 905 const char *pszUser, const char *pszPassword, uint32_t uTimeLimitMS) 906 906 { 907 907 AssertPtr(pThread); … … 1029 1029 1030 1030 /** @todo Maybe we want to have an own IPRT function for that! */ 1031 int VBoxServiceControlExecMakeFullPath(const char *pszPath, char *pszExpanded, size_t cbExpanded)1031 static int VBoxServiceControlExecMakeFullPath(const char *pszPath, char *pszExpanded, size_t cbExpanded) 1032 1032 { 1033 1033 int rc = VINF_SUCCESS; … … 1047 1047 1048 1048 1049 int VBoxServiceControlExecResolveExecutable(const char *pszFileName, char *pszResolved, size_t cbResolved)1049 static int VBoxServiceControlExecResolveExecutable(const char *pszFileName, char *pszResolved, size_t cbResolved) 1050 1050 { 1051 1051 int rc = VINF_SUCCESS; … … 1097 1097 * Needs to be freed with RTGetOptArgvFree. 1098 1098 */ 1099 int VBoxServiceControlExecPrepareArgv(const char *pszFileName,1100 const char * const *papszArgs, char ***ppapszArgv)1099 static int VBoxServiceControlExecPrepareArgv(const char *pszFileName, 1100 const char * const *papszArgs, char ***ppapszArgv) 1101 1101 { 1102 1102 AssertPtrReturn(pszFileName, VERR_INVALID_PARAMETER); … … 1104 1104 AssertPtrReturn(ppapszArgv, VERR_INVALID_PARAMETER); 1105 1105 1106 bool fUseToolbox = false;1107 if (RTStrStr(papszArgs[0], "vbox_") == papszArgs[0])1108 fUseToolbox = true;1109 1110 /* Skip argv[0] (= file name) if we don't run an internal1111 * VBoxService toolbox command - we already have a resolved one in pszFileName. */1112 1106 char *pszArgs; 1113 1107 int rc = RTGetOptArgvToString(&pszArgs, papszArgs, … … 1165 1159 * @param phProcess 1166 1160 */ 1167 int VBoxServiceControlExecCreateProcess(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags,1168 PCRTHANDLE phStdIn, PCRTHANDLE phStdOut, PCRTHANDLE phStdErr, const char *pszAsUser,1169 const char *pszPassword, PRTPROCESS phProcess)1161 static int VBoxServiceControlExecCreateProcess(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags, 1162 PCRTHANDLE phStdIn, PCRTHANDLE phStdOut, PCRTHANDLE phStdErr, const char *pszAsUser, 1163 const char *pszPassword, PRTPROCESS phProcess) 1170 1164 { 1171 1165 int rc = VINF_SUCCESS; … … 1244 1238 * @param PVBOXSERVICECTRLTHREAD Thread data associated with a started process. 1245 1239 */ 1246 DECLCALLBACK(int) VBoxServiceControlExecProcessWorker(PVBOXSERVICECTRLTHREAD pThread)1240 static DECLCALLBACK(int) VBoxServiceControlExecProcessWorker(PVBOXSERVICECTRLTHREAD pThread) 1247 1241 { 1248 1242 AssertPtr(pThread); … … 1413 1407 * @param uPID PID to search for. 1414 1408 */ 1415 PVBOXSERVICECTRLTHREAD VBoxServiceControlExecFindProcess(uint32_t uPID)1409 static PVBOXSERVICECTRLTHREAD VBoxServiceControlExecFindProcess(uint32_t uPID) 1416 1410 { 1417 1411 PVBOXSERVICECTRLTHREAD pNode;
Note:
See TracChangeset
for help on using the changeset viewer.