This function can be used to create a new virtual disk locally without being connected to the Parallels Service.
PRL_RESULT PrlDisk_CreateDisk_Local( PRL_HANDLE_PTR pHandle, PRL_CONST_STR pDiskName, PRL_CONST_DISK_PARAMETERS_PTR pParams, const PRL_DISK_CALLBACK pCallback, PRL_CONST_VOID_PTR pAdditional );
PrlDisk.h
If this parameter contains a NULL pointer, the function will be called synchronously.
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid argument values.
PRL_ERR_SUCCESS - function completed successfully.
The function creates a new virtual disk and obtains a handle of type PHT_VIRTUAL_DISK identifying the new disk. The handle can then be used to perform other operations on the disk if necessary (see other functions from this group). If you would like to create a new virtual disk on a remote host, use the PrlDisk_CreateDisk function.