RpcSmEnableAllocate  T.JM1J

The RpcSmEnableAllocate function establishes the stub memory management environment.

#include <rpc.h>

RPC_STATUS RPC_ENTRY RpcSmEnableAllocate (VOID);

Remarks

In cases where the stub memory management is not enabled by the server stub itself, applications call the RpcSmEnableAllocate routine to establish the stub memory management environment. This environment must be established prior to making a call to RpcSmAllocate. In OSF-compatibility (/osf) mode, for server manager code called from the stub, the memory management environment may be established by the server stub itself by using pointer manipulation or the enable_allocate attribute. In default (Microsoft-extended) mode, the environment is established only upon request by using the enable_allocate1KLVZV0 attribute (see The MIDL Reference_WLRM7.) Otherwise, call RpcSmEnableAllocate3AULOI5 before calling RpcSmAllocate. See Memory Management22W17G for a complete discussion of the memory management conditions used by RPC. 

RpcSmGetThreadHandleHH4G5P and RpcSmSetThreadHandleDC47P

Return Values

Value

Meaning

RPC_S_OK

Success

RPC_S_OUT_OF_MEMORY

Out of memory

 

See Also

RpcSmAllocate, RpcSmDisableAllocate