RpcSmSetClientAllocFree function (rpcndr.h)
The RpcSmSetClientAllocFree function enables the memory allocation and release mechanisms used by the client stubs.
RPC_STATUS RpcSmSetClientAllocFree( RPC_CLIENT_ALLOC *ClientAlloc, RPC_CLIENT_FREE *ClientFree );
Function used to allocate memory.
Function used to release memory and used with the function specified by pfnAllocate.
||The call succeeded.|
||The system is out of memory.|
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.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Header||rpcndr.h (include Rpc.h)|