Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Get CPU ID filter_list
Author
Message
Get CPU ID #1
[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/uplo...ractor.zip
[Image: coolsignature.gif]
:angel:

Reply

RE: Get CPU ID #2
Pretty much the exact thing I posted.
I was expecting more from you after the criticism I received from you.

xD

Reply

RE: Get CPU ID #3
Now, let's see you do this again, but this time, without using WMI.

Reply







Users browsing this thread: 1 Guest(s)