04
06/11
c#获取系统内存等信息
//cpu频率using Microsoft.Win32;private int GetCPUFrequency() { RegistryKey rk = Registry.LocalMachine.OpenSubKey(@"HARDWAREDESCRIPTIONSystemCentralProcessor"); object obj = rk.GetValue("~MHz"); int CPUFrequency = (int)obj; return CPUFrequency; }////////////////////////////////////磁盘空间 Managementusing System.Management;private long GetFreeDiskSpace() { ManagementObject disk = new Mana...