Chris@16: // GetProcessTimes.hpp --------------------------------------------------------------// Chris@16: Chris@16: // Copyright 2010 Vicente J. Botet Escriba Chris@16: Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // See http://www.boost.org/LICENSE_1_0.txt Chris@16: Chris@16: Chris@16: #ifndef BOOST_DETAIL_WINAPI_GETPROCESSTIMES_HPP Chris@16: #define BOOST_DETAIL_WINAPI_GETPROCESSTIMES_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #ifdef BOOST_HAS_PRAGMA_ONCE Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: namespace detail { Chris@16: namespace winapi { Chris@16: #if !defined(UNDER_CE) // Windows CE does not define GetProcessTimes Chris@16: #if defined( BOOST_USE_WINDOWS_H ) Chris@16: using ::GetProcessTimes; Chris@16: #else Chris@16: extern "C" __declspec(dllimport) BOOL_ WINAPI Chris@16: GetProcessTimes( Chris@16: HANDLE_ hProcess, Chris@16: LPFILETIME_ lpCreationTime, Chris@16: LPFILETIME_ lpExitTime, Chris@16: LPFILETIME_ lpKernelTime, Chris@16: LPFILETIME_ lpUserTime Chris@16: ); Chris@16: #endif Chris@16: #endif Chris@16: } Chris@16: } Chris@16: } Chris@16: Chris@16: #endif // BOOST_DETAIL_WINAPI_GETPROCESSTIMES_HPP