mám dotaz: k čemu slouží tento kus kódu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\WMI", "SELECT * FROM MSAcpi_ThermalZoneTemperature");
ManagementObjectCollection.ManagementObjectEnumerator enumerator = searcher.Get().GetEnumerator();
while (enumerator.MoveNext())
{
ManagementBaseObject tempObject = enumerator.Current;
double teplota = (double.Parse(tempObject["CurrentTemperature"].ToString()) / 10) - 273.15;
Console.WriteLine(teplota);
}
}
}
}
jestli ke zjištění teploty CPU tak mi nefunguje