Warning, file /include/boost/process/v1/detail/windows/close_out.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_PROCESS_WINDOWS_INITIALIZERS_CLOSE_OUT_HPP
0011 #define BOOST_PROCESS_WINDOWS_INITIALIZERS_CLOSE_OUT_HPP
0012
0013 #include <boost/process/v1/detail/config.hpp>
0014 #include <boost/process/v1/detail/handler_base.hpp>
0015 #include <boost/winapi/process.hpp>
0016 #include <boost/winapi/handles.hpp>
0017
0018 namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { namespace detail { namespace windows {
0019
0020 template<int p1, int p2>
0021 struct close_out : public ::boost::process::v1::detail::handler_base
0022 {
0023 template <class WindowsExecutor>
0024 inline void on_setup(WindowsExecutor &e) const;
0025 };
0026
0027 template<>
0028 template<typename WindowsExecutor>
0029 void close_out<1,-1>::on_setup(WindowsExecutor &e) const
0030 {
0031 e.startup_info.hStdOutput = ::boost::winapi::INVALID_HANDLE_VALUE_;
0032 e.startup_info.dwFlags |= ::boost::winapi::STARTF_USESTDHANDLES_;
0033 }
0034
0035 template<>
0036 template<typename WindowsExecutor>
0037 void close_out<2,-1>::on_setup(WindowsExecutor &e) const
0038 {
0039 e.startup_info.hStdError = ::boost::winapi::INVALID_HANDLE_VALUE_;
0040 e.startup_info.dwFlags |= ::boost::winapi::STARTF_USESTDHANDLES_;
0041 }
0042
0043 template<>
0044 template<typename WindowsExecutor>
0045 void close_out<1,2>::on_setup(WindowsExecutor &e) const
0046 {
0047 e.startup_info.hStdOutput = ::boost::winapi::INVALID_HANDLE_VALUE_;
0048 e.startup_info.hStdError = ::boost::winapi::INVALID_HANDLE_VALUE_;
0049 e.startup_info.dwFlags |= ::boost::winapi::STARTF_USESTDHANDLES_;
0050 }
0051
0052 }}}}}
0053
0054 #endif