RtmDeleteNextHop function (rtmv2.h)
The RtmDeleteNextHop function deletes a next hop from the next-hop list.
DWORD RtmDeleteNextHop( [in] RTM_ENTITY_HANDLE RtmRegHandle, [in] RTM_NEXTHOP_HANDLE NextHopHandle, [in] PRTM_NEXTHOP_INFO NextHopInfo );
Handle to the client obtained from a previous call to RtmRegisterEntity.
Handle to the next hop to delete. This parameter is optional and can be set to NULL; if it is NULL, the values in NextHopInfo are used to identify the next hop to delete.
Pointer to a structure that contains information identifying the next hop to delete. This parameter is optional and can be set to NULL; if it is NULL, the handle in NextHopHandle is used to identify the next hop to delete.
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
||The calling client does not own this next hop.|
||There is not enough memory to complete this operation.|
||The specified next hop was not found.|
If a client specifies a NextHopHandle, the client should not subsequently release the handle using RtmReleaseNextHops.
|Minimum supported client||None supported|
|Minimum supported server||Windows 2000 Server [desktop apps only]|