Partager via


GetIpStatistics (Compact 2013)

3/26/2014

This function retrieves the IP statistics for the current device.

Syntax

DWORD GetIpStatistics(
  PMIB_IPSTATS pStats
);

Parameters

  • pStats
    [out] Pointer to a MIB_IPSTATS structure that contains the IP statistics for the local device.

Return Value

Returns NO_ERROR if successful. If the function fails, it returns an error code. For a complete list of error codes, see Error Values or the SDK header file Winerror.h.

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
GetTcpStatistics
GetUdpStatistics
MIB_IPSTATS

Other Resources

IP Helper