The documentation suggests using GetAdapterAddresses on XP and Vista but
I do not see how the information in the latter corresponds to the
information in GetAdaptersInfo nor how I would determine the primary
adapter for the computer. I mention this only because
GetAdapterAddresses supposedly returns a friendly name in
IP_ADAPTER_ADDRESSES.
Hi,
You can use the following WMI class to get the adapter's
manufacturer and name:
Win32_NetworkAdapter
http://msdn.microsoft.com/en-us/library/aa394216.aspx
Kellie.
Thanks but using WMI really sounds like a horror from the MSDN
documentation.
Try to read the description field and not the name
--
Volodymyr, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
"Edward Diener" <eddielee_n...@tropicsoft.com> wrote in message
news:uvr$PyV5IH...@TK2MSFTNGP05.phx.gbl...
Probably u r fetching "AdapterName" from PIP_ADAPTER_INFO structure.
You need to fetch "Description" to get the FriendlyName of the adapter.
Yes, I was picking up AdapterName, as well as Description. I will use
Description for the adapter name. I thought AdapterName would be
something general like "Ethernet Local Area Adapter" or something like
that while Description would be somethingm like "VIA Rhine Network Card
etc. etc.".
Noh its the FriendlyName which you see in Device Manager.