Partager via


GetRTTAndHopCount (Windows Embedded CE 6.0)

1/6/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 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 Value

Returns TRUE if successful, and FALSE otherwise.

Requirements

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

See Also

Reference

IP Helper Functions
GetBestInterface
GetBestRoute