diff options
Diffstat (limited to 'include/winapi/process.hpp')
-rw-r--r-- | include/winapi/process.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/winapi/process.hpp b/include/winapi/process.hpp index d20ac38..22317ca 100644 --- a/include/winapi/process.hpp +++ b/include/winapi/process.hpp @@ -3,8 +3,11 @@ // For details, see https://github.com/egor-tensin/winapi-common. // Distributed under the MIT License. +#pragma once + #include "cmd_line.hpp" #include "handle.hpp" +#include "stream.hpp" #include <utility> @@ -12,7 +15,16 @@ namespace winapi { class Process { public: + struct IO { + process::Stdin std_in; + process::Stdout std_out; + process::Stderr std_err; + + void close(); + }; + static Process create(const CommandLine&); + static Process create(const CommandLine&, IO); void wait(); |