]>
Commit | Line | Data |
---|---|---|
1 | // get_current_process_id.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_WINAPI_GET_CURRENT_PROCESS_ID_HPP | |
10 | #define BOOST_DETAIL_WINAPI_GET_CURRENT_PROCESS_ID_HPP | |
11 | ||
12 | #include <boost/detail/winapi/basic_types.hpp> | |
13 | ||
14 | #ifdef BOOST_HAS_PRAGMA_ONCE | |
15 | #pragma once | |
16 | #endif | |
17 | ||
18 | // Windows CE define GetCurrentProcessId as an inline function in kfuncs.h | |
19 | #if !defined( BOOST_USE_WINDOWS_H ) && !defined( UNDER_CE ) | |
20 | extern "C" { | |
21 | BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI GetCurrentProcessId(BOOST_DETAIL_WINAPI_VOID); | |
22 | } | |
23 | #endif | |
24 | ||
25 | namespace boost { | |
26 | namespace detail { | |
27 | namespace winapi { | |
28 | using ::GetCurrentProcessId; | |
29 | } | |
30 | } | |
31 | } | |
32 | ||
33 | #endif // BOOST_DETAIL_WINAPI_GET_CURRENT_PROCESS_ID_HPP |