[This is preliminary documentation and subject to change.]
The RtmDeleteRoute function deletes a route entry.
DWORD RtmDeleteRoute(
HANDLE ClientHandle, // handle that identifies client
PVOID Route, // pointer to route structure
DWORD Flags, // best route change status
PVOID CurBestRoute // pointer to new best route
);
Flags | Values |
---|---|
RTM_NO_CHANGE | Deleting the route did not affect the best route to any destination network, that is, another entry represents a route to the same destination network, and has a lower metric. |
RTM_ROUTE_DELETED | The route deleted was the only route available for a particular destination network. |
RTM_ROUTE_CHANGED | After this route was deleted, another route became the best route to a particular destination network. CurBestRoute points to the information for the new best route. |
This parameter is optional. If the caller specifies NULL for this parameter the current best route information is not returned.
The function generates a route-change message if the best route to a destination network has changed as the result of the deletion. However, the route change message is not sent to the client that makes this call. Instead, relevant information is returned by this function directly to that client.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in rtm.h.
Import Library: Link with rtm.lib.
RtmAddRoute, RtmDequeueRouteChangeMessage