Re: Howto discovering disabled network adapters?

Tech-Archive recommends: Speed Up your PC by fixing your registry



The INetCfg interface (see DDK docs) can be used to enumerate network
components, including network adapters.

As Tom pointed out, the BindView sample in the DDK shows how that can
be done.

However, INetCfg shows all adapters regardless whether they are either
disabled or have been physically removed.

In order to determine whether a particular device is actually present
in the system and/or has been disabled, see the DevCon sample in the
DDK.

IIRC, the DIGCF_PRESENT bit can be used to filter out any non-present
devices using SetupDi functions.

Currently don't remember how to recognize disabled devices but it can
be done easily (see DevCon).

See also:

"Detecting disabled devices"
http://www.osronline.com/lists_archive/ntdev/thread11112.html

"How to enumerate hardware devices by using SetupDi calls"
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q259695

Stephan
---
Jim Howard wrote:
> Is there way in the user mode world to perform an enumeration of network
> adapaters that includes disabled adapters?
>
> thanks
>
> Jim H

.



Relevant Pages

  • RE: Odd network results from two installed adapters, wired/wirelss
    ... system has both wired and wireless adapters, ... I can't seem to establish any network ... Connection Type: Dynamic ...
    (microsoft.public.windowsxp.network_web)
  • Re: Amazing Events in root/WMI
    ... > The same can be done to watch network changes like DHCP ... a system with 17 adapters should have multiple processors ... >>> that service has to dispatch the query to a provider (the Win32 CIM ...
    (microsoft.public.win32.programmer.wmi)
  • Re: tcp/ip hardware offload
    ... new hp direct cards with corrected firmware released over the years, ... several vendors are developing network adapters ... > gigabit network adapters with full protocol offload. ...
    (Vuln-Dev)
  • Re: Home Networking -- 2 Networks
    ... Pinging mt adapters now works and I re-ran the network configuration wizard ... >>ping either adapter. ... >>loopback from the XP Pro machine. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Detect open windows shares?
    ... to know their names is to browse the network neighborhood. ... The WNetOpenEnum function starts an enumeration of network resources or existing connections. ... RESOURCE_CONTEXT Enumerate only resources in the network context of the caller. ... To obtain a description of the error, call the WNetGetLastError function. ...
    (comp.lang.perl.misc)