Once a client has discovered a route, the client can add that route to the routing table by calling the RtmAddNextHop function.
A client can remove routes from the routing table by calling the RtmDeleteRouteToDest function.
For sample code that shows how to use these functions, see Add and Update Routes Using RtmAddRouteToDest.
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
