get_current_process.hpp 874 B

12345678910111213141516171819202122232425262728293031323334
  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_GET_CURRENT_PROCESS_HPP_INCLUDED_
  9. #define BOOST_WINAPI_GET_CURRENT_PROCESS_HPP_INCLUDED_
  10. #include <boost/winapi/basic_types.hpp>
  11. #include <boost/winapi/detail/header.hpp>
  12. #ifdef BOOST_HAS_PRAGMA_ONCE
  13. #pragma once
  14. #endif
  15. // Windows CE define GetCurrentProcess as an inline function in kfuncs.h
  16. #if !defined( BOOST_USE_WINDOWS_H ) && !defined( UNDER_CE )
  17. extern "C" {
  18. BOOST_WINAPI_IMPORT boost::winapi::HANDLE_ BOOST_WINAPI_WINAPI_CC GetCurrentProcess(BOOST_WINAPI_DETAIL_VOID);
  19. }
  20. #endif
  21. namespace boost {
  22. namespace winapi {
  23. using ::GetCurrentProcess;
  24. }
  25. }
  26. #include <boost/winapi/detail/footer.hpp>
  27. #endif // BOOST_WINAPI_GET_CURRENT_PROCESS_HPP_INCLUDED_