Sets the maximum snapshot count, a SmartGuard feature.
PRL_RESULT PrlVmCfg_SetSmartGuardMaxSnapshotsCount( PRL_HANDLE hVmCfg, PRL_UINT32 nMaxSnapshotsCount );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle was passed.
PRL_ERR_SUCCESS - function completed successfully.
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.