RpcBindingVectorFree

The RpcBindingVectorFree function frees the binding handles contained in the vector and the vector itself.

#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcBindingVectorFree( 
  RPC_BINDING_VECTOR * *  BindingVector  
);
 

Parameters

BindingVector
Points to a pointer to a vector of server binding handles. On return, the pointer is set to NULL.

Remarks

An application calls the RpcBindingVectorFree routine to release the memory used to store a vector of server binding handles. The routine frees both the binding handles and the vector itself.

A server obtains a vector of binding handles by calling the RpcServerInqBindings routine. A client obtains a vector of binding handles by calling the RpcNsBindingLookupNext routine.

Return Values

Value Meaning
RPC_S_OK Success
RPC_S_INVALID_ARG Invalid argument
RPC_S_INVALID_BINDING Invalid binding handle
RPC_S_WRONG_KIND_OF_BINDING Wrong kind of binding for operation

QuickInfo

  Windows NT: Yes
  Windows CE: Unsupported.
  Header: Declared in rpcdce.h.
  Import Library: Link with rpcrt4.lib.

See Also

RpcNsBindingLookupNext, RpcServerInqBindings