|
Create a process, possibly redirect its standard input/output/error. The process is created using the system command line interpreter or shell.
- Parameters:
-
[in] | args | Full command line for the process. |
[in] | stdFiles | Points to an array of NATIVE_FD objects with at least 3 elements. These elements will be used to determine the file descriptors: STDIN, STDOUT, STDERR respectively of the newly created process. |
[in] | closeFiles | (Optional) Points to an array of NATIVE_FD objects that needs to be closed in the context of the created proces. The last entry of this array should be INVALID_NATIVE_FD. |
[in] | environ | Pointer to the environment block to use in the new process. |
[out] | process | An opaque object representing the created process. One can wait for the process termination by calling OS_WaitForProcessTermination |
- Returns:
- Operation status code.
- Return values:
-
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded |
| OS_RETURN_CODE_PROCESS_QUERY_FAILED | If the operation Failed |
- Availability:
- O/S: Windows, Linux & OS X*
CPU: All
|