Header file for the executors module. This file contains declarations for functions related to launching child processes in the parent console or in the background. More...
#include "deps.h"Go to the source code of this file.
Functions | |
| bool | execWithConsole (const std::wstring &commandLine, const std::wstring &selfDirPath, int consoleStatus=0) |
| Launches a child process in the parent console. | |
| bool | execWitoutConsole (const std::wstring &commandLine, const std::wstring &selfDirPath) |
| Launches a child process in the background. | |
Header file for the executors module. This file contains declarations for functions related to launching child processes in the parent console or in the background.
Definition in file executors.h.
| bool execWithConsole | ( | const std::wstring & | commandLine, |
| const std::wstring & | selfDirPath, | ||
| int | consoleStatus = 0 ) |
Launches a child process in the parent console.
This function creates a child process that inherits the console of the parent process.
| commandLine | The command line to execute. |
| selfDirPath | The directory path of the current executable. |
| consoleStatus | The status of the console (1 for inherit console from parent, 0 for new fresh console, -1 for no console available). |
Definition at line 3 of file executors.cpp.
| bool execWitoutConsole | ( | const std::wstring & | commandLine, |
| const std::wstring & | selfDirPath ) |
Launches a child process in the background.
This function creates a child process that runs in the background without inheriting the console of the parent process.
| commandLine | The command line to execute. |
| selfDirPath | The directory path of the current executable. |
Definition at line 72 of file executors.cpp.