1 /* 2 * Copyright Andrey Semashev 2018. 3 * Distributed under the Boost Software License, Version 1.0. 4 * (See accompanying file LICENSE_1_0.txt or copy at 5 * http://www.boost.org/LICENSE_1_0.txt) 6 */ 7 /*! 8 * \file file_mapping_abi.cpp 9 * \author Andrey Semashev 10 * \date 10.03.2018 11 * 12 * \brief This file contains ABI test for file_mapping.hpp 13 */ 14 15 #include <boost/winapi/file_mapping.hpp> 16 #include <windows.h> 17 #include "abi_test_tools.hpp" 18 main()19int main() 20 { 21 BOOST_WINAPI_TEST_CONSTANT(SEC_FILE); 22 BOOST_WINAPI_TEST_CONSTANT(SEC_IMAGE); 23 BOOST_WINAPI_TEST_CONSTANT(SEC_RESERVE); 24 BOOST_WINAPI_TEST_CONSTANT(SEC_COMMIT); 25 BOOST_WINAPI_TEST_CONSTANT(SEC_NOCACHE); 26 27 BOOST_WINAPI_TEST_CONSTANT(SECTION_QUERY); 28 BOOST_WINAPI_TEST_CONSTANT(SECTION_MAP_WRITE); 29 BOOST_WINAPI_TEST_CONSTANT(SECTION_MAP_READ); 30 BOOST_WINAPI_TEST_CONSTANT(SECTION_MAP_EXECUTE); 31 BOOST_WINAPI_TEST_CONSTANT(SECTION_EXTEND_SIZE); 32 BOOST_WINAPI_TEST_CONSTANT(SECTION_ALL_ACCESS); 33 34 BOOST_WINAPI_TEST_CONSTANT(FILE_MAP_COPY); 35 BOOST_WINAPI_TEST_CONSTANT(FILE_MAP_WRITE); 36 BOOST_WINAPI_TEST_CONSTANT(FILE_MAP_READ); 37 BOOST_WINAPI_TEST_CONSTANT(FILE_MAP_ALL_ACCESS); 38 39 #if BOOST_WINAPI_PARTITION_DESKTOP 40 #if !defined(BOOST_NO_ANSI_APIS) 41 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(OpenFileMappingA); 42 #endif 43 #endif // BOOST_WINAPI_PARTITION_DESKTOP 44 45 #if BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM 46 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(MapViewOfFile); 47 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(MapViewOfFileEx); 48 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(OpenFileMappingW); 49 #endif // BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM 50 51 #if BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM 52 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(FlushViewOfFile); 53 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(UnmapViewOfFile); 54 #endif // BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM 55 56 return boost::report_errors(); 57 } 58