Partager via


GetTcpStatistics (Compact 2013)

3/26/2014

This function retrieves the TCP statistics for the local device.

Syntax

DWORD GetTcpStatistics( 
  PMIB_TCPSTATS pStats
);

Parameters

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

Return Value

If the function succeeds, the return value is NO_ERROR.

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
GetIpStatistics
GetUdpStatistics
MIB_TCPSTATS