/* * 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_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_ #define ACTIV_BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_ #include #ifdef ACTIV_BOOST_HAS_PRAGMA_ONCE #pragma once #endif #if ACTIV_BOOST_WINAPI_PARTITION_DESKTOP #include #if !defined( ACTIV_BOOST_USE_WINDOWS_H ) extern "C" { #if !defined( ACTIV_BOOST_NO_ANSI_APIS ) ACTIV_BOOST_WINAPI_IMPORT Boost::winapi::UINT_ ACTIV_BOOST_WINAPI_WINAPI_CC GetSystemDirectoryA( Boost::winapi::LPSTR_ lpBuffer, Boost::winapi::UINT_ uSize); #endif ACTIV_BOOST_WINAPI_IMPORT Boost::winapi::UINT_ ACTIV_BOOST_WINAPI_WINAPI_CC GetSystemDirectoryW( Boost::winapi::LPWSTR_ lpBuffer, Boost::winapi::UINT_ uSize); } // extern "C" #endif namespace Boost { namespace winapi { #if !defined( ACTIV_BOOST_NO_ANSI_APIS ) using ::GetSystemDirectoryA; #endif using ::GetSystemDirectoryW; #if !defined( ACTIV_BOOST_NO_ANSI_APIS ) ACTIV_BOOST_FORCEINLINE UINT_ get_system_directory(LPSTR_ lpBuffer, UINT_ uSize) { return ::GetSystemDirectoryA(lpBuffer, uSize); } #endif ACTIV_BOOST_FORCEINLINE UINT_ get_system_directory(LPWSTR_ lpBuffer, UINT_ uSize) { return ::GetSystemDirectoryW(lpBuffer, uSize); } } } #include #endif // ACTIV_BOOST_WINAPI_PARTITION_DESKTOP #endif // ACTIV_BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_