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

Determines whether memory allocation for Parallels Service is performed automatically or manually.

Syntax
PRL_RESULT PrlDispCfg_IsAdjustMemAuto(
    PRL_HANDLE hDispConfig, 
    PRL_BOOL_PTR pbAdjustMemAuto
);
File

PrlApiDisp.h

Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG.
pbAdjustMemAuto
[out] A pointer to a variable that receives the result. PRL_TRUE indicates that the memory is set automatically. PRL_FALSE indicates that the size is set manually.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

By default, the amount of memory allocated for Parallels Service is calculated automatically based on the total RAM available on the host. You can allocate a different amount of memory if needed using the PrlDispCfg_SetReservedMemLimit function. Before you do that, you must switch memory allocation to manual mode using the PrlDispCfg_SetAdjustMemAuto function. The amount of currently allocated memory can be retrieved using the PrlDispCfg_GetReservedMemLimit function.

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