JohnFol
Wed Apr 20 04:40:25 CDT 2005
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/default.asp?url=/library/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.
"Peter Schmitz" <PeterSchmitz@discussions.microsoft.com> wrote in message
news:E465C7FD-817F-4731-AF27-8B2BD98B0D60@microsoft.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