Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*
0002  * Copyright 2016 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_LIMITS_HPP_INCLUDED_
0009 #define BOOST_WINAPI_LIMITS_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_ MAX_PATH_ = MAX_PATH;
0024 
0025 #else
0026 
0027 BOOST_CONSTEXPR_OR_CONST DWORD_ MAX_PATH_ = 260;
0028 
0029 #endif
0030 
0031 #if defined( BOOST_USE_WINDOWS_H ) && !defined( BOOST_WINAPI_IS_MINGW )
0032 
0033 BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
0034 BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
0035 
0036 #else
0037 
0038 BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
0039 BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
0040 
0041 #endif
0042 
0043 BOOST_CONSTEXPR_OR_CONST DWORD_ max_path = MAX_PATH_;
0044 BOOST_CONSTEXPR_OR_CONST DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
0045 BOOST_CONSTEXPR_OR_CONST DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
0046 
0047 }
0048 }
0049 
0050 #include <boost/winapi/detail/footer.hpp>
0051 
0052 #endif // BOOST_WINAPI_LIMITS_HPP_INCLUDED_