GetTcpStatisticsEx
This function retrieves the Transmission Control Protocol (TCP) statistics for the current computer. This function differs from the GetTcpStatistics function in that this function also supports the Internet Protocol version 6 (IPv6) protocol family.
DWORD GetTcpStatisticsEx(
PMIB_TCPSTATS pStats,
DWORD dwFamily
);
Parameters
- pStats
[out] Pointer to a MIB_TCPSTATS structure that, on successful return, contains the TCP 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 .NET 4.1 and later.
Header: Iphlpapi.h.
Link Library: Iphlpapi.lib.
See Also
IPHelper Functions | GetTcpStatistics
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.