2 * Copyright 2016 Andrey Semashev
4 * Distributed under the Boost Software License, Version 1.0.
5 * See http://www.boost.org/LICENSE_1_0.txt
8 #ifndef BOOST_WINAPI_LIMITS_HPP_INCLUDED_
9 #define BOOST_WINAPI_LIMITS_HPP_INCLUDED_
11 #include <boost/winapi/basic_types.hpp>
13 #ifdef BOOST_HAS_PRAGMA_ONCE
20 #if defined( BOOST_USE_WINDOWS_H )
22 const DWORD_ MAX_PATH_ = MAX_PATH;
26 const DWORD_ MAX_PATH_ = 260;
30 #if defined( BOOST_USE_WINDOWS_H ) && !defined( BOOST_WINAPI_IS_MINGW )
32 const DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
33 const DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
37 const DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
38 const DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
42 const DWORD_ max_path = MAX_PATH_;
43 const DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
44 const DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
49 #endif // BOOST_WINAPI_LIMITS_HPP_INCLUDED_