Share via


GetIpStatisticsEx

This function retrieves the Internet Protocol (IP) statistics for the current computer. This function differs from the GetIpStatistics function in that this function also supports the Internet Protocol version 6 (IPv6) protocol family.

DWORD GetIpStatisticsEx(
  PMIB_IPSTATS pStats,
  DWORD dwFamily
);

Parameters

  • pStats
    [out] Pointer to a MIB_IPSTATS structure that receives the IP statistics for the local computer.
  • dwFamily
    [in] Specifies the protocol family for which to retrieve statistics. This parameter can be one of the following values.
    Value Description
    AF_INET Internet Protocol version 4 (IPv4).
    AF_INET6 Internet Protocol version 6 (IPv6).

Return Values

If the function succeeds, the return value is NO_ERROR. If the function fails, an error code is returned.

Requirements

OS Versions: Windows CE 3.1 and later.
Header: Iphlpapi.h.
Link Library: Iphlpapi.lib.

See Also

IPHelper Functions | MIB_IPSTATS | GetIpStatistics

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.