?
Solved

System Information API in VB.NET

Posted on 2004-04-28
3
Medium Priority
?
853 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
  • 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 120 total points
ID: 10939536
Yeah...sorry you have to add System. Management as a reference
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

809 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