Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlDispCfg_SetReservedMemLimit Function
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

PrlApiDisp.h

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
© 2021 Parallels International GmbH. All rights reserved.