1 // limits.hpp --------------------------------------------------------------//
3 // Copyright 2016 Andrey Semashev
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
8 #ifndef BOOST_DETAIL_WINAPI_LIMITS_HPP_
9 #define BOOST_DETAIL_WINAPI_LIMITS_HPP_
11 #include <boost/detail/winapi/basic_types.hpp>
13 #ifdef BOOST_HAS_PRAGMA_ONCE
21 #if defined( BOOST_USE_WINDOWS_H )
23 const DWORD_ MAX_PATH_ = MAX_PATH;
27 const DWORD_ MAX_PATH_ = 260;
31 #if defined( BOOST_USE_WINDOWS_H ) && !defined( BOOST_WINAPI_IS_MINGW )
33 const DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
34 const DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
38 const DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
39 const DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
43 const DWORD_ max_path = MAX_PATH_;
44 const DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
45 const DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
51 #endif // BOOST_DETAIL_WINAPI_LIMITS_HPP_