Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: "Graem Rucker" <gr@xxxxxxxxx>
- Date: Mon, 23 Oct 2006 14:11:31 -0700
OK, it may not be a valid solution...
While the info is present there, it seems that VPNs get identical entries
that cannot be readily distinguished from physical network cards....
For example, on a test system with Cisco VPN, I have the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}
Which contains 2 GUID sub-keys - neither of which contains values or
sub-keys that identify the "physical-ness" of the interface. One is for
Cisco VPN and one is for the physical NIC.
Below you will see the relevant parts of the "Network" branch from a sample
problem computer:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network]
"FilterClasses"=hex(7):73,00,[...]
"Config"=hex:00,00,[...]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\Connections]
"ClassManagers"=hex(7):7b,00,[...]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\SharedAccessConnection]
"EnableControl"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}]
@="Network Adapters"
"Class"="Net"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\Descriptions]
"RAS Async Adapter"=hex(7):31,00,00,00,00,00
"WAN Miniport (L2TP)"=hex(7):31,00,00,00,00,00
"WAN Miniport (PPTP)"=hex(7):31,00,00,00,00,00
"WAN Miniport (PPPOE)"=hex(7):31,00,00,00,00,00
"Direct Parallel"=hex(7):31,00,00,00,00,00
"WAN Miniport (IP)"=hex(7):31,00,00,00,00,00
"Marvell Yukon Gigabit Ethernet 10/100/1000Base-T Adapter, Copper
RJ-45"=hex(7):31,\
00,00,00,00,00
"Deterministic Network Enhancer
Miniport"=hex(7):31,00,00,00,32,00,00,00,33,00,\
00,00,00,00
"Cisco Systems VPN Adapter"=hex(7):31,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{286DB490-9000-4340-961E-9BC8817BD6AB}]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{286DB490-9000-4340-961E-9BC8817BD6AB}\Connection]
"PnpInstanceID"="PCI\\VEN_11AB&DEV_4320&SUBSYS_811A1043&REV_13\\4&2E98101C&0&28F0"
"MediaSubType"=dword:00000001
"Name"="Local Area Connection"
"ShowIcon"=dword:00000001
"IpCheckingEnabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{E047D8E8-552A-4B16-913E-5C18501ACB67}]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{E047D8E8-552A-4B16-913E-5C18501ACB67}\Connection]
"PnpInstanceID"="ROOT\\NET\\0000"
"MediaSubType"=dword:00000001
"Name"="Local Area Connection 2"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E973-E325-11CE-BFC1-08002BE10318}]
@="Network Client"
"Class"="NetClient"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}]
@="Network Service"
"Class"="NetService"
"Arkady Frenkel" wrote
OK, try to from driver's ( "Network adapters") registry: as you saw each
network card reg key have "ServiceName" sub key with GUID. That guid is
Key for network drivers, so search that GUID from
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{GUID}
.
- Follow-Ups:
- Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: Arkady Frenkel
- Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- References:
- GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: Graem Rucker
- Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: Arkady Frenkel
- Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: Graem Rucker
- Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: Arkady Frenkel
- Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: Graem Rucker
- Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- From: Arkady Frenkel
- GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- Prev by Date: Re: getnameinfo and localhost
- Next by Date: Re: getnameinfo and localhost
- Previous by thread: Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- Next by thread: Re: GetAdaptersAddresses & Physical Vs. Virtual Adpaters
- Index(es):
Relevant Pages
|
|