Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RpcSmSetClientAllocFree function

The RpcSmSetClientAllocFree function enables the memory allocation and release mechanisms used by the client stubs.

Syntax


RPC_STATUS RPC_ENTRY RpcSmSetClientAllocFree(
  RPC_CLIENT_ALLOC *pfnAllocate,
  RPC_CLIENT_FREE *pfnFree
);

Parameters

pfnAllocate

Function used to allocate memory.

pfnFree

Function used to release memory and used with the function specified by pfnAllocate.

Return value

ValueMeaning
RPC_S_OK

The call succeeded.

RPC_S_OUT_OF_MEMORY

The system is out of memory.

 

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

Remarks

By overriding the default routines used by the client stub to manage memory, RpcSmSetClientAllocFree establishes the memory allocation and memory-freeing mechanisms. Note that the default routines are free and malloc, unless the remote call occurs within manager code. In this case, the default memory–management functions are RpcSmFree and RpcSmAllocate.

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.