64 lines
1.5 KiB
C++
64 lines
1.5 KiB
C++
/*
|
|
* Copyright 2016 Klemens D. Morgenstern
|
|
*
|
|
* Distributed under the Boost Software License, Version 1.0.
|
|
* See http://www.boost.org/LICENSE_1_0.txt
|
|
*/
|
|
|
|
#ifndef ACTIV_BOOST_WINAPI_HANDLE_INFO_HPP_INCLUDED_
|
|
#define ACTIV_BOOST_WINAPI_HANDLE_INFO_HPP_INCLUDED_
|
|
|
|
#include <ActivBoost/winapi/basic_types.hpp>
|
|
|
|
#ifdef ACTIV_BOOST_HAS_PRAGMA_ONCE
|
|
#pragma once
|
|
#endif
|
|
|
|
#if ACTIV_BOOST_WINAPI_PARTITION_DESKTOP
|
|
|
|
#include <ActivBoost/winapi/detail/header.hpp>
|
|
|
|
#if !defined( ACTIV_BOOST_USE_WINDOWS_H )
|
|
extern "C" {
|
|
|
|
ACTIV_BOOST_WINAPI_IMPORT Boost::winapi::BOOL_ ACTIV_BOOST_WINAPI_WINAPI_CC
|
|
GetHandleInformation(
|
|
Boost::winapi::HANDLE_ hObject,
|
|
Boost::winapi::LPDWORD_ lpdwFlags);
|
|
|
|
ACTIV_BOOST_WINAPI_IMPORT Boost::winapi::BOOL_ ACTIV_BOOST_WINAPI_WINAPI_CC
|
|
SetHandleInformation(
|
|
Boost::winapi::HANDLE_ hObject,
|
|
Boost::winapi::DWORD_ dwMask,
|
|
Boost::winapi::DWORD_ dwFlags);
|
|
|
|
} // extern "C"
|
|
#endif
|
|
|
|
namespace Boost {
|
|
namespace winapi {
|
|
|
|
using ::GetHandleInformation;
|
|
using ::SetHandleInformation;
|
|
|
|
#if defined( ACTIV_BOOST_USE_WINDOWS_H )
|
|
|
|
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_INHERIT_ = HANDLE_FLAG_INHERIT;
|
|
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_PROTECT_FROM_CLOSE_ = HANDLE_FLAG_PROTECT_FROM_CLOSE;
|
|
|
|
#else
|
|
|
|
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_INHERIT_ = 0x1;
|
|
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ HANDLE_FLAG_PROTECT_FROM_CLOSE_ = 0x2;
|
|
|
|
#endif
|
|
|
|
}
|
|
}
|
|
|
|
#include <ActivBoost/winapi/detail/footer.hpp>
|
|
|
|
#endif // ACTIV_BOOST_WINAPI_PARTITION_DESKTOP
|
|
|
|
#endif // ACTIV_BOOST_WINAPI_HANDLE_INFO_HPP_INCLUDED_
|