From: santapanda on 11 May 2010 11:50 I think I finally understood what you meant by querying the right properties. I still can't find which class has the properties you listed. But I did find that using "NetConnectionID LIKE 'Wireless%'" as part of the query for the SelectQuery in C#'s WMI namespace appropriately only showed wireless devices. Yaaaay! Here is the code for C#: SelectQuery select = new SelectQuery("Win32_NetworkAdapter", "NetConnectionID LIKE 'Wireless%'"); Thanks for your help! "holycow" wrote: > A wi-fi NIC is one that indicates its physical medium type > as NdisPhysicalMediumWirelessLan or NdisPhysicalMediumNative802_11, > or supports OID_802_11... or OID_DOT11_... properties. > Since Wi-fi NICs also emulate ethernet, they support many 802.3 properties. > > Your problem is that network drivers live deep in the kernel, so getting > down to > to ask them something may be cumbersome and not trivial. > WMI is one way known to work - just query the correct properties. > But, you wil need to link from the WMI object that represents the NIC > to its "device instance id", IP adapter index and so on. > > And, as Doron noted, if a wi-fi device exposes itself as generic ethernet, > there is nothing you can do about this. > > Regards, > - pa >
First
|
Prev
|
Pages: 1 2 3 Prev: Creating a mirror driver for Vista/Win7 Next: "Convert" Driver vom XP64 to Win7 64 |