internal static Interop.IpHlpApi.MibIfRow2 GetIfEntry2(long index) { Interop.IpHlpApi.MibIfRow2 ifRow = new Interop.IpHlpApi.MibIfRow2(); if (index == 0) { return ifRow; } ifRow.interfaceIndex = (uint)index; uint result = Interop.IpHlpApi.GetIfEntry2(ref ifRow); if (result != Interop.IpHlpApi.ERROR_SUCCESS) { throw new NetworkInformationException((int)result); } return ifRow; }
internal static Interop.IpHlpApi.MibIfRow2 GetIfEntry2(long index) { Interop.IpHlpApi.MibIfRow2 ifRow = new Interop.IpHlpApi.MibIfRow2(); if (index == 0) { return(ifRow); } ifRow.interfaceIndex = (uint)index; uint result = Interop.IpHlpApi.GetIfEntry2(ref ifRow); if (result != Interop.IpHlpApi.ERROR_SUCCESS) { throw new NetworkInformationException((int)result); } return(ifRow); }
internal SystemIPInterfaceStatistics(long index) { _ifRow = GetIfEntry2(index); }