RpcSsFree

The RpcSsFree function releases memory allocated by RpcSsAllocate.

#include <rpc.h>
void RPC_ENTRY RpcSsFree( 
  void *  NodeToFree  
);
 

Parameters

NodeToFree
Specifies a pointer to memory allocated by RpcSsAllocate or RpcSmAllocate.

Remarks

The RpcSsFree routine is used by applications to free memory allocated by RpcSsAllocate. In cases where the stub allocates the memory for the environment, the RpcSsFree routine can also be used to release memory. See Memory Management for a complete discussion of memory management conditions supported by RPC.

Note that the handle of the thread calling RpcSsFree must match the handle of the thread that allocated the memory by calling RpcSsAllocate. Use RpcSsGetThreadHandle and RpcSsSetThreadHandle to pass handles from thread to thread.

QuickInfo

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

See Also

RpcSmFree, RpcSsAllocate, RpcSsGetThreadHandle, RpcSsSetThreadHandle