Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:47

0001 /*
0002  * Copyright 2016 Klemens D. Morgenstern
0003  *
0004  * Distributed under the Boost Software License, Version 1.0.
0005  * See http://www.boost.org/LICENSE_1_0.txt
0006  */
0007 
0008 #ifndef BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_
0009 #define BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_
0010 
0011 #include <boost/winapi/basic_types.hpp>
0012 
0013 #ifdef BOOST_HAS_PRAGMA_ONCE
0014 #pragma once
0015 #endif
0016 
0017 #if BOOST_WINAPI_PARTITION_DESKTOP
0018 
0019 #include <boost/winapi/detail/header.hpp>
0020 
0021 #if !defined( BOOST_USE_WINDOWS_H )
0022 extern "C" {
0023 #if !defined( BOOST_NO_ANSI_APIS )
0024 BOOST_WINAPI_IMPORT boost::winapi::UINT_ BOOST_WINAPI_WINAPI_CC
0025 GetSystemDirectoryA(
0026     boost::winapi::LPSTR_  lpBuffer,
0027     boost::winapi::UINT_   uSize);
0028 #endif
0029 
0030 BOOST_WINAPI_IMPORT boost::winapi::UINT_ BOOST_WINAPI_WINAPI_CC
0031 GetSystemDirectoryW(
0032     boost::winapi::LPWSTR_ lpBuffer,
0033     boost::winapi::UINT_   uSize);
0034 } // extern "C"
0035 #endif
0036 
0037 namespace boost {
0038 namespace winapi {
0039 
0040 #if !defined( BOOST_NO_ANSI_APIS )
0041 using ::GetSystemDirectoryA;
0042 #endif
0043 using ::GetSystemDirectoryW;
0044 
0045 #if !defined( BOOST_NO_ANSI_APIS )
0046 BOOST_FORCEINLINE UINT_ get_system_directory(LPSTR_ lpBuffer,  UINT_ uSize)
0047 {
0048     return ::GetSystemDirectoryA(lpBuffer, uSize);
0049 }
0050 #endif
0051 
0052 BOOST_FORCEINLINE UINT_ get_system_directory(LPWSTR_ lpBuffer,  UINT_ uSize)
0053 {
0054     return ::GetSystemDirectoryW(lpBuffer, uSize);
0055 }
0056 
0057 }
0058 }
0059 
0060 #include <boost/winapi/detail/footer.hpp>
0061 
0062 #endif // BOOST_WINAPI_PARTITION_DESKTOP
0063 
0064 #endif // BOOST_WINAPI_GET_SYSTEM_DIRECTORY_HPP_INCLUDED_