RpcSmEnableAllocate function
The RpcSmEnableAllocate function establishes the stub memory–management environment.
Syntax
RPC_STATUS RPC_ENTRY RpcSmEnableAllocate(void);
Parameters
This function has no parameters.
Return value
| Value | Meaning |
|---|---|
|
The call succeeded. |
|
The system is out of memory. |
Remarks
In cases where the stub memory management is not enabled by the server stub itself, applications call RpcSmEnableAllocate 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_allocate attribute. Otherwise, call RpcSmEnableAllocate before calling RpcSmAllocate. For more information, see Memory Management, RpcSmGetThreadHandle, and RpcSmSetThreadHandle.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also