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

Allows to choose the Parallels Service memory allocation mode from automatic or manual.

Syntax
PRL_RESULT PrlDispCfg_SetAdjustMemAuto(
    PRL_HANDLE hDispConfig, 
    PRL_BOOL bAdjustMemAuto
);
File
Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG .
bAdjustMemAuto
To set the size automatically, set this parameter to PRL_TRUE . To set the size manually, set this parameter to PRL_FALSE and then use the PrlDispCfg_SetReservedMemLimit function to set the size.
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 operations 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 using this function. The current memory allocation method can be determined using the PrlDispCfg_IsAdjustMemAuto function. The amount of currently allocated memory can be retrieved using the PrlDispCfg_GetReservedMemLimit 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!