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 handles_abi.cpp 9 * \author Andrey Semashev 10 * \date 10.03.2018 11 * 12 * \brief This file contains ABI test for handles.hpp 13 */ 14 15 #include <boost/winapi/handles.hpp> 16 #include <windows.h> 17 #include "abi_test_tools.hpp" 18 main()19int main() 20 { 21 BOOST_WINAPI_TEST_CONSTANT(DUPLICATE_CLOSE_SOURCE); 22 BOOST_WINAPI_TEST_CONSTANT(DUPLICATE_SAME_ACCESS); 23 BOOST_WINAPI_TEST_CONSTANT(INVALID_HANDLE_VALUE); 24 25 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(CloseHandle); 26 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(DuplicateHandle); 27 28 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN10 29 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(CompareObjectHandles); 30 #endif 31 32 return boost::report_errors(); 33 } 34