文件名称:VB-CPU温度检测
文件大小:581B
文件格式:TXT
更新时间:2013-09-05 11:23:56
CPU温度检测
Public Function GetCPUTemp() As Double 'cpu温度检测 Dim i As Integer Dim mCPU As Variant Dim u As Variant Dim s As String Set mCPU = GetObject("WINMGMTS:{impersonationLevel=impersonate}!root\wmi").ExecQuery("SELECT CurrentTemperature From MSAcpi_ThermalZoneTemperature") For Each u In mCPU s = s & u.CurrentTemperature Next Set mCPU = Nothing