文件名称:CPUTemperature
- 所属分类:
- TCP/IP协议栈
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 72kb
- 下载次数:
- 0次
- 提 供 者:
- 小*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用wmi对象查询usb口
另外也可以使用GetDriveType()这个传统的api来实现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-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))
另外也可以使用GetDriveType()这个传统的api来实现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-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))
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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
..............\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