apc.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // apc.hpp --------------------------------------------------------------//
  2. // Copyright 2010 Vicente J. Botet Escriba
  3. // Copyright 2015 Andrey Semashev
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // See http://www.boost.org/LICENSE_1_0.txt
  6. #ifndef BOOST_DETAIL_WINAPI_APC_HPP
  7. #define BOOST_DETAIL_WINAPI_APC_HPP
  8. #include <boost/detail/winapi/config.hpp>
  9. #ifdef BOOST_HAS_PRAGMA_ONCE
  10. #pragma once
  11. #endif
  12. #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
  13. #include <boost/detail/winapi/basic_types.hpp>
  14. #if !defined( BOOST_USE_WINDOWS_H )
  15. extern "C" {
  16. typedef boost::detail::winapi::VOID_
  17. (NTAPI *PAPCFUNC)(boost::detail::winapi::ULONG_PTR_ Parameter);
  18. BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI
  19. QueueUserAPC(
  20. PAPCFUNC pfnAPC,
  21. boost::detail::winapi::HANDLE_ hThread,
  22. boost::detail::winapi::ULONG_PTR_ dwData);
  23. }
  24. #endif
  25. namespace boost {
  26. namespace detail {
  27. namespace winapi {
  28. typedef ::PAPCFUNC PAPCFUNC_;
  29. using ::QueueUserAPC;
  30. }
  31. }
  32. }
  33. #endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
  34. #endif // BOOST_DETAIL_WINAPI_APC_HPP