Platform SDK: Internet Protocol Helper |
The GetRTTAndHopCount function determines the round-trip time (RTT) and hop count to the specified destination.
BOOL GetRTTAndHopCount( IPAddr DestIpAddress, // destination IP address PULONG HopCount, // returned hop count ULONG MaxHops, // limit on number of hops to search PULONG RTT // round-trip time );
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. Call GetLastError to obtain the error code for the failure.
For information about the IPAddr data type, see Types. To convert an IP address between dotted decimal notation and IPAddr format, use the inet_addr and inet_ntoa functions.
Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
Windows 95/98: Requires Windows 98.
Header: Declared in Iphlpapi.h.
Library: Use Iphlpapi.lib.