Re: Howto discovering disabled network adapters?
- From: "Stephan Wolf [MVP]" <stewo68@xxxxxxxxxxx>
- Date: 18 Oct 2005 08:59:51 -0700
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
.
- References:
- Howto discovering disabled network adapters?
- From: Jim Howard
- Howto discovering disabled network adapters?
- Prev by Date: Re: MSVAD Simple Sample
- Next by Date: Re: MSVAD Simple Sample
- Previous by thread: Re: Howto discovering disabled network adapters?
- Next by thread: Re: Howto discovering disabled network adapters?
- Index(es):
Relevant Pages
|