aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-25 01:57:29 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-25 01:57:29 +0300
commit1abf2fbac63c90c315cf6e87d6bce0c285bd4019 (patch)
tree0af5adb917b99d762f75c0407f0f018ecaf72a3e /include/winapi
parentremove redundant namespace names (diff)
downloadwinapi-common-1abf2fbac63c90c315cf6e87d6bce0c285bd4019.tar.gz
winapi-common-1abf2fbac63c90c315cf6e87d6bce0c285bd4019.zip
Process: add termination methods
Diffstat (limited to 'include/winapi')
-rw-r--r--include/winapi/process.hpp4
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();