windows.hpp 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright (c) 2016 Klemens D. Morgenstern
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PROCESS_WINDOWS_HPP_
  6. #define BOOST_PROCESS_WINDOWS_HPP_
  7. #include <boost/process/detail/windows/show_window.hpp>
  8. /** \file boost/process/windows.hpp
  9. *
  10. * Header which provides the windows extensions.
  11. \xmlonly
  12. <programlisting>
  13. namespace boost {
  14. namespace process {
  15. namespace windows {
  16. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::hide">hide</globalname>;
  17. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::maximized">maximized</globalname>;
  18. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::minimized">minimized</globalname>;
  19. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::minimized_not_active">minimized_not_active</globalname>;
  20. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::not_active">not_active</globalname>;
  21. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::show">show</globalname>;
  22. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::show_normal">show_normal</globalname>;
  23. <emphasis>unspecified</emphasis> <globalname alt="boost::process::windows::create_no_window">create_no_window</globalname>;
  24. }
  25. }
  26. }
  27. </programlisting>
  28. * \endxmlonly
  29. * \warning Only available on windows.
  30. * See the parameter documentation of [ShowWindow](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx) for more details.
  31. */
  32. namespace boost { namespace process {
  33. ///Namespace containing the windows extensions.
  34. namespace windows {
  35. ///Hides the window and activates another window.
  36. constexpr ::boost::process::detail::windows::show_window<::boost::winapi::SW_HIDE_ > hide;
  37. ///Activates the window and displays it as a maximized window.
  38. constexpr ::boost::process::detail::windows::show_window<::boost::winapi::SW_SHOWMAXIMIZED_ > maximized;
  39. ///Activates the window and displays it as a minimized window.
  40. constexpr ::boost::process::detail::windows::show_window<::boost::winapi::SW_SHOWMINIMIZED_ > minimized;
  41. ///Displays the window as a minimized window. This value is similar to `minimized`, except the window is not activated.
  42. constexpr ::boost::process::detail::windows::show_window<::boost::winapi::SW_SHOWMINNOACTIVE_> minimized_not_active;
  43. ///Displays a window in its most recent size and position. This value is similar to show_normal`, except that the window is not activated.
  44. constexpr ::boost::process::detail::windows::show_window<::boost::winapi::SW_SHOWNOACTIVATE_ > not_active;
  45. ///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.
  46. constexpr ::boost::process::detail::windows::show_window<::boost::winapi::SW_SHOWNORMAL_ > show;
  47. ///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.
  48. constexpr ::boost::process::detail::windows::show_window<::boost::winapi::SW_SHOWNORMAL_ > show_normal;
  49. ///Adds the [CREATE_NO_WINDOW](https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx) flag.
  50. constexpr ::boost::process::detail::windows::create_no_window_ create_no_window;
  51. }}}
  52. #endif /* BOOST_PROCESS_WINDOWS_HPP_ */