[This is preliminary documentation and subject to change.]
The RtmGetNextRoute function returns the next route from the specified subset of routes in the table.
DWORD RtmGetNextRoute(
DWORD ProtocolFamily, // type of network (IP or IPX)
DWORD EnumerationFlags, // flags that specify type of criteria
PVOID Route // structure for criteria values and
// returned route.
);
The calling function provides member values for this structure. These values in conjunction with the EnumerationFlags parameter, specify the set from which to return routes.
On successful return, this structure receives the first route that matched the specified criteria.
The routes are returned in the following order:
This function is less efficient than the corresponding enumeration handle functions.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in rtm.h.
Import Library: Link with rtm.lib.
RtmCloseEnumerationHandle, RtmCreateEnumerationHandle, RtmEnumerateGetNextRoute, RtmGetFirstRoute