Allows to decrease the size of an existing virtual disk.
PRL_RESULT PrlDisk_DecreaseCapacity( const PRL_HANDLE Handle, const PRL_UINT64 uiSize, 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.
Depending on the new disk size, the size of the last storage segment in the virtual disk storage list will be adjusted or one (or more) storages will be deleted from the end of the list.