- Timestamp:
- Dec 3, 2010 5:30:45 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/process.h
r33806 r34708 186 186 * be possible to wait for it, i.e. @a phProcess shall be NULL. */ 187 187 #define RTPROC_FLAGS_DETACHED RT_BIT(0) 188 188 /** Don't show the started process according to the specific 189 * OS guidelines. */ 190 #define RTPROC_FLAGS_HIDDEN RT_BIT(1) 189 191 /** Use special code path for starting child processes from 190 192 * a service (daemon). On Windows this is required for services -
trunk/src/VBox/Runtime/r3/posix/process-creation-posix.cpp
r33772 r34708 265 265 AssertPtrReturn(pszExec, VERR_INVALID_POINTER); 266 266 AssertReturn(*pszExec, VERR_INVALID_PARAMETER); 267 AssertReturn(!(fFlags & ~(RTPROC_FLAGS_DETACHED | RTPROC_FLAGS_ SERVICE)), VERR_INVALID_PARAMETER);267 AssertReturn(!(fFlags & ~(RTPROC_FLAGS_DETACHED | RTPROC_FLAGS_HIDDEN | RTPROC_FLAGS_SERVICE)), VERR_INVALID_PARAMETER); 268 268 AssertReturn(!(fFlags & RTPROC_FLAGS_DETACHED) || !phProcess, VERR_INVALID_PARAMETER); 269 269 AssertReturn(hEnv != NIL_RTENV, VERR_INVALID_PARAMETER); -
trunk/src/VBox/Runtime/r3/win/process-win.cpp
r34251 r34708 949 949 AssertPtrReturn(pszExec, VERR_INVALID_POINTER); 950 950 AssertReturn(*pszExec, VERR_INVALID_PARAMETER); 951 AssertReturn(!(fFlags & ~(RTPROC_FLAGS_DETACHED | RTPROC_FLAGS_ SERVICE)), VERR_INVALID_PARAMETER);951 AssertReturn(!(fFlags & ~(RTPROC_FLAGS_DETACHED | RTPROC_FLAGS_HIDDEN |RTPROC_FLAGS_SERVICE)), VERR_INVALID_PARAMETER); 952 952 AssertReturn(!(fFlags & RTPROC_FLAGS_DETACHED) || !phProcess, VERR_INVALID_PARAMETER); 953 953 AssertReturn(hEnv != NIL_RTENV, VERR_INVALID_PARAMETER); … … 984 984 StartupInfo.hStdError = _get_osfhandle(2); 985 985 #endif 986 /* If we want to have a hidden process (e.g. not visible to 987 * to the user) use the STARTUPINFO flags. */ 988 if (fFlags & RTPROC_FLAGS_HIDDEN) 989 { 990 StartupInfo.dwFlags |= STARTF_USESHOWWINDOW; 991 StartupInfo.wShowWindow = SW_HIDE; 992 } 993 986 994 PCRTHANDLE paHandles[3] = { phStdIn, phStdOut, phStdErr }; 987 995 HANDLE *aphStds[3] = { &StartupInfo.hStdInput, &StartupInfo.hStdOutput, &StartupInfo.hStdError };
Note:
See TracChangeset
for help on using the changeset viewer.