asp.net获取硬件信息_CPU序列号的方法
来源:不详 责任编辑:栏目编辑 发表时间:2013-07-01 09:36 点击:次
复制代码 代码如下:
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
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>