随笔-63  评论-48  文章-2 

WMI 查找所有物理网卡

 ManagementObjectSearcher mc = new ManagementObjectSearcher(@"SELECT *
                                     FROM   Win32_NetworkAdapter
                                     WHERE  Manufacturer != 'Microsoft'
                                            AND NOT PNPDeviceID LIKE 'ROOT\\%'");

posted on 2013-01-31 11:20 lhx 阅读(...) 评论(...) 编辑 收藏