예제 #1
0
 /// <summary>
 /// 静态构造函数
 /// </summary>
 public static void GetInfo()
 {
     CpuInfo = new CPU_INFO();
     GetSystemInfo(ref CpuInfo);
     MemoryInfo = new MEMORY_INFO();
     GlobalMemoryStatus(ref MemoryInfo);
 }
예제 #2
0
 public static extern void GlobalMemoryStatus(ref MEMORY_INFO meminfo);