wait_constants.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright 2020 Andrey Semashev
  3. *
  4. * Distributed under the Boost Software License, Version 1.0.
  5. * See http://www.boost.org/LICENSE_1_0.txt
  6. */
  7. #ifndef BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_
  8. #define BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_
  9. #include <boost/winapi/basic_types.hpp>
  10. #include <boost/winapi/detail/header.hpp>
  11. #ifdef BOOST_HAS_PRAGMA_ONCE
  12. #pragma once
  13. #endif
  14. namespace boost {
  15. namespace winapi {
  16. #if defined( BOOST_USE_WINDOWS_H )
  17. BOOST_CONSTEXPR_OR_CONST DWORD_ INFINITE_ = INFINITE;
  18. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_ABANDONED_ = WAIT_ABANDONED;
  19. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_OBJECT_0_ = WAIT_OBJECT_0;
  20. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_TIMEOUT_ = WAIT_TIMEOUT;
  21. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_FAILED_ = WAIT_FAILED;
  22. #else // defined( BOOST_USE_WINDOWS_H )
  23. BOOST_CONSTEXPR_OR_CONST DWORD_ INFINITE_ = (DWORD_)0xFFFFFFFF;
  24. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_ABANDONED_ = 0x00000080L;
  25. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_OBJECT_0_ = 0x00000000L;
  26. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_TIMEOUT_ = 0x00000102L;
  27. BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_FAILED_ = (DWORD_)0xFFFFFFFF;
  28. #endif // defined( BOOST_USE_WINDOWS_H )
  29. BOOST_CONSTEXPR_OR_CONST DWORD_ infinite = INFINITE_;
  30. BOOST_CONSTEXPR_OR_CONST DWORD_ wait_abandoned = WAIT_ABANDONED_;
  31. BOOST_CONSTEXPR_OR_CONST DWORD_ wait_object_0 = WAIT_OBJECT_0_;
  32. BOOST_CONSTEXPR_OR_CONST DWORD_ wait_timeout = WAIT_TIMEOUT_;
  33. BOOST_CONSTEXPR_OR_CONST DWORD_ wait_failed = WAIT_FAILED_;
  34. BOOST_CONSTEXPR_OR_CONST DWORD_ max_non_infinite_wait = (DWORD_)0xFFFFFFFE;
  35. }
  36. }
  37. #include <boost/winapi/detail/footer.hpp>
  38. #endif // BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_