Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlDispCfg_SetRecommendMaxVmMem Function
PHT_DISP_CONFIG  See Also

Allows to manually set recommended memory size for an individual virtual machine.

Syntax
PRL_RESULT PrlDispCfg_SetRecommendMaxVmMem(
    PRL_HANDLE hDispConfig, 
    PRL_UINT32 nMemSize
);
File

PrlApiDisp.h

Parameters

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

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

By default, the recommended memory size for a virtual machine is calculated automatically. If needed, you can set your own recommended memory size using this function. The value must be selected from the memory limit range that can be determined using the PrlDispCfg_GetMinVmMem and PrlDispCfg_GetMaxVmMem functions. The value by itself is not used as a constraint of any kind and is just a suggestion that the end user may act on or not.

See Also
Links
© 2021 Parallels International GmbH. All rights reserved.