Solved

System Information API in VB.NET

Posted on 2004-04-28
3
848 Views
Last Modified: 2013-11-13
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
0
Comment
Question by:manish_prajapati
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 41

Expert Comment

by:graye
ID: 10938211
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
0
 

Author Comment

by:manish_prajapati
ID: 10939461
It is giving namespace problem, i.e. I have to include namespce for that...

But how...

Manish
0
 
LVL 41

Accepted Solution

by:
graye earned 30 total points
ID: 10939536
Yeah...sorry you have to add System. Management as a reference
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question