Enumerating drivers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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/d.../en-us/wmisdk/wmi/win32_networkconnection.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.
 
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
 
Back
Top