process.hpp 827 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // process.hpp --------------------------------------------------------------//
  2. // Copyright 2010 Vicente J. Botet Escriba
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. #ifndef BOOST_DETAIL_WINAPI_PROCESS_HPP
  6. #define BOOST_DETAIL_WINAPI_PROCESS_HPP
  7. #include <boost/detail/winapi/basic_types.hpp>
  8. #include <boost/detail/winapi/GetCurrentProcess.hpp>
  9. #ifdef BOOST_HAS_PRAGMA_ONCE
  10. #pragma once
  11. #endif
  12. namespace boost {
  13. namespace detail {
  14. namespace winapi {
  15. #if defined( BOOST_USE_WINDOWS_H )
  16. using ::GetCurrentProcessId;
  17. #else
  18. # ifndef UNDER_CE
  19. extern "C" {
  20. __declspec(dllimport) unsigned long __stdcall
  21. GetCurrentProcessId(void);
  22. }
  23. # else
  24. using ::GetCurrentProcessId;
  25. # endif
  26. #endif
  27. }
  28. }
  29. }
  30. #endif // BOOST_DETAIL_WINAPI_PROCESS_HPP