Re: How to get to know the MAC address in Windows systems?

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

From: Subodh Radheshyam Gupta (SubodhRadheshyamGupta_at_discussions.microsoft.com)
Date: 12/14/04


Date: Tue, 14 Dec 2004 05:41:01 -0800

you can use ip helper api for that.
Subodh

"cristalink" wrote:

> Save the below as GetNic.vbs and run. You can use WMI with C as well, see
> Platform SDK documentation and samples.
>
> Set AdapterSet = GetObject("winmgmts:").InstancesOf("Win32_NetworkAdapter")
>
> for each Adapter in AdapterSet
> WScript.Echo "Manufacturer:", Adapter.Manufacturer
> WScript.Echo "MAC", Adapter.MACAddress
> WScript.Echo "Name", Adapter.Name
> WScript.Echo "PermanentAddress", Adapter.PermanentAddress
> WScript.Echo "PNPDeviceID" , Adapter.PNPDeviceID
> WScript.Echo ""
> next
>
> --
> http://www.firestreamer.com - NTBackup to DVD and DV
>
>
> "lucy" <losemind@yahoo.com> wrote in message
> news:uFfRvRX4EHA.4004@tk2msftngp13.phx.gbl...
> > Hi all,
> >
> > Can anybody tell me how to get to know the MAC address in Windows
> > environment
> > using C programming? I need the MAC address in my program.
> >
> > Thanks a lot,
> >
> >
>
>
>



Relevant Pages

  • Re: How to get to know the MAC address in Windows systems?
    ... Platform SDK documentation and samples. ... for each Adapter in AdapterSet ... > using C programming? ... I need the MAC address in my program. ...
    (microsoft.public.development.device.drivers)
  • Re: GetAdaptersInfo NetWorkAddress
    ... Smartphone (Windows Mobile) connected via ActiveSync. ... function returns two MAC addresses. ... Adapter? ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.win32.programmer.networks)
  • Re: [Full-Disclosure] Symantec AntiVirus and AOL
    ... >evice driver sets the NCD_VIRTUAL bit then they have done their duty as far as ... these routines encrypt GUIDs in a way that the original MAC ... Using the MAC address of the virtual adapter ... code "NT1003" when registering to take the TICSA exam at www.2test.com. ...
    (NT-Bugtraq)
  • Re: Uniquely identifying PCs
    ... Display Adapter ... Network Adapter and its MAC Address ... and hard drives scanned for special info in the bad track lists. ...
    (comp.sys.ibm.pc.hardware.chips)
  • Re: GetAdaptersInfo NetWorkAddress
    ... MIB_IF_TYPE_ETHERNET the adapter is ethernet. ... This posting is provided "AS IS" with no warranties, and confers no ... rights. ... GetAdaptersInfofunction returns two MAC addresses. ...
    (microsoft.public.win32.programmer.networks)