1 // GetCurrentThread.hpp --------------------------------------------------------------//
3 // Copyright 2010 Vicente J. Botet Escriba
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
9 #ifndef BOOST_DETAIL_WIN_GETCURRENTTHREAD_HPP
10 #define BOOST_DETAIL_WIN_GETCURRENTTHREAD_HPP
12 #include <boost/detail/win/basic_types.hpp>
17 #if defined( UNDER_CE )
18 // Windows CE define GetCurrentThread as an inline function in kfuncs.h
19 inline HANDLE_ GetCurrentThread()
21 return ::GetCurrentThread();
24 #if defined( BOOST_USE_WINDOWS_H )
25 using ::GetCurrentThread;
27 extern "C" __declspec(dllimport) HANDLE_ WINAPI GetCurrentThread();
34 #endif // BOOST_DETAIL_WIN_TIME_HPP