#include <system_process.h>
◆ MAXON_INTERFACE()
◆ StartProcess()
Executes the prepared process. This only works once. To start the same executable again you need to allocate another instance with the same settings.
- Returns
- OK on success.
◆ KillProcess()
Kills the process if it is still running. All child processes are also killed.
- Returns
- OK on success. If the process was not running SystemProcessOperationError is returned.
◆ GetExitCode()
Returns the exit code of the execution. This is possible as soon as the process finished. Note: The exit code under OS X only works for own child processes. Under Windows the exit code is available for all processes.
- Returns
- Returns the exit code of the process or (UInt)NOTOK if the process is still running.
◆ IsRunning()
Returns whether the process is running or not.
- Returns
- True if the process is running.
◆ GetProcessId()
Returns the System Process Id.
- Returns
- The system process id (pid).
◆ GetProcessHandle()
Returns the pointer to the windows process handle.
- Returns
- Windows: HANDLE of the windows process. OS X: pid of the process.
◆ GetProcessUrl()
Returns the file path to the executable. Notes: Under windows the full path is only returned for processes that the user owns. System processes are only given by name. Under OS X the name is limited to the first 10 characters at the moment.
- Returns
- File name of the executable.
◆ GetLogFile()
◆ GetUserData()
◆ GetLoadedDlls()
Gets an array of all loaded dlls for this process.
- Returns
- OK on success.
◆ MAXON_OBSERVABLE()
MAXON_OBSERVABLE |
( |
void |
, |
|
|
ObservableProcessFinished |
, |
|
|
(const SystemProcessObjectRef &sender) |
, |
|
|
ObservableCombinerRunAllComponent |
|
|
) |
| |
Signal that the process finished execution. Make sure that you add this notification before you start the process, otherwise it could be too late if the process already ended.
- Parameters
-
[in] | sender | Reference to the SystemProcessObjectRef which has been finished. |
- Returns
- ObservableRef to operate on.