File indexing completed on 2025-01-18 09:53:47
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_WINAPI_GET_PROCESS_TIMES_HPP_INCLUDED_
0009 #define BOOST_WINAPI_GET_PROCESS_TIMES_HPP_INCLUDED_
0010
0011 #include <boost/winapi/config.hpp>
0012
0013 #ifdef BOOST_HAS_PRAGMA_ONCE
0014 #pragma once
0015 #endif
0016
0017
0018 #if !defined( UNDER_CE )
0019
0020 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
0021
0022 #include <boost/winapi/basic_types.hpp>
0023 #include <boost/winapi/time.hpp>
0024 #include <boost/winapi/detail/header.hpp>
0025
0026 #if !defined( BOOST_USE_WINDOWS_H )
0027 extern "C" {
0028 BOOST_WINAPI_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0029 GetProcessTimes(
0030 boost::winapi::HANDLE_ hProcess,
0031 ::_FILETIME* lpCreationTime,
0032 ::_FILETIME* lpExitTime,
0033 ::_FILETIME* lpKernelTime,
0034 ::_FILETIME* lpUserTime);
0035 }
0036 #endif
0037
0038 namespace boost {
0039 namespace winapi {
0040
0041 BOOST_FORCEINLINE BOOL_ GetProcessTimes(
0042 HANDLE_ hProcess,
0043 LPFILETIME_ lpCreationTime,
0044 LPFILETIME_ lpExitTime,
0045 LPFILETIME_ lpKernelTime,
0046 LPFILETIME_ lpUserTime)
0047 {
0048 return ::GetProcessTimes(
0049 hProcess,
0050 reinterpret_cast< ::_FILETIME* >(lpCreationTime),
0051 reinterpret_cast< ::_FILETIME* >(lpExitTime),
0052 reinterpret_cast< ::_FILETIME* >(lpKernelTime),
0053 reinterpret_cast< ::_FILETIME* >(lpUserTime));
0054 }
0055
0056 }
0057 }
0058
0059 #include <boost/winapi/detail/footer.hpp>
0060
0061 #endif
0062 #endif
0063 #endif