Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:10:27

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_PAGE_PROTECTION_FLAGS_HPP_INCLUDED_
0009 #define BOOST_WINAPI_PAGE_PROTECTION_FLAGS_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_ PAGE_NOACCESS_ = PAGE_NOACCESS;
0024 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_READONLY_ = PAGE_READONLY;
0025 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_READWRITE_ = PAGE_READWRITE;
0026 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_WRITECOPY_ = PAGE_WRITECOPY;
0027 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_GUARD_ = PAGE_GUARD;
0028 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_NOCACHE_ = PAGE_NOCACHE;
0029 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_WRITECOMBINE_ = PAGE_WRITECOMBINE;
0030 
0031 #else // defined( BOOST_USE_WINDOWS_H )
0032 
0033 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_NOACCESS_ = 0x01;
0034 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_READONLY_ = 0x02;
0035 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_READWRITE_ = 0x04;
0036 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_WRITECOPY_ = 0x08;
0037 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_GUARD_ = 0x100;
0038 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_NOCACHE_ = 0x200;
0039 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_WRITECOMBINE_ = 0x400;
0040 
0041 #endif // defined( BOOST_USE_WINDOWS_H )
0042 
0043 // The PAGE_EXECUTE flags were put into the DESKTOP UWP partition in Windows SDK 8.0 and 8.1 
0044 // and then moved to be globally available again in SDK 10.0.  Due to this, we simply define 
0045 // them unconditionally to work around the issue and consider the 8.x SDKs in error.
0046 
0047 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_EXECUTE_ = 0x10;
0048 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_EXECUTE_READ_ = 0x20;
0049 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_EXECUTE_READWRITE_ = 0x40;
0050 BOOST_CONSTEXPR_OR_CONST DWORD_ PAGE_EXECUTE_WRITECOPY_ = 0x80;
0051 
0052 }
0053 }
0054 
0055 #include <boost/winapi/detail/footer.hpp>
0056 
0057 #endif // BOOST_WINAPI_PAGE_PROTECTION_FLAGS_HPP_INCLUDED_