RpcSmFree  XL63AL

The RpcSmFree function releases memory allocated by RpcSmAllocate.

#include <rpc.h>

RPC_STATUS RPC_ENTRY RpcSmFree(

    void  *  NodeToFree

 

   );

 

 

Parameters

NodeToFree

Specifies a pointer to memory allocated by RpcSmAllocate or RpcSsAllocate.

 

Remarks

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

Note that the handle of the thread calling RpcSmFree must match the handle of the thread that allocated the memory by calling RpcSmAllocate. Use RpcSmGetThreadHandle and RpcSmSetThreadHandle to pass handles from thread to thread.

Return Values

Value

Meaning

RPC_S_OK

Success

 

See Also

RpcSmAllocate, RpcSmGetThreadHandle, RpcSmSetThreadHandle