From 16fc3e5774069c77ff9ec304555e065ff08e4c6f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 16 Oct 2020 17:41:19 +0300 Subject: Process: add get_exit_code() --- 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 2614c0f..f404b33 100644 --- a/include/winapi/process.hpp +++ b/include/winapi/process.hpp @@ -48,7 +48,9 @@ public: static Process create(const CommandLine&); static Process create(const CommandLine&, IO); - void wait(); + void wait() const; + + int get_exit_code() const; private: explicit Process(Handle&& handle) : m_handle{std::move(handle)} {} -- cgit v1.2.3