如何用VB获取硬件信息??

发布网友 发布时间:2024-10-23 22:07

我来回答

3个回答

热心网友 时间:2024-11-01 12:25

Public Sub getCpuId()
Try
Dim mc As Management.ManagementClass
Dim moc As Management.ManagementObjectCollection
Dim mo As Management.ManagementObject
mc = New Management.ManagementClass("win32_processor")
moc = mc.GetInstances()
For Each mo In moc
strCpuId = mo.Properties("processorid").Value.ToString()
Next mo
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub

热心网友 时间:2024-11-01 12:27

到百度搜索 api 获取 mac

热心网友 时间:2024-11-01 12:27

用API函数,比较麻烦

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com