Allows to increase the size of an existing virtual disk.
PRL_RESULT PrlDisk_IncreaseCapacity( const PRL_HANDLE Handle, PRL_CONST_DISK_PARAMETERS_PTR pParams, const PRL_DISK_CALLBACK pDiskCallback, PRL_VOID_PTR pParameter );
PrlDisk.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid argument values.
PRL_ERR_SUCCESS - function completed successfully.
Disk size can be increased by adding a new storage segment to its configuration or by increasing the size of an existing storage (only the size of the last storage segment in the storage list can be modified). A virtual disk can be comprised of one or more storage segments, which are logical portions of the entire disk. Each storage is contained in a separate file on the physical hard drive. All storages are logically connected in a particular order.
To increase the overall disk capacity, a new storage can be added at the end. In order to do that, the members of the PRL_DISK_PARAMETERS structure that you pass in the pParam parameter must contain the following values: