<script type="text/javascript"> </script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script>
目前获取网络连接信息的方法有很多种,我用的是wmi方法来获取,但却无法获得网络连接的名称(如本地连接),在网上找了找,终于找到一种不同的实现方式,特此与大家共享:
来源:CodeProject
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public class IP_Adapter_Addresses
{
public uint Length;
public uint IfIndex;
public IntPtr Next;
public IntPtr AdapterName;
publ