Export (0) Print
Expand All
Expand Minimize

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:
© 2014 Microsoft