Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:48

0001 /*
0002  * Copyright 2020 Andrey Semashev
0003  *
0004  * Distributed under the Boost Software License, Version 1.0.
0005  * See http://www.boost.org/LICENSE_1_0.txt
0006  */
0007 
0008 #ifndef BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_
0009 #define BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_
0010 
0011 #include <boost/winapi/basic_types.hpp>
0012 #include <boost/winapi/detail/header.hpp>
0013 
0014 #ifdef BOOST_HAS_PRAGMA_ONCE
0015 #pragma once
0016 #endif
0017 
0018 namespace boost {
0019 namespace winapi {
0020 
0021 #if defined( BOOST_USE_WINDOWS_H )
0022 
0023 BOOST_CONSTEXPR_OR_CONST DWORD_ INFINITE_ = INFINITE;
0024 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_ABANDONED_ = WAIT_ABANDONED;
0025 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_OBJECT_0_ = WAIT_OBJECT_0;
0026 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_TIMEOUT_ = WAIT_TIMEOUT;
0027 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_FAILED_ = WAIT_FAILED;
0028 
0029 #else // defined( BOOST_USE_WINDOWS_H )
0030 
0031 BOOST_CONSTEXPR_OR_CONST DWORD_ INFINITE_ = (DWORD_)0xFFFFFFFF;
0032 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_ABANDONED_ = 0x00000080L;
0033 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_OBJECT_0_ = 0x00000000L;
0034 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_TIMEOUT_ = 0x00000102L;
0035 BOOST_CONSTEXPR_OR_CONST DWORD_ WAIT_FAILED_ = (DWORD_)0xFFFFFFFF;
0036 
0037 #endif // defined( BOOST_USE_WINDOWS_H )
0038 
0039 BOOST_CONSTEXPR_OR_CONST DWORD_ infinite = INFINITE_;
0040 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_abandoned = WAIT_ABANDONED_;
0041 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_object_0 = WAIT_OBJECT_0_;
0042 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_timeout = WAIT_TIMEOUT_;
0043 BOOST_CONSTEXPR_OR_CONST DWORD_ wait_failed = WAIT_FAILED_;
0044 
0045 BOOST_CONSTEXPR_OR_CONST DWORD_ max_non_infinite_wait = (DWORD_)0xFFFFFFFE;
0046 
0047 }
0048 }
0049 
0050 #include <boost/winapi/detail/footer.hpp>
0051 
0052 #endif // BOOST_WINAPI_WAIT_CONSTANTS_HPP_INCLUDED_