apc.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #include <boost/winapi/detail/header.hpp>
  18. #if !defined( BOOST_USE_WINDOWS_H )
  19. extern "C" {
  20. typedef boost::winapi::VOID_ (BOOST_WINAPI_NTAPI_CC *PAPCFUNC)(boost::winapi::ULONG_PTR_ Parameter);
  21. BOOST_WINAPI_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC
  22. QueueUserAPC(
  23. PAPCFUNC pfnAPC,
  24. boost::winapi::HANDLE_ hThread,
  25. boost::winapi::ULONG_PTR_ dwData);
  26. }
  27. #endif
  28. namespace boost {
  29. namespace winapi {
  30. typedef ::PAPCFUNC PAPCFUNC_;
  31. using ::QueueUserAPC;
  32. }
  33. }
  34. #include <boost/winapi/detail/footer.hpp>
  35. #endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
  36. #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
  37. #endif // BOOST_WINAPI_APC_HPP_INCLUDED_