]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/winapi/handle_info.hpp
dd6734888bd50ebf9292b157aeed300b55fd96c4
[ceph.git] / ceph / src / boost / boost / winapi / handle_info.hpp
1 /*
2 * Copyright 2016 Klemens D. Morgenstern
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_HANDLE_INFO_HPP_INCLUDED_
9 #define BOOST_WINAPI_HANDLE_INFO_HPP_INCLUDED_
10
11 #include <boost/winapi/basic_types.hpp>
12
13 #ifdef BOOST_HAS_PRAGMA_ONCE
14 #pragma once
15 #endif
16
17 #if BOOST_WINAPI_PARTITION_DESKTOP
18
19 #if !defined( BOOST_USE_WINDOWS_H )
20 extern "C" {
21
22 BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ WINAPI
23 GetHandleInformation(
24 boost::winapi::HANDLE_ hObject,
25 boost::winapi::LPDWORD_ lpdwFlags);
26
27 BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ WINAPI
28 SetHandleInformation(
29 boost::winapi::HANDLE_ hObject,
30 boost::winapi::DWORD_ dwMask,
31 boost::winapi::DWORD_ dwFlags);
32
33 } // extern "C"
34 #endif
35
36 namespace boost {
37 namespace winapi {
38
39 using ::GetHandleInformation;
40 using ::SetHandleInformation;
41
42 #if defined( BOOST_USE_WINDOWS_H )
43
44 const DWORD_ HANDLE_FLAG_INHERIT_ = HANDLE_FLAG_INHERIT;
45 const DWORD_ HANDLE_FLAG_PROTECT_FROM_CLOSE_ = HANDLE_FLAG_PROTECT_FROM_CLOSE;
46
47 #else
48
49 const DWORD_ HANDLE_FLAG_INHERIT_ = 0x1;
50 const DWORD_ HANDLE_FLAG_PROTECT_FROM_CLOSE_ = 0x2;
51
52 #endif
53
54 }
55 }
56
57 #endif // BOOST_WINAPI_PARTITION_DESKTOP
58
59 #endif // BOOST_WINAPI_HANDLE_INFO_HPP_INCLUDED_