Collapse All
Parallels C API Reference Guide
PrlDispCfg_SetReservedMemLimit Function
PrlApi.h PHT_DISP_CONFIG See Also

Allows to set the amount of memory that will be allocated for Parallels Service operation.

Syntax
PRL_RESULT PrlDispCfg_SetReservedMemLimit(
    PRL_HANDLE hDispConfig, 
    PRL_UINT32 nMemSize
);
File
Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG .
nMemSize
The new memory size in megabytes.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

The memory size must fall within the memory limits that can be determined using the PrlDispCfg_GetMaxReservMemLimit and the PrlDispCfg_GetMinReservMemLimit functions. By default, the memory size is calculated automatically based on the total RAM available on the host. If you are changing the default value, you must also switch the Parallels Service memory allocation to manual mode using the PrlDispCfg_SetAdjustMemAuto function.

See Also
Links
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!