
how to get hardware info in vb.net?
You can try WMI; The class Win32_SoundDevice, Win32_DisplayConfiguration
may contain the information you want.
Here is a sample about retrieving Mac address by WMI:
Dim mc As System.Management.ManagementClass
Dim mo As ManagementObject
mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
Dim moc As ManagementObjectCollection = mc.GetInstances()
For Each mo In moc
If mo.Item("IPEnabled") = True Then
MsgBox("MAC address " & mo.Item("MacAddress").ToString())
End If
Next
Best Regards,
Alick Ye
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Subject: how to get hardware info in vb.net?
| Date: Mon, 19 Aug 2002 19:55:15 +0800
| Lines: 4
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 61.176.63.159
| Path: cpmsftngxa08!cpmsftngxa07!tkmsftngxs01!tkmsftngp01!tkmsftngp09
| Xref: cpmsftngxa08 microsoft.public.dotnet.languages.vb:60542
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| For example,Get the display card or sound card's infomatin in windowsXP?
| May i get them from registry? Is it credible?
|
|
|