aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/process.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 17:41:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 21:17:58 +0300
commit16fc3e5774069c77ff9ec304555e065ff08e4c6f (patch)
tree0fdf8a23bc691e33775b1db92290b3d2195b6ee9 /include/winapi/process.hpp
parentadd a separate Buffer class (diff)
downloadwinapi-common-16fc3e5774069c77ff9ec304555e065ff08e4c6f.tar.gz
winapi-common-16fc3e5774069c77ff9ec304555e065ff08e4c6f.zip
Process: add get_exit_code()
Diffstat (limited to 'include/winapi/process.hpp')
-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 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)} {}