I'm using WMI (Win32_NetworkAdapter) and trying to get the details of attached physical network adapters either wired or wireless and avoid virtual adapters, etc.
Reading this article it explains that you have to do some clever querying on WMI to eliminate virtual adapters and attempt to only return real physical adapters.
Reading this post it explains that you can compare the text in the "Description" of the network adapter to see if it includes "Wireless", "802.11", or "WLAN", if it does, then most likely the adapter is a wireless adapter.
With today's .Net versions and other advancements, are these really the only two ways of determining on Windows XP+ if a network adapter is wired or wireless and is not a virtual adapter from VM software or the like? If not, please explain.
Win32_NetworkAdapter.PhysicalAdapter
(should be false if the interface is virtual) and then use theAdapterTypeID
to determine if it is wired or wireless? I skimmed the article you posted and their criteria unreasonable.