summaryrefslogtreecommitdiff
path: root/boost/process/windows.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/process/windows.hpp')
-rw-r--r--boost/process/windows.hpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/boost/process/windows.hpp b/boost/process/windows.hpp
new file mode 100644
index 0000000000..3bc97a26aa
--- /dev/null
+++ b/boost/process/windows.hpp
@@ -0,0 +1,58 @@
+// Copyright (c) 2016 Klemens D. Morgenstern
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+#ifndef BOOST_PROCESS_WINDOWS_HPP_
+#define BOOST_PROCESS_WINDOWS_HPP_
+
+#include <boost/process/detail/windows/show_window.hpp>
+
+/** \file boost/process/windows.hpp
+ *
+ * Header which provides the windows extensions.
+
+\xmlonly
+<programlisting>
+namespace boost {
+ namespace process {
+ namespace windows {
+ <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::hide">hide</globalname>;
+ <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::maximized">maximized</globalname>;
+ <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::minimized">minimized</globalname>;
+ <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::minimized_not_active">minimized_not_active</globalname>;
+ <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::not_active">not_active</globalname>;
+ <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::show">show</globalname>;
+ <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::show_normal">show_normal</globalname>;
+ }
+ }
+}
+</programlisting>
+ * \endxmlonly
+ * \warning Only available on windows.
+ * See the parameter documentation of [ShowWindow](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx) for more details.
+ */
+
+namespace boost { namespace process {
+
+///Namespace containing the windows exensions.
+namespace windows {
+
+///Hides the window and activates another window.
+constexpr ::boost::process::detail::windows::show_window<::boost::detail::winapi::SW_HIDE_ > hide;
+///Activates the window and displays it as a maximized window.
+constexpr ::boost::process::detail::windows::show_window<::boost::detail::winapi::SW_SHOWMAXIMIZED_ > maximized;
+///Activates the window and displays it as a minimized window.
+constexpr ::boost::process::detail::windows::show_window<::boost::detail::winapi::SW_SHOWMINIMIZED_ > minimized;
+///Displays the window as a minimized window. This value is similar to `minimized`, except the window is not activated.
+constexpr ::boost::process::detail::windows::show_window<::boost::detail::winapi::SW_SHOWMINNOACTIVE_> minimized_not_active;
+///Displays a window in its most recent size and position. This value is similar to show_normal`, except that the window is not activated.
+constexpr ::boost::process::detail::windows::show_window<::boost::detail::winapi::SW_SHOWNOACTIVATE_ > not_active;
+///Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
+constexpr ::boost::process::detail::windows::show_window<::boost::detail::winapi::SW_SHOWNORMAL_ > show;
+///Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
+constexpr ::boost::process::detail::windows::show_window<::boost::detail::winapi::SW_SHOWNORMAL_ > show_normal;
+
+
+}}}
+
+#endif /* BOOST_PROCESS_WINDOWS_HPP_ */