GetThreadTimes.hpp 882 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // GetThreadTimes.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_GETTHREADTIMES_HPP
  6. #define BOOST_DETAIL_WINAPI_GETTHREADTIMES_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( BOOST_USE_WINDOWS_H )
  15. using ::GetThreadTimes;
  16. #else
  17. extern "C" __declspec(dllimport) BOOL_ WINAPI
  18. GetThreadTimes(
  19. HANDLE_ hThread,
  20. LPFILETIME_ lpCreationTime,
  21. LPFILETIME_ lpExitTime,
  22. LPFILETIME_ lpKernelTime,
  23. LPFILETIME_ lpUserTime
  24. );
  25. #endif
  26. }
  27. }
  28. }
  29. #endif // BOOST_DETAIL_WINAPI_GETTHREADTIMES_HPP