diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-16 17:41:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-16 21:17:58 +0300 |
commit | 16fc3e5774069c77ff9ec304555e065ff08e4c6f (patch) | |
tree | 0fdf8a23bc691e33775b1db92290b3d2195b6ee9 /include | |
parent | add a separate Buffer class (diff) | |
download | winapi-common-16fc3e5774069c77ff9ec304555e065ff08e4c6f.tar.gz winapi-common-16fc3e5774069c77ff9ec304555e065ff08e4c6f.zip |
Process: add get_exit_code()
Diffstat (limited to 'include')
-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 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)} {} |