473,486 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1585
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
5719
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
1324
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
1671
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
6982
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
4550
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
327
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
2516
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
1137
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
1394
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. ...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.