From 3fdc3e5ee96dca5b11d1694975a65200787eab86 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Thu, 5 Dec 2019 15:11:01 +0900 Subject: Imported Upstream version 1.66.0 --- boost/detail/winapi/directory_management.hpp | 94 +++------------------------- 1 file changed, 10 insertions(+), 84 deletions(-) (limited to 'boost/detail/winapi/directory_management.hpp') diff --git a/boost/detail/winapi/directory_management.hpp b/boost/detail/winapi/directory_management.hpp index 1da53c38cc..4fd3bf972f 100644 --- a/boost/detail/winapi/directory_management.hpp +++ b/boost/detail/winapi/directory_management.hpp @@ -1,94 +1,20 @@ -// directory_management.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/directory_management.hpp instead. + */ #ifndef BOOST_DETAIL_WINAPI_DIRECTORY_MANAGEMENT_HPP #define BOOST_DETAIL_WINAPI_DIRECTORY_MANAGEMENT_HPP -#include -#include +#include +#include #ifdef BOOST_HAS_PRAGMA_ONCE #pragma once #endif -#if !defined( BOOST_USE_WINDOWS_H ) -extern "C" { -#if !defined( BOOST_NO_ANSI_APIS ) -BOOST_SYMBOL_IMPORT boost::detail::winapi::BOOL_ WINAPI - CreateDirectoryA(boost::detail::winapi::LPCSTR_, ::_SECURITY_ATTRIBUTES*); -BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI - GetTempPathA(boost::detail::winapi::DWORD_ length, boost::detail::winapi::LPSTR_ buffer); -BOOST_SYMBOL_IMPORT boost::detail::winapi::BOOL_ WINAPI - RemoveDirectoryA(boost::detail::winapi::LPCSTR_); -#endif -BOOST_SYMBOL_IMPORT boost::detail::winapi::BOOL_ WINAPI - CreateDirectoryW(boost::detail::winapi::LPCWSTR_, ::_SECURITY_ATTRIBUTES*); -BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI - GetTempPathW(boost::detail::winapi::DWORD_ length, boost::detail::winapi::LPWSTR_ buffer); -BOOST_SYMBOL_IMPORT boost::detail::winapi::BOOL_ WINAPI - RemoveDirectoryW(boost::detail::winapi::LPCWSTR_); -} -#endif - -namespace boost { -namespace detail { -namespace winapi { - -#if !defined( BOOST_NO_ANSI_APIS ) -using ::GetTempPathA; -using ::RemoveDirectoryA; -#endif -using ::GetTempPathW; -using ::RemoveDirectoryW; - -#if !defined( BOOST_NO_ANSI_APIS ) -BOOST_FORCEINLINE BOOL_ CreateDirectoryA(LPCSTR_ pPathName, PSECURITY_ATTRIBUTES_ pSecurityAttributes) -{ - return ::CreateDirectoryA(pPathName, reinterpret_cast< ::_SECURITY_ATTRIBUTES* >(pSecurityAttributes)); -} -#endif - -BOOST_FORCEINLINE BOOL_ CreateDirectoryW(LPCWSTR_ pPathName, PSECURITY_ATTRIBUTES_ pSecurityAttributes) -{ - return ::CreateDirectoryW(pPathName, reinterpret_cast< ::_SECURITY_ATTRIBUTES* >(pSecurityAttributes)); -} - -#if !defined( BOOST_NO_ANSI_APIS ) -BOOST_FORCEINLINE BOOL_ create_directory(LPCSTR_ pPathName, PSECURITY_ATTRIBUTES_ pSecurityAttributes) -{ - return ::CreateDirectoryA(pPathName, reinterpret_cast< ::_SECURITY_ATTRIBUTES* >(pSecurityAttributes)); -} -BOOST_FORCEINLINE DWORD_ get_temp_path(DWORD_ length, LPSTR_ buffer) -{ - return ::GetTempPathA(length, buffer); -} -BOOST_FORCEINLINE BOOL_ remove_directory(LPCSTR_ pPathName) -{ - return ::RemoveDirectoryA(pPathName); -} -#endif - -BOOST_FORCEINLINE BOOL_ create_directory(LPCWSTR_ pPathName, PSECURITY_ATTRIBUTES_ pSecurityAttributes) -{ - return ::CreateDirectoryW(pPathName, reinterpret_cast< ::_SECURITY_ATTRIBUTES* >(pSecurityAttributes)); -} -BOOST_FORCEINLINE DWORD_ get_temp_path(DWORD_ length, LPWSTR_ buffer) -{ - return ::GetTempPathW(length, buffer); -} -BOOST_FORCEINLINE BOOL_ remove_directory(LPCWSTR_ pPathName) -{ - return ::RemoveDirectoryW(pPathName); -} - -} // namespace winapi -} // namespace detail -} // namespace boost - #endif // BOOST_DETAIL_WINAPI_DIRECTORY_MANAGEMENT_HPP -- cgit v1.2.3