Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlDisk_ConfigurePhysical Function
PHT_VIRTUAL_DISK  See Also

This function can be used to configure a new virtual disk, which is based on an external physical device, locally without being connected to the Parallels Service.

Syntax
PRL_RESULT PrlDisk_ConfigurePhysical(
    PRL_CONST_STR pDiskName, 
    PRL_CONST_STR pDevPath, 
    PRL_UINT32 nReserved
);
File

PrlDisk.h

Parameters

pDiskName
[in] Virtual disk name in UTF-8 format, which will be created.
pDevPath
[in] Path to the physical device in UTF-8 format '/dev/diskX'.
nReserved
[in] This is a reserved parameter.

Returns

PRL_RESULT. Possible values are: 

PRL_ERR_INVALID_ARG - Invalid handle or null pointer was passed. PRL_ERR_OUT_OF_MEMORY - Not enough memory to create an object. PRL_ERR_CANT_CONFIGURE_PHYSICAL_HDD - Unable to configure the hard disk settings. PRL_ERR_SUCCESS - Function completed successfully. 

See Also
Links
© 2021 Parallels International GmbH. All rights reserved.