2 nxn31755 nxn31755 于 2016.09.20 03:08 提问

怎么用Win32_TemperatureProbe获取CPU温度?

https://msdn.microsoft.com/en-us/library/aa394493(v=vs.85).aspx

3个回答

testcs_dn
testcs_dn   Rxr 2016.09.20 09:20
已采纳
caozhy
caozhy   Ds   Rxr 2016.09.20 03:25
oyljerry
oyljerry   Ds   Rxr 2016.09.20 11:28
 Imports System

Imports System.Management

Imports System.Windows.Forms

Public Class Form1



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try

Dim searcher As New ManagementObjectSearcher( _

"root\WMI", _

"SELECT * FROM MSStorageDriver_ATAPISmartData")

For Each queryObj As ManagementObject In searcher.Get()

Dim arrVendorSpecific As Byte() = queryObj("VendorSpecific")

MsgBox("Temperature = " & arrVendorSpecific(115))

Next

Catch err As ManagementException

MessageBox.Show("An error occurred while querying for WMI data: " & err.Message)

End Try

End Sub

End Class
nxn31755
nxn31755 请问有VC实现的吗?
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!