[This is preliminary documentation and subject to change.]
The RtmDequeueRouteChangeMessage function returns the next route-change message in the queue associated with the specified client.
DWORD RtmDequeueRouteChangeMessage(
HANDLE ClientHandle, // handle that identifies the client
DWORD Flags, // type of change message
PVOID CurBestRoute, // the new best route
PVOID PrevBestRoute // the previous best route
);
Flags | Values |
---|---|
RTM_ROUTE_ADDED | The first route was added for a particular destination network. The CurBestRoute parameter points to the information for the added route. |
RTM_ROUTE_DELETED | The only route available for a particular destination network was deleted. The PrevBestRoute parameter points to the information for the deleted route. |
RTM_ROUTE_CHANGED | At least one of the significant parameters was changed for a best route to a particular destination network. The significant parameters are: Protocol ID Interface Index Next Hop Address
Protocol Family Specific Data |
The PrevBestRoute parameter points to the route information as it was before the change. The CurBestRoute parameter points to current (that is,after-change) route information.
This parameter is optional. If the caller specifies NULL for this parameter, the current best route information is not returned.
This parameter is optional. If the caller specifies NULL for this parameter, the previous best route information is not returned.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in rtm.h.
Import Library: Link with rtm.lib.