发布网友 发布时间: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函数,比较麻烦