Detect wired network adapter
- From: "nicolasr" <nicolasrREMOVETHISSPAMBLOCKER@xxxxxxx>
- Date: Fri, 1 Aug 2008 03:37:57 +0200
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
.
- Prev by Date: Re: How to set NO Page File using WMI
- Next by Date: Configuring using WMI interface in VC++ IIS7
- Previous by thread: Re: How to set NO Page File using WMI
- Next by thread: Configuring using WMI interface in VC++ IIS7
- Index(es):
Relevant Pages
|
Loading