diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-25 01:57:29 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-25 01:57:29 +0300 |
commit | 1abf2fbac63c90c315cf6e87d6bce0c285bd4019 (patch) | |
tree | 0af5adb917b99d762f75c0407f0f018ecaf72a3e /include/winapi | |
parent | remove redundant namespace names (diff) | |
download | winapi-common-1abf2fbac63c90c315cf6e87d6bce0c285bd4019.tar.gz winapi-common-1abf2fbac63c90c315cf6e87d6bce0c285bd4019.zip |
Process: add termination methods
Diffstat (limited to 'include/winapi')
-rw-r--r-- | include/winapi/process.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/winapi/process.hpp b/include/winapi/process.hpp index 05411cd..5c9e3c9 100644 --- a/include/winapi/process.hpp +++ b/include/winapi/process.hpp @@ -26,8 +26,10 @@ public: static Process runas(const CommandLine&); + bool is_running() const; void wait() const; - + void terminate(int ec = 0) const; + void shut_down(int ec = 0) const; int get_exit_code() const; static std::string get_exe_path(); |