: How does one go about this task in VB.NET? I am working on two
: projects at this point and need to figure out what devices of a set
: type are installed in the system in each program. One needs to
: discover all modems and network cards, and the other needs to find
: all CD/DVD drives and get their mounted letter, such as D:. How
: would I do this? I know there are methods to do so in C++, but these
: two applications are Win32/Win64 only, so I am using VB.NET fopr
: fast development.
After much searching, I have deduced that you will need to use WMI for this. It uses a variation of SQL: WQL
Here are the MSDN links I came accros:
Then for the classes you can use in the WQL statements look at Computer System Hardware Classes
EDIT: Another (useful?) link: WMI .NET implementation
Accessing the the WMI information goes through the System.Management namespace.
This could get really complicated - but I think I gave you a very nice first step: you now atleast know WHAT to look for - I spent around 45 minutes browsing the .NET framework classes and entering fruitless search queries in the .NET documentation :)
The way I see it... Well, it's all pretty blurry