Export (0) Print
Expand All
Expand Minimize

RpcSmClientFree function

The RpcSmClientFree function frees memory returned from a client stub.

Syntax


RPC_STATUS RPC_ENTRY RpcSmClientFree(
  void *NodeToFree
);

Parameters

NodeToFree

Pointer to memory returned from a client stub.

Return value

ValueMeaning
RPC_S_OK

The call succeeded.

 

Note  For a list of valid error codes, see RPC Return Values.

Remarks

The RpcSmClientFree function releases memory allocated and returned from a client stub. The memory management handle of the thread calling this function must match the handle of the thread that made the RPC call. Use RpcSmGetThreadHandle and RpcSmSetThreadHandle to pass handles from thread to thread.

Note that using RpcSmClientFree allows a function to free dynamically-allocated memory returned by an RPC call without knowing the memory-management environment from which it was called.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Rpcndr.h (include Rpc.h)

Library

Rpcrt4.lib

DLL

Rpcrt4.dll

See also

RpcSmFree
RpcSmGetThreadHandle
RpcSmSetClientAllocFree
RpcSmSetThreadHandle
RpcSmSwapClientAllocFree

 

 

Community Additions

ADD
Show:
© 2014 Microsoft