Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:07:12

0001 // Copyright (c) 2006, 2007 Julio M. Merino Vidal
0002 // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
0003 // Copyright (c) 2009 Boris Schaeling
0004 // Copyright (c) 2010 Felipe Tanus, Boris Schaeling
0005 // Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
0006 // Copyright (c) 2016 Klemens D. Morgenstern
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0009 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_PROCESS_WINDOWS_SHOW_WINDOW_HPP
0012 #define BOOST_PROCESS_WINDOWS_SHOW_WINDOW_HPP
0013 
0014 #include <boost/process/v1/detail/config.hpp>
0015 #include <boost/winapi/process.hpp>
0016 #include <boost/winapi/show_window.hpp>
0017 #include <boost/process/v1/detail/handler_base.hpp>
0018 
0019 
0020 namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { namespace detail { namespace windows {
0021 
0022 template<::boost::winapi::WORD_ Flags>
0023 struct show_window : ::boost::process::v1::detail::handler_base
0024 {
0025     template <class WindowsExecutor>
0026     void on_setup(WindowsExecutor &e) const
0027     {
0028         e.startup_info.dwFlags |= ::boost::winapi::STARTF_USESHOWWINDOW_;
0029         e.startup_info.wShowWindow |= Flags;
0030     }
0031 };
0032 
0033 struct create_no_window_ : public ::boost::process::v1::detail::handler_base
0034 {
0035     template <class Executor>
0036     void on_setup(Executor &exec) const
0037     {
0038         exec.creation_flags |= ::boost::winapi::CREATE_NO_WINDOW_;
0039     }
0040 };
0041 
0042 
0043 }}}}}
0044 
0045 #endif
0046