Description: Wmi query object to use another usb port can also use GetDriveType () of this tradition api to achieve Int32 cpuTemp = GetCPUTemperature () Console.WriteLine ( " CPU Temperature: (0) C/(1: F0) F" , cpuTemp, Fahrenheit (cpuTemp)) Int32 mbTemp = GetMBTemperature () Console.WriteLine ( " Motherboard Temperature: (0) C/(1: F0) F" , mbTemp, Fahrenheit (mbTemp))
File list (Check if you may need any files):
CPUTemperature
..............\CPUTemperature
..............\..............\bin
..............\..............\...\Debug
..............\..............\...\.....\CPUTemperature.exe
..............\..............\...\.....\CPUTemperature.pdb
..............\..............\...\.....\CPUTemperature.vshost.exe
..............\..............\...\.....\WinIo.dll
..............\..............\...\.....\WinIo.lib
..............\..............\...\.....\WinIo.sys
..............\..............\...\.....\WINIO.VXD
..............\..............\...\WinIo.dll
..............\..............\...\WinIo.lib
..............\..............\...\WinIo.sys
..............\..............\...\WINIO.VXD
..............\..............\CPUTemperature.csproj
..............\..............\CPUTemperature.csproj.user
..............\..............\Form1.cs
..............\..............\Form1.Designer.cs
..............\..............\Form1.resx
..............\..............\obj
..............\..............\...\CPUTemperature.csproj.FileListAbsolute.txt
..............\..............\...\Debug
..............\..............\...\.....\CPUTemperature.csproj.GenerateResource.Cache
..............\..............\...\.....\CPUTemperature.exe
..............\..............\...\.....\CPUTemperature.Form1.resources
..............\..............\...\.....\CPUTemperature.pdb
..............\..............\...\.....\CPUTemperature.Properties.Resources.resources
..............\..............\...\.....\Refactor
..............\..............\...\.....\TempPE
..............\..............\Program.cs
..............\..............\Properties
..............\..............\..........\AssemblyInfo.cs
..............\..............\..........\Resources.Designer.cs
..............\..............\..........\Resources.resx
..............\..............\..........\Settings.Designer.cs
..............\..............\..........\Settings.settings
..............\..............\WinIo.cs
..............\CPUTemperature.sln