apc.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #ifndef BOOST_WINAPI_APC_HPP_INCLUDED_
  9. #define BOOST_WINAPI_APC_HPP_INCLUDED_
  10. #include <boost/winapi/config.hpp>
  11. #ifdef BOOST_HAS_PRAGMA_ONCE
  12. #pragma once
  13. #endif
  14. #if BOOST_WINAPI_PARTITION_APP_SYSTEM
  15. #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
  16. #include <boost/winapi/basic_types.hpp>
  17. #if !defined( BOOST_USE_WINDOWS_H )
  18. extern "C" {
  19. typedef boost::winapi::VOID_ (BOOST_WINAPI_NTAPI_CC *PAPCFUNC)(boost::winapi::ULONG_PTR_ Parameter);
  20. BOOST_SYMBOL_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC
  21. QueueUserAPC(
  22. PAPCFUNC pfnAPC,
  23. boost::winapi::HANDLE_ hThread,
  24. boost::winapi::ULONG_PTR_ dwData);
  25. }
  26. #endif
  27. namespace boost {
  28. namespace winapi {
  29. typedef ::PAPCFUNC PAPCFUNC_;
  30. using ::QueueUserAPC;
  31. }
  32. }
  33. #endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
  34. #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
  35. #endif // BOOST_WINAPI_APC_HPP_INCLUDED_