how to get hardware info in vb.net? 
Author Message
 how to get hardware info in vb.net?

 For example,Get the display card or sound card's infomatin in windowsXP?
May i get them from registry? Is it credible?


Fri, 04 Feb 2005 19:55:15 GMT  
 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?
|
|
|



Sat, 05 Feb 2005 15:18:53 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting info off the net ?

2. Help reqd on ports identifying different hardware devices connected to the system in vb.net

3. Recommended Hardware for VB.NET

4. Hardware Info

5. vbscript - hardware info

6. Hardware Info IN VB6

7. Grabbing Hardware Info ?

8. vbscript - hardware info

9. Hardware Info using VBScript?

10. Programmatically retrieving hardware info

11. NT Hardware Info

12. How to get hardware info?

 

 
Powered by phpBB® Forum Software