• 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   wait_abi.cpp
9  * \author Andrey Semashev
10  * \date   10.03.2018
11  *
12  * \brief  This file contains ABI test for wait.hpp
13  */
14 
15 #include <boost/winapi/wait.hpp>
16 #include <windows.h>
17 #include "abi_test_tools.hpp"
18 
main()19 int main()
20 {
21     BOOST_WINAPI_TEST_CONSTANT(INFINITE);
22     BOOST_WINAPI_TEST_CONSTANT(WAIT_ABANDONED);
23     BOOST_WINAPI_TEST_CONSTANT(WAIT_OBJECT_0);
24     BOOST_WINAPI_TEST_CONSTANT(WAIT_TIMEOUT);
25     BOOST_WINAPI_TEST_CONSTANT(WAIT_FAILED);
26 
27 #if BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM
28     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(WaitForSingleObjectEx);
29 #endif
30 #if BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM
31 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
32     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(SignalObjectAndWait);
33 #endif
34 #endif
35 
36 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
37     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(WaitForMultipleObjects);
38     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(WaitForMultipleObjectsEx);
39     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(WaitForSingleObject);
40 #endif
41 
42     return boost::report_errors();
43 }
44