Re: MAC address w/o networking HUD?

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



Gereon,

You can count on getmac.exe utility ("Server Command Line Tools" component)
and satisfy its dependencies. Although I don't think it is a smal piece.
Also, ipconfig /all will return the MAC addresses of all the installed NICs.


You can certainly use GetAdaptersInfo API to the the MAC address. You would
need TCP/IP stack and IP Helper stuff included in the image.
Or use SendARP API. Something like this:
http://groups-beta.google.com/group/microsoft.public.windowsxp.embedded/msg/21496a9d14edcce7?hl=en

Going "deeper" you could use NetBIOS (NetWkstaTransportEnum API) to get the
MAC. But it still requires the NETBIOS stack to be installed (and TCP/IP).

Another low level approach would be quering NDIS miniport driver with
OID_802_3_CURRENT_ADDRESS
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/network/hh/network/23ethoid_e5a532d2-8b51-4a68-ab05-19fb86825b15.xml.asp).

KM

> We have an onboard NIC (Realtek RTL8139 Family PCI Fast Ethernet NIC) on
> our embedded system's motherboards that we don't use for any networking
> purpose, except we were considering using its MAC address as a unique
> system identifier. I'm hoping to find a way to include just enough
> functionality to get the MAC address out of the hardware without dragging
> in networking functionality that we don't need. Does anyone have any
> suggestions on how to do this?


.



Relevant Pages

  • Programmatically find the MAC ID of a disabled NIC
    ... In my project, I need to find out the MAC ID of all the NICs, ... Is there an api call or a CRT function? ...
    (microsoft.public.vc.language)
  • Programmatically find the MAC ID of a disabled NIC
    ... In my project, I need to find out the MAC ID of all the NICs, ... Is there an api call or a CRT function? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Cannot Ping Beyond Default Gateway & DHCP Server
    ... That computer has two ethernet NICs: one from Intel, and one from Linksys. ... He says he has never had to change a MAC nor tell the home office to change one. ... My assumption now is that this MAC control is occurring in the cable modem, and that clearing it with power off causes it to loose its previously-stored value. ... Network Diagnostics shows pings to his IP, Default Gateway, and DHCP Server work, but pings to DNS servers fail. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Mac 10.4 OS on G5
    ... I called into the SBS Team Support yesterday because I was getting bombared ... changed before the Mac problem begin. ... the dual NICs on the server from teaming as Load Balance to Fault Tolerance ...
    (microsoft.public.windows.server.sbs)
  • Re: Why Lisp is too hard for me to use
    ... and eventually the legacy Win32 api may ... Of course Windows has sharp edges. ... I noticed a Mac dev complaining about Apple's ... whereas Microsoft seems to have the problem that they bend over ...
    (comp.lang.lisp)