Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 906 Bytes

File metadata and controls

41 lines (28 loc) · 906 Bytes

Home

Function name : GetTcpStatistics

Group: IP Helper - Library: iphlpapi


The GetTcpStatistics function retrieves the TCP statistics for the local computer.


Code examples:

Retrieving statistics for the TCP protocol running on the local computer

Declaration:

DWORD GetTcpStatistics(
  PMIB_TCPSTATS pStats  // pointer to TCP stats
);  

FoxPro declaration:

DECLARE INTEGER GetTcpStatistics IN iphlpapi;
	STRING @ pStats  

Parameters:

pStats [out] Pointer to a MIB_TCPSTATS structure that receives the TCP statistics for the local computer.


Return value:

If the function succeeds, the return value is NO_ERROR (0).