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 8 #ifndef BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_ 9 #define BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_ 10 11 #include <boost/winapi/basic_types.hpp> 12 #include <boost/winapi/detail/header.hpp> 13 14 #ifdef BOOST_HAS_PRAGMA_ONCE 15 #pragma once 16 #endif 17 18 namespace boost { 19 namespace winapi { 20 21 #if defined( BOOST_USE_WINDOWS_H ) 22 23 BOOST_CONSTEXPR_OR_CONST DWORD_ INFINITE_ = INFINITE; 24 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_ABANDONED_ = WAIT_ABANDONED; 25 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_OBJECT_0_ = WAIT_OBJECT_0; 26 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_TIMEOUT_ = WAIT_TIMEOUT; 27 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_FAILED_ = WAIT_FAILED; 28 29 #else // defined( BOOST_USE_WINDOWS_H ) 30 31 BOOST_CONSTEXPR_OR_CONST DWORD_ INFINITE_ = (DWORD_)0xFFFFFFFF; 32 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_ABANDONED_ = 0x00000080L; 33 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_OBJECT_0_ = 0x00000000L; 34 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_TIMEOUT_ = 0x00000102L; 35 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_FAILED_ = (DWORD_)0xFFFFFFFF; 36 37 #endif // defined( BOOST_USE_WINDOWS_H ) 38 39 BOOST_CONSTEXPR_OR_CONST DWORD_ infinite = INFINITE_; 40 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_abandoned = WAIT_ABANDONED_; 41 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_object_0 = WAIT_OBJECT_0_; 42 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_timeout = WAIT_TIMEOUT_; 43 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_failed = WAIT_FAILED_; 44 45 BOOST_CONSTEXPR_OR_CONST DWORD_ max_non_infinite_wait = (DWORD_)0xFFFFFFFE; 46 47 } 48 } 49 50 #include <boost/winapi/detail/footer.hpp> 51 52 #endif // BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_ 53