2 * Copyright 2016 Klemens D. Morgenstern
4 * Distributed under the Boost Software License, Version 1.0.
5 * See http://www.boost.org/LICENSE_1_0.txt
8 #ifndef BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_
9 #define BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_
11 #include <boost/winapi/basic_types.hpp>
13 #ifdef BOOST_HAS_PRAGMA_ONCE
17 #if BOOST_WINAPI_PARTITION_DESKTOP
19 #if !defined( BOOST_USE_WINDOWS_H )
21 #if !defined( BOOST_NO_ANSI_APIS )
22 BOOST_SYMBOL_IMPORT boost::winapi::UINT_ WINAPI
24 boost::winapi::LPSTR_ lpBuffer,
25 boost::winapi::UINT_ uSize);
28 BOOST_SYMBOL_IMPORT boost::winapi::UINT_ WINAPI
30 boost::winapi::LPWSTR_ lpBuffer,
31 boost::winapi::UINT_ uSize);
38 #if !defined( BOOST_NO_ANSI_APIS )
39 using ::GetSystemDirectoryA;
41 using ::GetSystemDirectoryW;
43 #if !defined( BOOST_NO_ANSI_APIS )
44 BOOST_FORCEINLINE UINT_ get_system_directory(LPSTR_ lpBuffer, UINT_ uSize)
46 return ::GetSystemDirectoryA(lpBuffer, uSize);
50 BOOST_FORCEINLINE UINT_ get_system_directory(LPWSTR_ lpBuffer, UINT_ uSize)
52 return ::GetSystemDirectoryW(lpBuffer, uSize);
58 #endif // BOOST_WINAPI_PARTITION_DESKTOP
60 #endif // BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_