Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RpcSmSwapClientAllocFree
Collapse the table of content
Expand the table of content

RpcSmSwapClientAllocFree function

The RpcSmSwapClientAllocFree function exchanges the client stub's memory-allocation and memory-freeing mechanisms with those supplied by the client.

Syntax


RPC_STATUS RPC_ENTRY RpcSmSwapClientAllocFree(
   RPC_CLIENT_ALLOC *pfnAllocate,
   RPC_CLIENT_FREE  *pfnFree,
   RPC_CLIENT_ALLOC **pfnOldAllocate,
   RPC_CLIENT_FREE  **pfnOldFree
);

Parameters

pfnAllocate

New memory-allocation function.

pfnFree

New memory-releasing function.

pfnOldAllocate

Returns the previous memory-allocation function before the call to this function.

pfnOldFree

Returns the previous memory-releasing function before the call to this function.

Return value

ValueMeaning
RPC_S_OK

The call succeeded.

RPC_S_INVALID_ARG

The argument is invalid.

 

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

Remarks

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

RpcSmAllocate
RpcSmFree
RpcSmSetClientAllocFree

 

 

Community Additions

ADD
Show:
© 2015 Microsoft