The RpcSmFree function releases memory allocated by RpcSmAllocate.
#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcSmFree(
void * NodeToFree
);
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 Management 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.
Value | Meaning |
---|---|
RPC_S_OK | Success |
Windows NT: Yes
Windows CE: Unsupported.
Header: Declared in rpcndr.h.
Import Library: Link with rpcrt4.lib.
RpcSmAllocate, RpcSmGetThreadHandle, RpcSmSetThreadHandle