]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/winapi/include/boost/detail/winapi/system.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / winapi / include / boost / detail / winapi / system.hpp
CommitLineData
7c673cae
FG
1// system.hpp --------------------------------------------------------------//
2
3// Copyright 2010 Vicente J. Botet Escriba
4// Copyright (c) Microsoft Corporation 2014
5// Copyright 2015 Andrey Semashev
6
7// Distributed under the Boost Software License, Version 1.0.
8// See http://www.boost.org/LICENSE_1_0.txt
9
10
11#ifndef BOOST_DETAIL_WINAPI_SYSTEM_HPP
12#define BOOST_DETAIL_WINAPI_SYSTEM_HPP
13
14#include <boost/detail/winapi/basic_types.hpp>
15
16#ifdef BOOST_HAS_PRAGMA_ONCE
17#pragma once
18#endif
19
20#if !defined( BOOST_USE_WINDOWS_H )
21extern "C" {
22struct _SYSTEM_INFO;
23
24BOOST_SYMBOL_IMPORT boost::detail::winapi::VOID_ WINAPI
25GetSystemInfo(::_SYSTEM_INFO* lpSystemInfo);
26
27#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WINXP
28BOOST_SYMBOL_IMPORT boost::detail::winapi::VOID_ WINAPI
29GetNativeSystemInfo(::_SYSTEM_INFO* lpSystemInfo);
30#endif
31}
32#endif
33
34namespace boost {
35namespace detail {
36namespace winapi {
37
38typedef struct BOOST_DETAIL_WINAPI_MAY_ALIAS _SYSTEM_INFO {
39 union {
40 DWORD_ dwOemId;
41 struct {
42 WORD_ wProcessorArchitecture;
43 WORD_ wReserved;
44 } DUMMYSTRUCTNAME;
45 } DUMMYUNIONNAME;
46 DWORD_ dwPageSize;
47 LPVOID_ lpMinimumApplicationAddress;
48 LPVOID_ lpMaximumApplicationAddress;
49 DWORD_PTR_ dwActiveProcessorMask;
50 DWORD_ dwNumberOfProcessors;
51 DWORD_ dwProcessorType;
52 DWORD_ dwAllocationGranularity;
53 WORD_ wProcessorLevel;
54 WORD_ wProcessorRevision;
55} SYSTEM_INFO_, *LPSYSTEM_INFO_;
56
57BOOST_FORCEINLINE VOID_ GetSystemInfo(LPSYSTEM_INFO_ lpSystemInfo)
58{
59 ::GetSystemInfo(reinterpret_cast< ::_SYSTEM_INFO* >(lpSystemInfo));
60}
61
62#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WINXP
63BOOST_FORCEINLINE VOID_ GetNativeSystemInfo(LPSYSTEM_INFO_ lpSystemInfo)
64{
65 ::GetNativeSystemInfo(reinterpret_cast< ::_SYSTEM_INFO* >(lpSystemInfo));
66}
67#endif
68
69}
70}
71}
72
73#endif // BOOST_DETAIL_WINAPI_SYSTEM_HPP