Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.
 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1

Header

Rpcndr.h (include Rpc.h)

Library

Rpcrt4.lib

DLL

Rpcrt4.dll

See also

RpcSmAllocate
RpcSmFree
RpcSmSetClientAllocFree

 

 

Show:
© 2017 Microsoft