summaryrefslogtreecommitdiff
path: root/boost/detail/winapi/handles.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/detail/winapi/handles.hpp')
-rw-r--r--boost/detail/winapi/handles.hpp73
1 files changed, 10 insertions, 63 deletions
diff --git a/boost/detail/winapi/handles.hpp b/boost/detail/winapi/handles.hpp
index f8ed825338..46ce752586 100644
--- a/boost/detail/winapi/handles.hpp
+++ b/boost/detail/winapi/handles.hpp
@@ -1,73 +1,20 @@
-// handles.hpp --------------------------------------------------------------//
-
-// Copyright 2010 Vicente J. Botet Escriba
-// Copyright 2015 Andrey Semashev
-
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
+/*
+ * Copyright 2017 Andrey Semashev
+ *
+ * Distributed under the Boost Software License, Version 1.0.
+ * See http://www.boost.org/LICENSE_1_0.txt
+ *
+ * This header is deprecated, use boost/winapi/handles.hpp instead.
+ */
#ifndef BOOST_DETAIL_WINAPI_HANDLES_HPP
#define BOOST_DETAIL_WINAPI_HANDLES_HPP
-#include <boost/detail/winapi/basic_types.hpp>
+#include <boost/winapi/handles.hpp>
+#include <boost/detail/winapi/detail/deprecated_namespace.hpp>
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
-#if !defined( BOOST_USE_WINDOWS_H )
-extern "C" {
-BOOST_SYMBOL_IMPORT boost::detail::winapi::BOOL_ WINAPI
-CloseHandle(boost::detail::winapi::HANDLE_ handle);
-
-BOOST_SYMBOL_IMPORT boost::detail::winapi::BOOL_ WINAPI
-DuplicateHandle(
- boost::detail::winapi::HANDLE_ hSourceProcessHandle,
- boost::detail::winapi::HANDLE_ hSourceHandle,
- boost::detail::winapi::HANDLE_ hTargetProcessHandle,
- boost::detail::winapi::HANDLE_* lpTargetHandle,
- boost::detail::winapi::DWORD_ dwDesiredAccess,
- boost::detail::winapi::BOOL_ bInheritHandle,
- boost::detail::winapi::DWORD_ dwOptions);
-}
-
-#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN10
-BOOST_SYMBOL_IMPORT boost::detail::winapi::BOOL_ WINAPI
-CompareObjectHandles(
- boost::detail::winapi::HANDLE_ hFirstObjectHandle,
- boost::detail::winapi::HANDLE_ hSecondObjectHandle);
-#endif
-
-#endif
-
-namespace boost {
-namespace detail {
-namespace winapi {
-
-using ::CloseHandle;
-using ::DuplicateHandle;
-
-#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN10
-using ::CompareObjectHandles;
-#endif
-
-#if defined( BOOST_USE_WINDOWS_H )
-const DWORD_ DUPLICATE_CLOSE_SOURCE_ = DUPLICATE_CLOSE_SOURCE;
-const DWORD_ DUPLICATE_SAME_ACCESS_ = DUPLICATE_SAME_ACCESS;
-const HANDLE_ INVALID_HANDLE_VALUE_ = INVALID_HANDLE_VALUE;
-#else
-const DWORD_ DUPLICATE_CLOSE_SOURCE_ = 1;
-const DWORD_ DUPLICATE_SAME_ACCESS_ = 2;
-const HANDLE_ INVALID_HANDLE_VALUE_ = (HANDLE_)(-1);
-#endif
-
-const DWORD_ duplicate_close_source = DUPLICATE_CLOSE_SOURCE_;
-const DWORD_ duplicate_same_access = DUPLICATE_SAME_ACCESS_;
-const HANDLE_ invalid_handle_value = INVALID_HANDLE_VALUE_;
-
-}
-}
-}
-
#endif // BOOST_DETAIL_WINAPI_HANDLES_HPP