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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("IpHlpApi.dll", ExactSpelling := true>]
Public Shared Function GetIpStatisticsEx (
<OutAttribute> ByRef refIpStats As IpStats,
family As AddressFamily
) As Win32ErrorCode
Dim refIpStats As IpStats
Dim family As AddressFamily
Dim returnValue As Win32ErrorCode
returnValue = IpHlpApi.GetIpStatisticsEx(refIpStats,
family)
public:
[DllImportAttribute(L"IpHlpApi.dll", ExactSpelling = true)]
static Win32ErrorCode GetIpStatisticsEx(
[OutAttribute] IpStats% refIpStats,
AddressFamily family
)
[<DllImportAttribute("IpHlpApi.dll", ExactSpelling = true)>]
static member GetIpStatisticsEx :
refIpStats : IpStats byref *
family : AddressFamily -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- 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.
Win32ErrorCode
If this function succeeds, it returns
ERROR_SUCCESS.
Otherwise, it returns an
Win32ErrorCode error code.