GetProcessTimes.hpp 966 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // GetProcessTimes.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_GETPROCESSTIMES_HPP
  6. #define BOOST_DETAIL_WINAPI_GETPROCESSTIMES_HPP
  7. #include <boost/detail/winapi/time.hpp>
  8. #ifdef BOOST_HAS_PRAGMA_ONCE
  9. #pragma once
  10. #endif
  11. namespace boost {
  12. namespace detail {
  13. namespace winapi {
  14. #if !defined(UNDER_CE) // Windows CE does not define GetProcessTimes
  15. #if defined( BOOST_USE_WINDOWS_H )
  16. using ::GetProcessTimes;
  17. #else
  18. extern "C" __declspec(dllimport) BOOL_ WINAPI
  19. GetProcessTimes(
  20. HANDLE_ hProcess,
  21. LPFILETIME_ lpCreationTime,
  22. LPFILETIME_ lpExitTime,
  23. LPFILETIME_ lpKernelTime,
  24. LPFILETIME_ lpUserTime
  25. );
  26. #endif
  27. #endif
  28. }
  29. }
  30. }
  31. #endif // BOOST_DETAIL_WINAPI_GETPROCESSTIMES_HPP