Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function determines the round-trip time (RTT) and hop count to the specified destination.

Syntax

BOOL GetRTTAndHopCount(
  IPAddr 
DestIpAddress, 
  PULONG 
HopCount, 
  ULONG 
MaxHops, 
  PULONG 
RTT 
);

Parameters

DestIpAddress

[in] The IP address of the destination for which to determine the RTT and hop count. For information about the IPAddrdata type, see Microsoft Win32 Simple Data Types in the Windows SDK.

HopCount

[out] Pointer to the hop count to the destination specified by the DestIpAddressparameter.

MaxHops

[in] The maximum number of hops to search for the destination. If the number of hops to the destination exceeds this number, the function terminates the search and returns FALSE.

RTT

[out] Round-trip time, in milliseconds, to the destination specified by DestIpAddress.

Return Value

Returns TRUE if successful, and FALSE otherwise.

Requirements

Header iphlpapi.h
Library Iphlpapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also