From 1abf2fbac63c90c315cf6e87d6bce0c285bd4019 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 25 Oct 2020 01:57:29 +0300 Subject: Process: add termination methods --- include/winapi/process.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/winapi') 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(); -- cgit v1.2.3