get_current_process_id.hpp 769 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2010 Vicente J. Botet Escriba
  3. *
  4. * Distributed under the Boost Software License, Version 1.0.
  5. * See http://www.boost.org/LICENSE_1_0.txt
  6. */
  7. #ifndef BOOST_WINAPI_GET_CURRENT_PROCESS_ID_HPP_INCLUDED_
  8. #define BOOST_WINAPI_GET_CURRENT_PROCESS_ID_HPP_INCLUDED_
  9. #include <boost/winapi/basic_types.hpp>
  10. #ifdef BOOST_HAS_PRAGMA_ONCE
  11. #pragma once
  12. #endif
  13. // Windows CE define GetCurrentProcessId as an inline function in kfuncs.h
  14. #if !defined( BOOST_USE_WINDOWS_H ) && !defined( UNDER_CE )
  15. extern "C" {
  16. BOOST_SYMBOL_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC GetCurrentProcessId(BOOST_WINAPI_DETAIL_VOID);
  17. }
  18. #endif
  19. namespace boost {
  20. namespace winapi {
  21. using ::GetCurrentProcessId;
  22. }
  23. }
  24. #endif // BOOST_WINAPI_GET_CURRENT_PROCESS_ID_HPP_INCLUDED_