Is there way in the user mode world to perform an enumeration of network
adapaters that includes disabled adapters?

thanks

Jim H

Re: Howto discovering disabled network adapters? by Thomas

Thomas
Mon Oct 17 13:24:05 CDT 2005


"Jim Howard" <jnhtx@spamcop.net> wrote in message
news:OBxpgH00FHA.2880@TK2MSFTNGP12.phx.gbl...
> Is there way in the user mode world to perform an enumeration of network
> adapaters that includes disabled adapters?
>
> thanks
>
> Jim H

The DDK BindView application should illustrate how to fetch this
information. The as-is functionality probably isn't exactly what you want,
but the information is there.

For example, if you have BindView list information for all protocols, then
some of the bindings listed for some protocols (TCP/IP for example) will
include disabled adapters a well as adapters that were installed in the past
but are no longer physically installed. I believe that there is a way to
distinguish between present and not present when examining disabled
adapters.

Good luck,

Thomas F. Divine, Windows DDK MVP
http://www.pcausa.com


Re: Howto discovering disabled network adapters? by Stephan

Stephan
Tue Oct 18 10:59:51 CDT 2005

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


Re: Howto discovering disabled network adapters? by Arkady

Arkady
Tue Oct 18 15:51:20 CDT 2005

Check my answer oh netorking NG and use cross-posting and not-multiposting
Arkady

"Jim Howard" <jnhtx@spamcop.net> wrote in message
news:OBxpgH00FHA.2880@TK2MSFTNGP12.phx.gbl...
> Is there way in the user mode world to perform an enumeration of network
> adapaters that includes disabled adapters?
>
> thanks
>
> Jim H
>



Re: Howto discovering disabled network adapters? by Maxim

Maxim
Tue Oct 18 19:23:00 CDT 2005

Disabled adapter is stopped NIC driver in terms of PnP. Try using PnP APIs
to find them.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Jim Howard" <jnhtx@spamcop.net> wrote in message
news:OBxpgH00FHA.2880@TK2MSFTNGP12.phx.gbl...
> Is there way in the user mode world to perform an enumeration of network
> adapaters that includes disabled adapters?
>
> thanks
>
> Jim H
>
>