File indexing completed on 2025-01-18 09:53:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_WINAPI_SYSTEM_HPP_INCLUDED_
0011 #define BOOST_WINAPI_SYSTEM_HPP_INCLUDED_
0012
0013 #include <boost/winapi/basic_types.hpp>
0014 #include <boost/winapi/detail/header.hpp>
0015
0016 #ifdef BOOST_HAS_PRAGMA_ONCE
0017 #pragma once
0018 #endif
0019
0020 #if !defined( BOOST_USE_WINDOWS_H )
0021 extern "C" {
0022 struct _SYSTEM_INFO;
0023
0024 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
0025 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC
0026 GetSystemInfo(::_SYSTEM_INFO* lpSystemInfo);
0027 #endif
0028
0029 #if BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM
0030 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WINXP
0031 BOOST_WINAPI_IMPORT boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC
0032 GetNativeSystemInfo(::_SYSTEM_INFO* lpSystemInfo);
0033 #endif
0034 #endif
0035 }
0036 #endif
0037
0038 namespace boost {
0039 namespace winapi {
0040
0041 typedef struct BOOST_MAY_ALIAS _SYSTEM_INFO {
0042 BOOST_WINAPI_DETAIL_EXTENSION union {
0043 DWORD_ dwOemId;
0044 BOOST_WINAPI_DETAIL_EXTENSION struct {
0045 WORD_ wProcessorArchitecture;
0046 WORD_ wReserved;
0047 };
0048 };
0049 DWORD_ dwPageSize;
0050 LPVOID_ lpMinimumApplicationAddress;
0051 LPVOID_ lpMaximumApplicationAddress;
0052 DWORD_PTR_ dwActiveProcessorMask;
0053 DWORD_ dwNumberOfProcessors;
0054 DWORD_ dwProcessorType;
0055 DWORD_ dwAllocationGranularity;
0056 WORD_ wProcessorLevel;
0057 WORD_ wProcessorRevision;
0058 } SYSTEM_INFO_, *LPSYSTEM_INFO_;
0059
0060 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
0061 BOOST_FORCEINLINE VOID_ GetSystemInfo(LPSYSTEM_INFO_ lpSystemInfo)
0062 {
0063 ::GetSystemInfo(reinterpret_cast< ::_SYSTEM_INFO* >(lpSystemInfo));
0064 }
0065 #endif
0066
0067 #if BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM
0068 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WINXP
0069 BOOST_FORCEINLINE VOID_ GetNativeSystemInfo(LPSYSTEM_INFO_ lpSystemInfo)
0070 {
0071 ::GetNativeSystemInfo(reinterpret_cast< ::_SYSTEM_INFO* >(lpSystemInfo));
0072 }
0073 #endif
0074 #endif
0075 }
0076 }
0077
0078 #include <boost/winapi/detail/footer.hpp>
0079
0080 #endif