File indexing completed on 2025-01-18 09:50:08
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_PROCESS_WINDOWS_SHOW_WINDOW_HPP
0012 #define BOOST_PROCESS_WINDOWS_SHOW_WINDOW_HPP
0013
0014 #include <boost/winapi/process.hpp>
0015 #include <boost/winapi/show_window.hpp>
0016 #include <boost/process/detail/handler_base.hpp>
0017
0018
0019 namespace boost { namespace process { namespace detail { namespace windows {
0020
0021 template<::boost::winapi::WORD_ Flags>
0022 struct show_window : ::boost::process::detail::handler_base
0023 {
0024 template <class WindowsExecutor>
0025 void on_setup(WindowsExecutor &e) const
0026 {
0027 e.startup_info.dwFlags |= ::boost::winapi::STARTF_USESHOWWINDOW_;
0028 e.startup_info.wShowWindow |= Flags;
0029 }
0030 };
0031
0032 struct create_no_window_ : public ::boost::process::detail::handler_base
0033 {
0034 template <class Executor>
0035 void on_setup(Executor &exec) const
0036 {
0037 exec.creation_flags |= ::boost::winapi::CREATE_NO_WINDOW_;
0038 }
0039 };
0040
0041
0042 }}}}
0043
0044 #endif
0045