Merge pull request #1665 from alexanderkyte/sgen-alloc-assert
[mono.git] / mono / io-layer / system.h
1 /*
2  * system.h:  System information
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_SYSTEM_H_
11 #define _WAPI_SYSTEM_H_
12
13 #include <glib.h>
14
15 G_BEGIN_DECLS
16
17 typedef struct _WapiSystemInfo WapiSystemInfo;
18
19 struct _WapiSystemInfo 
20 {
21         union _anon_union
22         {
23                 guint32 dwOemId;
24                 struct _anon_struct
25                 {
26                         guint16 wProcessorArchitecture;
27                         guint16 wReserved;
28                 } _anon_struct;
29         } _anon_union;
30         
31         guint32 dwPageSize;
32         gpointer lpMinimumApplicationAddress;
33         gpointer lpMaximumApplicationAddress;
34         guint32 /*_PTR?*/ dwActiveProcessorMask;
35         guint32 dwNumberOfProcessors;
36         guint32 dwProcessorType;
37         guint32 dwAllocationGranularity;
38         guint16 wProcessorLevel;
39         guint16 wProcessorRevision;
40 };
41
42 extern void GetSystemInfo(WapiSystemInfo *info);
43
44 G_END_DECLS
45 #endif /* _WAPI_SYSTEM_H_ */