◆
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.
-
返回
-
OK on success.
◆
KillProcess()
Kills the process if it is still running. All child processes are also killed.
-
返回
-
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 the exit code of the process or (UInt)NOTOK if the process is still running.
◆
IsRunning()
Returns whether the process is running or not.
-
返回
-
True if the process is running.
◆
GetProcessId()
Returns the
系统
Process
Id
.
-
返回
-
The system process id (pid).
◆
GetProcessHandle()
Returns the pointer to the windows process handle.
-
返回
-
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.
系统
processes are only given by name. Under OS X the name is limited to the first 10 characters at the moment.
-
返回
-
File name of the executable.
◆
GetLogFile()
Returns the path of the captured logfile.
-
返回
-
Return the log file path. If the process was not created using
EXECUTEPROGRAMFLAGS::CAPTURELOGFILE
an empty name is returned.
◆
GetUserData()
Returns the user data connected to this process. See
SystemProcessInterface::CreateProcess()
.
-
返回
-
Return the pointer to the user data of this process.
◆
GetLoadedDlls()
Gets an array of all loaded dlls for this process.
-
返回
-
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.
-
参数
-
[in]
|
sender
|
Reference to the SystemProcessObjectRef which has been finished.
|
-
返回
-
ObservableRef
to operate on.