Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlVmCfg_SetSmartGuardMaxSnapshotsCount Function
PHT_VM_CONFIGURATION

Sets the maximum snapshot count, a SmartGuard feature.

Syntax
PRL_RESULT PrlVmCfg_SetSmartGuardMaxSnapshotsCount(
    PRL_HANDLE hVmCfg, 
    PRL_UINT32 nMaxSnapshotsCount
);
File

PrlApiVm.h

Parameters

hVmCfg
A handle of type PHT_VM_CONFIGURATION identifying the virtual machine configuration.
nMaxSnapshotsCount
Maximum snapshot count to set. The maximum allowable value is 100.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

SmartGuard is a facility that allows to make automatic snapshots of a virtual machine at predefined time intervals. The snapshot count setting specifies how many snapshots taken by SmartGuard will be kept on the hard drive (maximum is 100). As soon as the maximum number is exceeded, the oldest snapshot is deleted.

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.