About registry key software\microsoft\windows nt\currentversion\networkcards

Hi!everybody:
I’ve built a program(working on windows 2k) to get the manufacturer
information of the networkcards in my computer, such as “3Com EtherLink III
ISA (3C509/3C509b) in Legacy mode”.so I come to the registry key
software\microsoft\windows nt\currentversion\networkcards, under this key
there are subkeys 1,2…, each of these subkeys describes a network card
and I can get out the information I wanted.
But I found a problem for this key. I have two network cards in my
computer, so there are two subkeys for key networkcards , then I shutdown
my computer ,extract one card and insert it into another slot, after reboot
, I found there are three subkeys although there are still two cards.
How to avoid this problem or where else can I get the message?

Any help will be appreciated.
Best Regards


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

You’ve come across what I call “PnP memory”. Basically Windows 2000 keeps
track of all the boards that have been installed in the system. It would
allow you to plug the card back in the slot it was first installed in
without having to reconfigure it. If you want to enumerate network cards -
and any other kind of cards by the way - you’re better off using the
SetupDi API. There are some code fragments that are doing the same kind of
thing you’d like to do in the DDK - look in
ntddk\src\network\config\netcfg\snetcfg.cpp.

Pierre

On 02/22/01, “xxxxx@necas.nec.co.jp” wrote:

Hi!everybody:
I’ve built a program(working on windows 2k) to get the manufacturer
information of the networkcards in my computer, such as “3Com EtherLink III
ISA (3C509/3C509b) in Legacy mode”.so I come to the registry key
software\microsoft\windows nt\currentversion\networkcards, under this key
there are subkeys 1,2…, each of these subkeys describes a network card
and I can get out the information I wanted.
But I found a problem for this key. I have two network cards in my
computer, so there are two subkeys for key networkcards , then I shutdown
my computer ,extract one card and insert it into another slot, after reboot
, I found there are three subkeys although there are still two cards.
How to avoid this problem or where else can I get the message?

Any help will be appreciated.
Best Regards


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thank you very muck, Pierre.

I’ve tried the snetcfg, but when I use it to enumerate the Net Component,
There are still there cards to be found out.

If I use the windows command “ipconfig -all”, It just list two cards, Is
there any one knows how it works?

yyang


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com