Re: How to get to know the MAC address in Windows systems?
From: Subodh Radheshyam Gupta (SubodhRadheshyamGupta_at_discussions.microsoft.com)
Date: 12/14/04
- Next message: Paul Simon: "USB device driver Stress Testing"
- Previous message: Subodh Radheshyam Gupta: "Re: Volume snapshots..."
- In reply to: cristalink: "Re: How to get to know the MAC address in Windows systems?"
- Next in thread: cristalink: "Re: How to get to know the MAC address in Windows systems?"
- Reply: cristalink: "Re: How to get to know the MAC address in Windows systems?"
- Messages sorted by: [ date ] [ thread ]
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,
> >
> >
>
>
>
- Next message: Paul Simon: "USB device driver Stress Testing"
- Previous message: Subodh Radheshyam Gupta: "Re: Volume snapshots..."
- In reply to: cristalink: "Re: How to get to know the MAC address in Windows systems?"
- Next in thread: cristalink: "Re: How to get to know the MAC address in Windows systems?"
- Reply: cristalink: "Re: How to get to know the MAC address in Windows systems?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|