Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 962 Bytes

File metadata and controls

41 lines (28 loc) · 962 Bytes

Home

Function name : GetIpStatistics

Group: IP Helper - Library: iphlpapi


The GetIpStatistics function retrieves the IP statistics for the current computer.


Code examples:

Retrieving IP statistics for the computer

Declaration:

DWORD GetIpStatistics(
  PMIB_IPSTATS pStats  // pointer to IP stats
);  

FoxPro declaration:

DECLARE INTEGER GetIpStatistics IN iphlpapi;
	STRING @ pStats  

Parameters:

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


Return value:

If the function succeeds, the return value is NO_ERROR (0). If the function fails, use FormatMessage to obtain the message string for the returned error.