Get CPU ID 08-15-2013, 03:59 PM
#1
![[Image: ZoSoftCPUID.png]](http://www.zosoftnet.com/wp-content/uploads/2012/03/ZoSoftCPUID.png)
PHP Code:
Dim obj As ManagementObject
Dim enumerator As ManagementObjectEnumerator = Nothing
Dim objsrc As ManagementObjectSearcher = New ManagementObjectSearcher("select * from Win32_Processor")
Dim objcol As ManagementObjectCollection = objsrc.Get()
Using enumerator
If (Not enumerator.MoveNext()) Then
enumerator = objcol.GetEnumerator()
While True
If (enumerator = Nothing) Then
Exit While
End If
obj = DirectCast(enumerator.Current, ManagementObject)
Me.TextBox1.Text = Conversions.ToString(obj("ProcessorID"))
End While
End If
End Using
obj.Dispose()
objcol.Dispose()
objsrc.Dispose()
Download the full project : http://www.zosoftnet.com/wp-content/uplo...ractor.zip
![[Image: coolsignature.gif]](http://www.zosoftnet.com/coolsignature.gif)
:angel: