[This is preliminary documentation and subject to change.]
DWORD
APIENTRY
DoUpdateRoutes(
IN DWORD dwIndex
)
/*++
Routine Description
This function is called by the IP Router Manger to ask us to
update routes over a Demand Dial link. The link has already been
brought up so should be in ENABLED-BOUND state. After we are done
we need to set the g_hMgrNotifyEvent to inform the Router Manager
that we have a message in our queue to be delivered to it. The
Router Manager will call our GetEventMessage() function in which
we will inform it that we are done with update routes (and the
routes have been stored in RTM). The Router Manager will "freeze"
these routes by converting them to AUTOSTATIC.
Arguments
Return Value
NO_ERROR/PENDING For Success
--*/
{
DWORD dwResult;
//
// We will fire off a worker function to do the "real work"
// That will set the event
//
dwResult = QueueAsyncFunction(UpdateRoutes,
(PVOID)dwIndex,
TRUE);
return dwResult;
}