![]() |
DDraceNetwork Documentation
|
Typedefs | |
| typedef pid_t | PROCESS |
Enumerations | |
| enum class | EShellExecuteWindowState { EShellExecuteWindowState::FOREGROUND , EShellExecuteWindowState::BACKGROUND } |
Functions | |
| int | process_id () |
| PROCESS | process_execute (const char *file, EShellExecuteWindowState window_state, const char **arguments=nullptr, size_t num_arguments=0) |
| int | process_kill (PROCESS process) |
| bool | process_is_alive (PROCESS process) |
Variables | |
| constexpr PROCESS | INVALID_PROCESS = 0 |
Process management.
| typedef pid_t PROCESS |
A handle for a process.
|
strong |
Determines the initial window state when using process_execute to execute a process.
| Enumerator | |
|---|---|
| FOREGROUND | The process window is opened in the foreground and activated. |
| BACKGROUND | The process window is opened in the background without focus. |
| PROCESS process_execute | ( | const char * | file, |
| EShellExecuteWindowState | window_state, | ||
| const char ** | arguments = nullptr, | ||
| size_t | num_arguments = 0 ) |
Executes a given file.
| file | The file to execute. |
| window_state | The window state how the process window should be shown. |
| arguments | Optional array of arguments to pass to the process. |
| num_arguments | The number of arguments. |
| int process_id | ( | ) |
Returns the ID of the current process.
| bool process_is_alive | ( | PROCESS | process | ) |
Checks if a process is alive.
| process | Handle/PID of the process. |
| int process_kill | ( | PROCESS | process | ) |
Sends kill signal to a process.
| process | Handle of the process to kill. |
|
constexpr |
A handle that denotes an invalid process.