Re: Determine MAC address when network connection is disabled (C++)
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Tue, 19 Jun 2007 09:53:47 +0300
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.
.
- Prev by Date: Re: protocol for a file transfer system - bit like ftp
- Next by Date: Re: IOCP question: ordering of data
- Previous by thread: protocol for a file transfer system - bit like ftp
- Next by thread: API to detect VPN connection
- Index(es):
Relevant Pages
|