GetRTTAndHopCount (Windows CE 5.0)

Send Feedback

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

BOOLGetRTTAndHopCount(IPAddrDestIpAddress, PULONGHopCount, ULONGMaxHops, PULONG RTT);

Parameters

  • DestIpAddress
    [in] The IP address of the destination for which to determine the RTT and hop count. For information about the IPAddr data type, see Microsoft Win32 Simple Data Types in the Windows SDK.
  • HopCount
    [out] Pointer to the hop count to the destination specified by the DestIpAddress parameter.
  • 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 Values

Returns TRUE if successful, and FALSE otherwise.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Iphlpapi.h.
Link Library: Iphlpapi.lib.

See Also

IP Helper Functions | GetBestInterface | GetBestRoute

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.