Re: GetAdaptersInfo and NetWorkAddress

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



It looks to me like you could use NDISUIO to send OID_802_3_CURRENT_ADDRESS
to get the current MAC address. No, there's no sample. I'm reading the
code for NDIS.

Are you sure that GetAdaptersInfo() doesn't return the current MAC address?

Paul T.

"Luis F. Rodas" <support@xxxxxxxxxxxx> wrote in message
news:uk3M1gLbIHA.1132@xxxxxxxxxxxxxxxxxxxxxxx
Hi All,

Anyone knows if exist any function that returns the MAC Address(Physical
Address) directly of an Ethernet Adapter? I am using "GetAdaptersInfo()"
function but it can return the value of the 'NetworkAddress' key (from
Registry) if this key exists. I need to use the real MAC Address of an
Ethernet Adapter. Is it possible using NDIS with
'OID_802_3_PERMANENT_ADDRESS' ? Any sample ?

Best Regards,
Luis F.
(Indusoft Team)



.



Relevant Pages

  • Re: OID_802_3_CURRENTADDRESS Vs OID_802_3_PERMANENTADDRESS
    ... least NDIS 5. ... In NDIS 6 we still can not change the MAC address on the fly. ... the Ethernet adapter. ... changing the routing table will never result in any MAC address ...
    (microsoft.public.development.device.drivers)
  • Re: GetAdaptersInfo and NetWorkAddress
    ... It appears to me that MS is not distinguishing between those two OID values ... GetAdaptersInforeturns the current MAC Address. ... I'm reading the code for NDIS. ... Address) directly of an Ethernet Adapter? ...
    (microsoft.public.windowsce.embedded)
  • OID_802_3_CURRENTADDRESS Vs OID_802_3_PERMANENTADDRESS
    ... Does it mean a NIC driver can change its MAC address on the FLY... ... If so how can NDIS be informed about the same.... ... Can a change in the Routing table trigger a call to OIDs related to ...
    (microsoft.public.development.device.drivers)
  • Re: Tell NDIS about ne MAC address
    ... The MAC address is queried by NDIS itself - even not by the ... Maxim Shatskih, Windows DDK MVP ... StorageCraft Corporation ...
    (microsoft.public.development.device.drivers)
  • Re: GetAdaptersInfo and NetWorkAddress
    ... As I said, based on my reading of the code, and you can believe that I'm ... It's strictly about whether the driver for your particular adapter ... I'd just use the current MAC address myself. ... I need the real MAC Address of an Ethernet Adapter to use it as unique ...
    (microsoft.public.windowsce.embedded)