• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>
12 #include <boost/winapi/detail/header.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_WINAPI_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC GetCurrentProcessId(BOOST_WINAPI_DETAIL_VOID);
22 }
23 #endif
24 
25 namespace boost {
26 namespace winapi {
27 using ::GetCurrentProcessId;
28 }
29 }
30 
31 #include <boost/winapi/detail/footer.hpp>
32 
33 #endif // BOOST_WINAPI_GET_CURRENT_PROCESS_ID_HPP_INCLUDED_
34