all groups > vb.net controls > june 2005 >
You're in the

vb.net controls

group:

how to find CPU ID


Re: how to find CPU ID Ken Tucker [MVP]
6/15/2005 3:44:09 AM
vb.net controls:
Hi,

Add a reference to system.management.dll


Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_Processor")

moReturn = moSearch.Get

For Each mo In moReturn

Debug.WriteLine(mo("Name"))

Debug.Indent()

Debug.WriteLine(mo("ProcessorID"))

Debug.Unindent()

Next


Ken
-----------------

[quoted text, click to view]
Hi
I want to find CPU ID through vb.net . can anybody tell me how to get this.

Thanx in advance
Yoshitha.


how to find CPU ID Yoshitha
6/15/2005 12:01:46 PM
Hi
I want to find CPU ID through vb.net . can anybody tell me how to get this.

Thanx in advance
Yoshitha.

Re: how to find CPU ID Herfried K. Wagner [MVP]
6/17/2005 9:36:19 PM
"Ken Tucker [MVP]" <vb2ae@bellsouth.net> schrieb:
[quoted text, click to view]

.... or 'DeviceID'. Note that not all CPUs support querying the ID.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
AddThis Social Bookmark Button