IpHlpApiGetIpStatisticsEx Method

Retrieves the Internet Protocol (IP) statistics for the current computer.

The GetIpStatisticsEx(IpStats, AddressFamily) function differs from the GetIpStatistics(IpStats) function in that GetIpStatisticsEx(IpStats, AddressFamily) also supports the Internet Protocol version 6 (IPv6) protocol family.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("IpHlpApi.dll", ExactSpelling = true)]
public static Win32ErrorCode GetIpStatisticsEx(
	out IpStats refIpStats,
	AddressFamily family
)

Parameters

refIpStats  IpStats
A IpStats structure that receives the IP statistics for the local computer.
family  AddressFamily
The protocol family for which to retrieve statistics.

The values currently supported are InterNetwork, and InterNetworkV6.

Return Value

Win32ErrorCode
If this function succeeds, it returns ERROR_SUCCESS. Otherwise, it returns an Win32ErrorCode error code.

Remarks

See Also