Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Interop.cs
Go to the documentation of this file.
1using System;
3
4internal static class Interop
5{
6 internal static class Kernel32
7 {
8 internal struct SYSTEM_INFO
9 {
10 internal ushort wProcessorArchitecture;
11
12 internal ushort wReserved;
13
14 internal int dwPageSize;
15
17
19
21
22 internal int dwNumberOfProcessors;
23
24 internal int dwProcessorType;
25
26 internal int dwAllocationGranularity;
27
28 internal short wProcessorLevel;
29
30 internal short wProcessorRevision;
31 }
32
42
43 [DllImport("kernel32.dll")]
44 internal static extern void GetNativeSystemInfo(out SYSTEM_INFO lpSystemInfo);
45
46 [DllImport("kernel32.dll")]
47 internal static extern void GetSystemInfo(out SYSTEM_INFO lpSystemInfo);
48 }
49}
static void GetSystemInfo(out SYSTEM_INFO lpSystemInfo)
static void GetNativeSystemInfo(out SYSTEM_INFO lpSystemInfo)