]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | /* |
2 | * Copyright 2010 Vicente J. Botet Escriba | |
3 | * | |
4 | * Distributed under the Boost Software License, Version 1.0. | |
5 | * See http://www.boost.org/LICENSE_1_0.txt | |
6 | */ | |
7 | ||
8 | #ifndef BOOST_WINAPI_GET_CURRENT_PROCESS_ID_HPP_INCLUDED_ | |
9 | #define BOOST_WINAPI_GET_CURRENT_PROCESS_ID_HPP_INCLUDED_ | |
10 | ||
11 | #include <boost/winapi/basic_types.hpp> | |
20effc67 | 12 | #include <boost/winapi/detail/header.hpp> |
b32b8144 FG |
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" { | |
20effc67 | 21 | BOOST_WINAPI_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC GetCurrentProcessId(BOOST_WINAPI_DETAIL_VOID); |
b32b8144 FG |
22 | } |
23 | #endif | |
24 | ||
25 | namespace boost { | |
26 | namespace winapi { | |
27 | using ::GetCurrentProcessId; | |
28 | } | |
29 | } | |
30 | ||
20effc67 TL |
31 | #include <boost/winapi/detail/footer.hpp> |
32 | ||
b32b8144 | 33 | #endif // BOOST_WINAPI_GET_CURRENT_PROCESS_ID_HPP_INCLUDED_ |