Re: How do I distinguish NIC MAC addresses from software MAC addresses
From: Arkady Frenkel (arkadyf_at_hotmailxdotxcom)
Date: 01/17/04
- Next message: Jan Plastenjak: "Re: ASP & CertGetCertificateChain"
- Previous message: Richard Ward: "Re: Confused about TokenSessionId howto"
- In reply to: Marcus: "How do I distinguish NIC MAC addresses from software MAC addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 17 Jan 2004 13:47:51 +0200
You can distinguish the type of adapter by variable - type in
IP_ADAPTER_INFO returned by GetAdaptersInfo.
Additionally you can use SendARP to receive MAC
Arkady
"Marcus" <a@b.com> wrote in message
news:#slo#xF3DHA.2528@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Is there a way to retrieve MAC addresses for all network interface cards
in
> Windows *without* also retrieving the MAC addresses of software adapters?
>
>
> So far I have tried:
>
> An SNMP method described here:
> http://tangentsoft.net/wskfaq/examples/getmac-snmp.html
>
> And the NetBIOS & GetAdaptersInfo methods described here:
> http://www.codeguru.com/network/GetMAC.html
>
>
> But on Windows XP machines with a "MAC bridge miniport" set up I can not
> identify the NIC MAC addresses. Even the command line tools "ipconfig"
and
> "net config workstation" return the MAC address created by the software
> bridge.
>
>
> Using WMI I can list the MAC addresses of all adapters on the system by
> running the query:
>
> "SELECT MACAddress FROM Win32_NetworkAdapter"
>
> but this also returns the addresses of software adapters & I can not find
a
> way to distinguish the NIC addresses.
>
> Many thanks,
> Marcus Ellington
>
>
- Next message: Jan Plastenjak: "Re: ASP & CertGetCertificateChain"
- Previous message: Richard Ward: "Re: Confused about TokenSessionId howto"
- In reply to: Marcus: "How do I distinguish NIC MAC addresses from software MAC addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|