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