Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*
0002  * Copyright 2010 Vicente J. Botet Escriba
0003  * Copyright 2015 Andrey Semashev
0004  *
0005  * Distributed under the Boost Software License, Version 1.0.
0006  * See http://www.boost.org/LICENSE_1_0.txt
0007  */
0008 
0009 #ifndef BOOST_WINAPI_LOCAL_MEMORY_HPP_INCLUDED_
0010 #define BOOST_WINAPI_LOCAL_MEMORY_HPP_INCLUDED_
0011 
0012 #include <boost/winapi/basic_types.hpp>
0013 
0014 #ifdef BOOST_HAS_PRAGMA_ONCE
0015 #pragma once
0016 #endif
0017 
0018 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
0019 
0020 #include <boost/winapi/detail/header.hpp>
0021 
0022 #if !defined( BOOST_USE_WINDOWS_H )
0023 namespace boost { namespace winapi {
0024 typedef HANDLE_ HLOCAL_;
0025 }}
0026 
0027 extern "C" {
0028 
0029 #if defined (_WIN32_WCE )
0030 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC
0031 LocalAlloc(
0032     boost::winapi::UINT_ uFlags,
0033     boost::winapi::UINT_ uBytes);
0034 
0035 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC
0036 LocalReAlloc(
0037     boost::winapi::HLOCAL_ hMem,
0038     boost::winapi::UINT_ uBytes,
0039     boost::winapi::UINT_ uFlags);
0040 #else
0041 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC
0042 LocalAlloc(
0043     boost::winapi::UINT_ uFlags,
0044     boost::winapi::SIZE_T_ uBytes);
0045 
0046 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC
0047 LocalReAlloc(
0048     boost::winapi::HLOCAL_ hMem,
0049     boost::winapi::SIZE_T_ uBytes,
0050     boost::winapi::UINT_ uFlags);
0051 #endif
0052 
0053 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC LocalFree(boost::winapi::HLOCAL_ hMem);
0054 } // extern "C"
0055 #endif
0056 
0057 namespace boost {
0058 namespace winapi {
0059 #if defined( BOOST_USE_WINDOWS_H )
0060 typedef ::HLOCAL HLOCAL_;
0061 #endif
0062 using ::LocalAlloc;
0063 using ::LocalReAlloc;
0064 using ::LocalFree;
0065 }
0066 }
0067 
0068 #include <boost/winapi/detail/footer.hpp>
0069 
0070 #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
0071 #endif // BOOST_WINAPI_LOCAL_MEMORY_HPP_INCLUDED_