Sinisterly
Get CPU ID - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework)
+--- Thread: Get CPU ID (/Thread-Get-CPU-ID)



Get CPU ID - zosoftnet - 08-15-2013

[Image: 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 NothingThen
    
Exit While
    
End If
    
obj DirectCast(enumerator.CurrentManagementObject)
    
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/uploads/2012/03/CPUIDExtractor.zip


RE: Get CPU ID - ViolentReality - 08-15-2013

Pretty much the exact thing I posted.
I was expecting more from you after the criticism I received from you.

xD


RE: Get CPU ID - Thr - 08-29-2013

Now, let's see you do this again, but this time, without using WMI.