RtmGetDestInfo function (rtmv2.h)
The RtmGetDestInfo function returns information about a destination.
DWORD RtmGetDestInfo( [in] RTM_ENTITY_HANDLE RtmRegHandle, [in] RTM_DEST_HANDLE DestHandle, [in] ULONG ProtocolId, [in] RTM_VIEW_SET TargetViews, [out] PRTM_DEST_INFO DestInfo );
Handle to the client obtained from a previous call to RtmRegisterEntity.
Handle to the destination for which to return information.
Specifies the protocol identifier. The ProtocolID is not part of the search criteria. The routing table manager uses this identifier to determine which route information to return. For example, if a client specifies the RIP protocol identifier, the best RIP route is returned, even if a non-RIP route is the best route to the destination.
Specify RTM_BEST_PROTOCOL to return a route regardless of which protocol owns it. Specify RTM_THIS_PROTOCOL to return the best route for the calling protocol.
Specifies the views from which to return information. If the client specifies RTM_VIEW_MASK_ANY, destination information is returned from all views; however, no view-specific information is returned.
On input, DestInfo is a pointer to an RTM_DEST_INFO structure.
On output, DestInfo is filled with the requested destination information.
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
||The handle is invalid.|
The structure pointed to by DestInfo is a variable-sized structure. If the client specifies more than one view with TargetViews, the size of DestInfo increases for each view. Use the RTM_SIZE_OF_DEST_INFO macro to determine how large a DestInfo structure to allocate before calling this function. Use the value specified for TargetViews as a parameter to RTM_SIZE_OF_DEST_INFO.
Use RtmReleaseDestInfo to release the DestInfo buffer.
|Minimum supported client||None supported|
|Minimum supported server||Windows 2000 Server [desktop apps only]|