Re: Determine MAC address when network connection is disabled (C++)

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



OTOH you can try GetIfEntry() directly ,and if it will not work in this case
IMHO WMI will not help you too, and the only way to read registry directly
Arkady
"Kellie Fitton" <KELLIEFITTON@xxxxxxxxx> wrote in message
news:1182215093.977640.73620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jun 18, 5:37 pm, ds <d...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

I've been looking through documentation and online articles, but I
haven't
found an answer to this specific problem. I'm trying to find a way to
detect
the MAC address of a machine when the network connection of the machine
has
been disabled (for example, by going into "My Network Places", right
clicking
on the network connection and choosing "Disable"). Currently we are
getting
the MAC address by:

- Call GetAdaptersInfo()
if this fails
- Do a text dump of "ipconfig /all" and read from the file
if this fails
- Call UUIDCreateSequential() and extract the address

The problem is these methods only work if the user's network connection
is
enabled. Is there a lower level call that can return the MAC address even
if
the network connection is disabled?

Thanks in advance for any responses.


Hi,

Did you use the following WMI class to determine that:

Win32_NetworkAdapter

http://msdn2.microsoft.com/En-US/library/aa394216.aspx

Kellie.




.



Relevant Pages

  • RE: uniquely identify a computer -- use which Mac address?
    ... I can read CPU ID or Mac Address. ... PRO/Wireless 3945ABG Network Connection Description: ... Shanghai Fengpu Software Co. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Determine MAC address when network connection is disabled (C++
    ... There is a machine SID that is supposed to be globaly unique. ... the MAC address of a machine when the network connection of the ... on the network connection and choosing "Disable"). ... The documentation says it's a unique identifier, ...
    (microsoft.public.win32.programmer.networks)
  • Re: mysterious loss of network
    ... > OSX computer, configured to go in to "sleep mode" after some ... > inactivity timeout, drops network connection. ... iMacs from Mac OS 9 to Mac OS X 10.4 and the stupid things keep falling ...
    (comp.sys.mac.system)
  • Re: Geting MAC address from a network connection
    ... Can i get MAC address of a nic from a remote computer? ... Use ping or any kind of network connection thereto, ... it will send a bootp request. ... There could also be intrusion detection and log monitor systems ...
    (comp.os.linux.networking)
  • Re: Satellite Internet Help Needed
    ... Are either of these more Mac friendly? ... A network connection is a network connection. ... and in dealing with their tech support. ... Mac and geek T-shirts & gifts ...
    (comp.sys.mac.comm)