~ubuntu-branches/debian/sid/boost1.49/sid

« back to all changes in this revision

Viewing changes to boost/detail/win/process.hpp

  • Committer: Package Import Robot
  • Author(s): Steve M. Robbins
  • Date: 2012-02-26 00:31:44 UTC
  • Revision ID: package-import@ubuntu.com-20120226003144-eaytp12cbf6ubpms
Tags: upstream-1.49.0
ImportĀ upstreamĀ versionĀ 1.49.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  process.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_WIN_PROCESS_HPP
 
10
#define BOOST_DETAIL_WIN_PROCESS_HPP
 
11
 
 
12
#include <boost/detail/win/basic_types.hpp>
 
13
#include <boost/detail/win/GetCurrentProcess.hpp>
 
14
 
 
15
namespace boost {
 
16
namespace detail {
 
17
namespace win32 {
 
18
#if defined( BOOST_USE_WINDOWS_H )
 
19
    using ::GetCurrentProcessId;
 
20
#else
 
21
# ifndef UNDER_CE
 
22
extern "C" { 
 
23
    __declspec(dllimport) unsigned long __stdcall 
 
24
        GetCurrentProcessId(void);
 
25
}    
 
26
# else
 
27
    using ::GetCurrentProcessId;
 
28
# endif
 
29
#endif
 
30
}
 
31
}
 
32
}
 
33
#endif // BOOST_DETAIL_WIN_PROCESS_HPP