Solved

System Information API in VB.NET

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now