Detect wired network adapter



Hi,
I would like to obtain information for the "wired" network
adapter on certain computers. From older posts I read that the WMI
class Win32_NetworkAdapter might be used for this.

The problem is:
F.e. on my Dell test machine both available adapters, LAN and WLAN, are
detected but looking at Win32_NetworkAdapter::AdapterType both are
listed as "Ethernet 802.3" and I don't see any other way to tell them apart.

Is there another way to tell which adapter is the wired one?

At least I thought there should be one since Control Panel seems to display
adapters in categories.

Also I tried dotnet code suggested by another person that used
NetworkInterface.GetAllNetworkInterfaces()
to list all adapters. The LAN adapter then was successfully recognized as
NetworkInterfaceType.Ethernet
while the WLAN adapter was recognized as
NetworkInterfaceType.Wireless80211

Unfortunately that doesn't help me since I can only use C/C++ (or scripts
that I could launch from within my C/C++ code).

Any comment really appreciated!

thanks,
Nicolas Reinschmidt

.



Relevant Pages

  • Re: Wireless Internet Connection drops when LAN Adapter Enabled
    ... I also have a Netopia 2247NWG-VGx wireless ... the time so I know the USB adapter is OK. ... I enable the LAN Adapter ... RTL8139 Family PCI Fast Ethernet NIC but that shows the same symptoms. ...
    (alt.internet.wireless)
  • Re: LAN adapter for SCO 3.2 486PC
    ... >>My LAN adapter is broken, i have to change it, and I don't know wich ... ISA NICs had both connectors. ... some with 10-Base-2 only, some with both connectors. ...
    (comp.unix.sco.misc)
  • Re: slow startup of Workstation service
    ... I had the same problem with that hanging workstation service. ... I disabled all my network adapters via the device manager. ... I found out that the Intel Wireless LAN adapter was involved. ... Enabled WLAN adapter in device manager => delay in worstation service ...
    (microsoft.public.windowsxp.network_web)
  • Re: VPN and DNS
    ... It has the WAN adapter @85.12.17.104, ... Assuming you want access to more than just the VPN server one problem is the ... how is this going to work if the LAN adapter is not connected? ... Connection-specific DNS Suffix. ...
    (microsoft.public.windows.server.dns)
  • Re: MCA Ethernet cards
    ... an ethernet adapter ... The bridge machine does not have to be a PS/2 (even though we love ... and pretty good LAN adapter support. ... If you are going to set up an Ethernet adapter under AIX 1.3, ...
    (comp.sys.ibm.ps2.hardware)

Loading