Hi all,
I need to programmatically find the MAC id of the NIC when the network
connection is disabled.

The scenario is like this. You have multiple NICs on your PC. Now you
go
the network connection applet and disable one of the connection. Now
if you issue getmac command from command prompt, the mac ID of the
disabled connection will not be listed. I want to get this ID
programmatically. I tried some WMI methods and GetAdaptersAddresses
function to no avail.

Is this task possible?

Thanks in advance,
Shaji.

Re: Find the MAC address of NIC when the network connection is disabled. by Crest

Crest
Thu Oct 25 07:14:36 PDT 2007

What is the return code of GetAdaptersAddresses ?

Re: Find the MAC address of NIC when the network connection is disabled. by Alexander

Alexander
Thu Oct 25 11:50:29 PDT 2007

This was discussed recently, and the answer is - no.

Please post network questions in the appropriate newsgroup:

microsoft.public.win32.programmer.networks

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

"shaji" <shajiparemmal@gmail.com> wrote in message
news:1193313522.995493.22720@v23g2000prn.googlegroups.com...
> Hi all,
> I need to programmatically find the MAC id of the NIC when the network
> connection is disabled.
>
> The scenario is like this. You have multiple NICs on your PC. Now you
> go
> the network connection applet and disable one of the connection. Now
> if you issue getmac command from command prompt, the mac ID of the
> disabled connection will not be listed. I want to get this ID
> programmatically. I tried some WMI methods and GetAdaptersAddresses
> function to no avail.
>
> Is this task possible?
>
> Thanks in advance,
> Shaji.
>