GetIcmpStatisticsEx (Compact 2013)

3/26/2014

This function retrieves the Internet Control Message Protocol (ICMP) statistics for the current device. This function differs from the GetIcmpStatistics function in that this function also supports the Internet Protocol version 6 (IPv6) protocol family.

Syntax

DWORD GetIcmpStatisticsEx(
  PMIB_ICMP pStats, 
  DWORD dwFamily
);

Parameters

  • pStats
    [out] Pointer to a MIB_ICMP structure that contains the ICMP statistics for the local device.
  • dwFamily
    [in] The protocol family for which to retrieve statistics. The following table shows the possible values.

    Value

    Description

    AF_INET

    Internet Protocol version 4 (IPv4).

    AF_INET6

    Internet Protocol version 6 (IPv6).

Return Value

Returns NO_ERROR upon success.

If the function fails, use FormatMessage to obtain the message string for the returned error.

Requirements

Header

iphlpapi.h

Library

Iphlpapi.lib

See Also

Reference

IP Helper Functions
GetIcmpStatistics
GetTcpStatisticsEx
GetUdpStatisticsEx
MIB_ICMP

Other Resources

IP Helper