Imported Upstream version 1.51.0
[platform/upstream/boost.git] / boost / detail / win / GetThreadTimes.hpp
1 //  GetThreadTimes.hpp  --------------------------------------------------------------//
2
3 //  Copyright 2010 Vicente J. Botet Escriba
4
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  See http://www.boost.org/LICENSE_1_0.txt
7
8
9 #ifndef BOOST_DETAIL_WIN_GETTHREADTIMES_HPP
10 #define BOOST_DETAIL_WIN_GETTHREADTIMES_HPP
11
12 #include <boost/detail/win/time.hpp>
13
14 namespace boost {
15 namespace detail {
16 namespace win32 {
17 #if defined( BOOST_USE_WINDOWS_H )
18     using ::GetThreadTimes;
19 #else
20     extern "C" __declspec(dllimport) BOOL_ WINAPI
21         GetThreadTimes(
22             HANDLE_ hThread,
23             LPFILETIME_ lpCreationTime,
24             LPFILETIME_ lpExitTime,
25             LPFILETIME_ lpKernelTime,
26             LPFILETIME_ lpUserTime
27         );
28 #endif
29 }
30 }
31 }
32
33 #endif // BOOST_DETAIL_WIN_GETTHREADTIMES_HPP