• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   environment_abi.cpp
9  * \author Andrey Semashev
10  * \date   09.03.2018
11  *
12  * \brief  This file contains ABI test for environment.hpp
13  */
14 
15 #include <boost/winapi/environment.hpp>
16 #include <windows.h>
17 #include "abi_test_tools.hpp"
18 
19 #undef GetEnvironmentStrings
20 
main()21 int main()
22 {
23 #if BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM
24 
25 #if !defined(BOOST_NO_ANSI_APIS)
26     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentStrings);
27     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(FreeEnvironmentStringsA);
28     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentVariableA);
29     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(SetEnvironmentVariableA);
30 #endif // !defined(BOOST_NO_ANSI_APIS)
31 
32     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentStringsW);
33     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(FreeEnvironmentStringsW);
34     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentVariableW);
35     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(SetEnvironmentVariableW);
36 
37 #endif // BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM
38 
39     return boost::report_errors();
40 }
41