HWID finder?

Posts 1–4 of 4 · Page 1 of 1
HWID finder?
lol i know alota VB but i dont know much about VB registry editing or using of the registry editor in VB. Not even sure if HWID is close to being used in registry. But i'd like to request a code for the a visual basics .net Hardware Identification finder or something that will get the string, and then later display it onto a msgbox or textbox.

Thanks in advance,
kBob
Computer System Hardware Classes (Windows)

First result on google:

Add a reference to
system.management.dll to your app. Here is an example.


[highlight=VB.Net]Dim moReturn As Management.ManagementObjectCollection
Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

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

moReturn = moSearch.Get

For Each mo In moReturn

Dim strOut As String = String.Format(" {0} - {1} ", mo("Name"),
mo("DeviceID"))

msgbox(strout)

Next
[/highlight]
Quote Originally Posted by Blubb1337 View Post
Computer System Hardware Classes (Windows)

First result on google:

Add a reference to
system.management.dll to your app. Here is an example.


[highlight=VB.Net]Dim moReturn As Management.ManagementObjectCollection
Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

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

moReturn = moSearch.Get

For Each mo In moReturn

Dim strOut As String = String.Format(" {0} - {1} ", mo("Name"),
mo("DeviceID"))

msgbox(strout)

Next
[/highlight]
It shows all the PNP info, i just want the Hardware ID lol great info though and thanks. If you could just help me on that.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us