Link to home
Start Free TrialLog in
Avatar of manish_prajapati
manish_prajapati

asked on

System Information API in VB.NET

Hi ,
  Can anyone tell me API's for extracting driver information like which sound driver/ Display driver etc.is installed in system . I want to use these API's in VB.NET.

Regards
Manish
Avatar of graye
graye
Flag of United States of America image

The best approach would be to use Windows Management Instrumentation (WMI)... it allows  you to get all sorts of behind-the-scences stuff in an abstracted way.

The code would look something like this:

        Dim wmi As ManagementClass
        Dim obj As ManagementObject
        Dim objs As ManagementObjectCollection

                    wmi = New ManagementClass("Win32_VideoController")
                    objs = wmi.GetInstances()
                    For Each obj In objs
                               msgbox("Driver version :" & obj("DriverVersion"))
                    next
Avatar of manish_prajapati
manish_prajapati

ASKER

It is giving namespace problem, i.e. I have to include namespce for that...

But how...

Manish
ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial