Route Object
A-45
Internal Stack Functions
Start Walking the Route Table
RtWalkBegin
Syntax
HANDLE RtWalkBegin();
Return Value
HANDLE to first route in system route table or NULL if no routes.
Description
This function initiates a walk of the route table. It returns the first route in the
table. The walk must be terminated with RtWalkEnd() for the system to behave
properly.
Get Next Route While Walking the Route Table
RtWalkNext
Syntax
HANDLE RtWalkNext( HANDLE hRt );
Return Value
HANDLE to next route in system route table or NULL if no routes.
Description
This function gets the next route (based off the previous route supplied) in a
walk of the route table. The walk must be terminated with RtWalkEnd() for the
system to behave properly.
Stop Walking the Route Table
RtWalkEnd
Syntax
void RtWalkEnd( HANDLE hRt );
Description
This function completes the walk of the route table. The last route (if any) ob-
tained from RtWalkBegin() or RtWalkNext() is specified in the calling argu-
ment. Otherwise, NULL is used.