Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetIfEntry2()

static global.Interop.IpHlpApi.MibIfRow2 System.Net.NetworkInformation.SystemIPInterfaceStatistics.GetIfEntry2 ( long index)
inlinestaticpackage

Definition at line 36 of file SystemIPInterfaceStatistics.cs.

37 {
38 global::Interop.IpHlpApi.MibIfRow2 pIfRow = default(global::Interop.IpHlpApi.MibIfRow2);
39 if (index == 0L)
40 {
41 return pIfRow;
42 }
43 pIfRow.interfaceIndex = (uint)index;
44 uint ifEntry = global::Interop.IpHlpApi.GetIfEntry2(ref pIfRow);
45 if (ifEntry != 0)
46 {
47 throw new NetworkInformationException((int)ifEntry);
48 }
49 return pIfRow;
50 }

References System.index, and System.L.

Referenced by System.Net.NetworkInformation.SystemIPInterfaceStatistics.SystemIPInterfaceStatistics(), and System.Net.NetworkInformation.SystemIPv4InterfaceStatistics.SystemIPv4InterfaceStatistics().