ManagementObjectSearcher vManagementObjectSearcher = new ManagementObjectSearcher(@"root\WMI", @"select * from MSAcpi_ThermalZoneTemperature");
foreach (ManagementObject vManagementObject in
vManagementObjectSearcher.Get())
{ //-2732再除以10
double temperature = double.Parse(vManagementObject.Properties["CurrentTemperature"].Value.ToString());
temperature = (temperature - 2732) / 10;
this.richTextBox1.Text=(temperature.ToString());
}
System.Diagnostics
这个命名空间下面有相应的类库