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

RpcSsEnableAllocate function

The RpcSsEnableAllocate function establishes the stub memory–management environment.

Syntax


void RPC_ENTRY RpcSsEnableAllocate(void);

Parameters

This function has no parameters.

Return value

ValueMeaning
RPC_S_OUT_OF_MEMORY

The system is out of memory.

 

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

Remarks

In cases where the stub memory management is not enabled by the stub itself, an application calls RpcSsEnableAllocate to establish the stub memory–management environment. This environment must be established prior to making a call to RpcSsAllocate. For server manager code called from the stub, the memory-management environment is usually established by the stub itself. Otherwise, call RpcSsEnableAllocate before calling RpcSsAllocate. For more information, see Memory Management, RpcSsGetThreadHandle, and RpcSsSetThreadHandle.

Note  The RpcSsEnableAllocate function raises exceptions, while the RpcSmEnableAllocate function returns the error code.

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

RpcSmEnableAllocate
RpcSsAllocate
RpcSsDisableAllocate

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.