473,382 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Enumerating drivers

Hi,

how can I programmatically (in any .net language) receive a list of all
network drivers bound to a network adapter?
(I need to check if some specific driver is bound to the adapter - and then
possibly (de)activate this one).

is this possible?

Thanks
Peter
Jul 21 '05 #1
2 1583
From .Net languages I can propose only managed C++ :) because you need
INetCfg to see bindings ( look at DDK src\network\config\bindview as
example )
Arkady

"Peter Schmitz" <Pe**********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Hi,

how can I programmatically (in any .net language) receive a list of all
network drivers bound to a network adapter?
(I need to check if some specific driver is bound to the adapter - and
then
possibly (de)activate this one).

is this possible?

Thanks
Peter

Jul 21 '05 #2
I know there is a response with a guaranteed sucess using C++, however I
think you can do this with VB script, VB.Net & C#

There is a technology called WMI that allows you to interrogate the system.
One of the interrogations is "Win32_ProtocolBinding", which according to the
help screens
(http://msdn.microsoft.com/library/de...nnection.asp):

The Win32_ProtocolBinding class has the following properties.

Antecedent
Data type: Win32_NetworkProtocol
Access type: Read-only
Qualifiers: Key

Reference to the instance representing the protocol that is used with the
system driver and on the network adapter.

Dependent
Data type: Win32_SystemDriver
Access type: Read-only

Reference to the instance representing the system driver that uses the
network adapter through the network protocol of this class.

Device
Data type: Win32_NetworkAdapter
Access type: Read-only
Qualifiers: Key

Properties of the network adapter being used on the computer system.

"Peter Schmitz" <Pe**********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Hi,

how can I programmatically (in any .net language) receive a list of all
network drivers bound to a network adapter?
(I need to check if some specific driver is bound to the adapter - and
then
possibly (de)activate this one).

is this possible?

Thanks
Peter

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Pachydermitis | last post by:
Hi all, This should be easy, but it has me pulling my hair out. I have a SQL 7 server running on NT server 4 with all the patches and updates for both. I cannot seem to get the openrowset to run...
0
by: Brett Mostert | last post by:
Hi, I need to be able to Enumerate through Printer Drivers, ports, printers and so fourth. And even add printers, ports, and drivers and setup printers. Sofar i can do all of the following...
2
by: Bishman | last post by:
Can anyone suggest a method of enumerating instances of MSDE 2000 without using DMO ? Using C++, MFC, and ADO. Thanks
4
by: Brett Mostert | last post by:
Hi, I need to be able to Enumerate through Printer Drivers, ports, printers and so fourth. And even add printers, ports, and drivers and setup printers. Sofar i can do all of the following...
2
by: Tony | last post by:
I have this problem - I have a hashtable, containing a list of filenames. Every 60 seconds, I have a thread that enumerates thru this hashtable, and based on some simple logic, some of the items...
2
by: Peter Schmitz | last post by:
Hi, how can I programmatically (in any .net language) receive a list of all network drivers bound to a network adapter? (I need to check if some specific driver is bound to the adapter - and...
12
by: raaman rai | last post by:
i have always wondered this things....suppose we are completely format a system and we do not know what drivers are required. Lets assume that we dont have the CD for drivers. Now i wonder how should...
0
by: robin | last post by:
PROBLEM i lost my canon mp160 drivers for the printer and scanner. how to i download from the drivers for the printerI lost my start up disk for my canon mp180 all in one printer.How can I...
0
by: queries365 | last post by:
Hi, I need to install and uninstall device drivers programatically. I could register the .inf available. This helped in installing the drivers without the prompt for installation disc. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.