Пример #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 GetSystemInfo(ref CPU_INFO cpuinfo);