Enumerations | |
enum | RunResult { OK , GeneralError } |
Describes the result of a run application request. More... | |
Functions | |
OT_SYS_API_EXPORT RunResult | runApplication (const std::string &_applicationPath, bool _waitForResponse=true, unsigned long _waitTimeout=OT_INFINITE_TIMEOUT) |
Will start the application under the given application path. | |
OT_SYS_API_EXPORT RunResult | runApplication (const std::wstring &_applicationPath, bool _waitForResponse=true, unsigned long _waitTimeout=OT_INFINITE_TIMEOUT) |
Will start the application under the given application path. | |
OT_SYS_API_EXPORT RunResult | runApplication (const std::string &_applicationPath, const std::string &_commandLine, OT_PROCESS_HANDLE &_processHandle, bool _waitForResponse=true, unsigned long _waitTimeout=OT_INFINITE_TIMEOUT) |
Will start the application under the given application path with the given command line. | |
OT_SYS_API_EXPORT RunResult | runApplication (const std::wstring &_applicationPath, const std::wstring &_commandLine, OT_PROCESS_HANDLE &_processHandle, bool _waitForResponse=true, unsigned long _waitTimeout=OT_INFINITE_TIMEOUT) |
Will start the application under the given application path with the given command line. | |
OT_SYS_API_EXPORT bool | isApplicationRunning (OT_PROCESS_HANDLE &_processHandle) |
Returns true if the provided process is still alive. | |
OT_SYS_API_EXPORT std::string | getCurrentExecutableDirectory (void) |
Will return a string containing the current directory where the current executable is located at. | |
OT_SYS_API_EXPORT std::wstring | getCurrentExecutableDirectoryW (void) |
Will return a wide string containing the current directory where the current executable is located at. | |
OT_SYS_API_EXPORT std::string | getCurrentExecutableFilePath (void) |
Will return a string containing the path of the current executable. | |
OT_SYS_API_EXPORT std::wstring | getCurrentExecutableFilePathW (void) |
Will return a wide string containing the path of the current executable. | |
enum ot::app::RunResult |
std::string ot::app::getCurrentExecutableDirectory | ( | void | ) |
Will return a string containing the current directory where the current executable is located at.
std::wstring ot::app::getCurrentExecutableDirectoryW | ( | void | ) |
Will return a wide string containing the current directory where the current executable is located at.
std::string ot::app::getCurrentExecutableFilePath | ( | void | ) |
Will return a string containing the path of the current executable.
std::wstring ot::app::getCurrentExecutableFilePathW | ( | void | ) |
Will return a wide string containing the path of the current executable.
OT_SYS_API_EXPORT bool ot::app::isApplicationRunning | ( | OT_PROCESS_HANDLE & | _processHandle | ) |
Returns true if the provided process is still alive.
ot::app::RunResult ot::app::runApplication | ( | const std::string & | _applicationPath, |
bool | _waitForResponse = true, | ||
unsigned long | _waitTimeout = OT_INFINITE_TIMEOUT ) |
Will start the application under the given application path.
_applicationPath | The path the application is located at. |
_waitForResponse | If true, the function will wait until the process was successfully started. |
ot::app::RunResult ot::app::runApplication | ( | const std::string & | _applicationPath, |
const std::string & | _commandLine, | ||
OT_PROCESS_HANDLE & | _processHandle, | ||
bool | _waitForResponse = true, | ||
unsigned long | _waitTimeout = OT_INFINITE_TIMEOUT ) |
Will start the application under the given application path with the given command line.
_applicationPath | The path the application is located at. |
_commandLine | The command line that should be used to start the application. |
_hProcess | The process handle will be written here. |
_waitForResponse | If true, the function will wait until the process was successfully started. |
ot::app::RunResult ot::app::runApplication | ( | const std::wstring & | _applicationPath, |
bool | _waitForResponse = true, | ||
unsigned long | _waitTimeout = OT_INFINITE_TIMEOUT ) |
Will start the application under the given application path.
_applicationPath | The path the application is located at. |
_waitForResponse | If true, the function will wait until the process was successfully started. |
OT_SYS_API_EXPORT RunResult ot::app::runApplication | ( | const std::wstring & | _applicationPath, |
const std::wstring & | _commandLine, | ||
OT_PROCESS_HANDLE & | _processHandle, | ||
bool | _waitForResponse = true, | ||
unsigned long | _waitTimeout = OT_INFINITE_TIMEOUT ) |
Will start the application under the given application path with the given command line.
_applicationPath | The path the application is located at. |
_commandLine | The command line that should be used to start the application. |
_hProcess | The process handle will be written here. |
_waitForResponse | If true, the function will wait until the process was successfully started. |