File indexing completed on 2025-01-30 10:02:27
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_WINAPI_HANDLE_INFO_HPP_INCLUDED_
0009 #define BOOST_WINAPI_HANDLE_INFO_HPP_INCLUDED_
0010
0011 #include <boost/winapi/basic_types.hpp>
0012
0013 #ifdef BOOST_HAS_PRAGMA_ONCE
0014 #pragma once
0015 #endif
0016
0017 #if BOOST_WINAPI_PARTITION_DESKTOP
0018
0019 #include <boost/winapi/detail/header.hpp>
0020
0021 #if !defined( BOOST_USE_WINDOWS_H )
0022 extern "C" {
0023
0024 BOOST_WINAPI_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0025 GetHandleInformation(
0026 boost::winapi::HANDLE_ hObject,
0027 boost::winapi::LPDWORD_ lpdwFlags);
0028
0029 BOOST_WINAPI_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0030 SetHandleInformation(
0031 boost::winapi::HANDLE_ hObject,
0032 boost::winapi::DWORD_ dwMask,
0033 boost::winapi::DWORD_ dwFlags);
0034
0035 }
0036 #endif
0037
0038 namespace boost {
0039 namespace winapi {
0040
0041 using ::GetHandleInformation;
0042 using ::SetHandleInformation;
0043
0044 #if defined( BOOST_USE_WINDOWS_H )
0045
0046 BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_INHERIT_ = HANDLE_FLAG_INHERIT;
0047 BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_PROTECT_FROM_CLOSE_ = HANDLE_FLAG_PROTECT_FROM_CLOSE;
0048
0049 #else
0050
0051 BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_INHERIT_ = 0x1;
0052 BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_PROTECT_FROM_CLOSE_ = 0x2;
0053
0054 #endif
0055
0056 }
0057 }
0058
0059 #include <boost/winapi/detail/footer.hpp>
0060
0061 #endif
0062
0063 #endif