RtmReleaseNextHops function (rtmv2.h)

The RtmReleaseNextHops function releases the next-hop handles.

Syntax

DWORD RtmReleaseNextHops(
  [in] RTM_ENTITY_HANDLE   RtmRegHandle,
  [in] UINT                NumNextHops,
  [in] PRTM_NEXTHOP_HANDLE NextHopHandles
);

Parameters

[in] RtmRegHandle

Handle to the client obtained from a previous call to RtmRegisterEntity.

[in] NumNextHops

Specifies the number of next hops in NextHopHandles.

[in] NextHopHandles

Pointer to an array of next-hop handles to release. The handles were obtained with a previous call to RtmGetEnumNextHops.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following error codes.

Value Meaning
ERROR_INVALID_HANDLE
The handle is invalid.
 
 

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header rtmv2.h
Library Rtm.lib
DLL Rtm.dll

See also

RtmCreateNextHopEnum

RtmGetEnumNextHops