]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | /* |
2 | * Copyright 2010 Vicente J. Botet Escriba | |
3 | * Copyright 2015 Andrey Semashev | |
4 | * | |
5 | * Distributed under the Boost Software License, Version 1.0. | |
6 | * See http://www.boost.org/LICENSE_1_0.txt | |
7 | */ | |
8 | ||
9 | #ifndef BOOST_WINAPI_APC_HPP_INCLUDED_ | |
10 | #define BOOST_WINAPI_APC_HPP_INCLUDED_ | |
11 | ||
12 | #include <boost/winapi/config.hpp> | |
13 | ||
14 | #ifdef BOOST_HAS_PRAGMA_ONCE | |
15 | #pragma once | |
16 | #endif | |
17 | ||
18 | #if BOOST_WINAPI_PARTITION_APP_SYSTEM | |
19 | #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4 | |
20 | #include <boost/winapi/basic_types.hpp> | |
21 | ||
20effc67 TL |
22 | #include <boost/winapi/detail/header.hpp> |
23 | ||
b32b8144 FG |
24 | #if !defined( BOOST_USE_WINDOWS_H ) |
25 | extern "C" { | |
92f5a8d4 | 26 | typedef boost::winapi::VOID_ (BOOST_WINAPI_NTAPI_CC *PAPCFUNC)(boost::winapi::ULONG_PTR_ Parameter); |
b32b8144 | 27 | |
20effc67 | 28 | BOOST_WINAPI_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC |
b32b8144 FG |
29 | QueueUserAPC( |
30 | PAPCFUNC pfnAPC, | |
31 | boost::winapi::HANDLE_ hThread, | |
32 | boost::winapi::ULONG_PTR_ dwData); | |
33 | } | |
34 | #endif | |
35 | ||
36 | namespace boost { | |
37 | namespace winapi { | |
38 | typedef ::PAPCFUNC PAPCFUNC_; | |
39 | using ::QueueUserAPC; | |
40 | } | |
41 | } | |
42 | ||
20effc67 TL |
43 | #include <boost/winapi/detail/footer.hpp> |
44 | ||
b32b8144 FG |
45 | #endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4 |
46 | #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM | |
47 | #endif // BOOST_WINAPI_APC_HPP_INCLUDED_ |