前文 说到如何区分不同Filter Module Instance. 而且提到了三种方法。我分别测试了下:
FilterModuleName is {7CA32522-8218-4BF9-8B98-D280274588E2}-{5CBF81BD-5055-47CD-9055-A76B2B4E3697}-0000 ? ?
00000084 200.10607910 NDISLWF:
00000085 200.10607910 MiniportFriendlyName is RT73 USB Wireless LAN Card
00000086 200.10607910 NDISLWF:
00000087 200.10609436 MiniportName is \DEVICE\{7CA32522-8218-4BF9-8B98-D280274588E2}
00000088 200.10609436 NDISLWF:
00000089 200.10609436 MiniportIfIndex is e
因为最好找一个唯一的标志,所以这里去MiniportNmae后面的GUID,作为标识。EF68C813-C6FB-488F-89F6-27131AE18525} 这个值其实在WlanScan的那个例子也可以通过 WlanEnumInterfaces 函数列举出来。
C:\Users\Admin\Desktop\driver>wlsample ei
There are 1 interfaces in the system.
Interface 0:
GUID: 7ca32522-8218-4bf9-8b98-d280274588e2
RT73 USB Wireless LAN Card
State: "connected"
Command "ei" completed successfully.
这是个不错的主意...