Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlVmDevHd_GetPartition Function
PHT_VIRTUAL_DEV_HARD_DISK  See Also

Obtains a handle of type PHT_VIRTUAL_DEV_HD_PARTITION containing information about the specified partition of the virtual hard disk.

Syntax
PRL_RESULT PrlVmDevHd_GetPartition(
    PRL_HANDLE hVmDev, 
    PRL_UINT32 nIndex, 
    PRL_HANDLE_PTR phPartition
);
File

PrlApiVm.h

Parameters

hVmDev
A valid handle of type PHT_VIRTUAL_DEV_HARD_DISK identifying the virtual hard disk.
nIndex
An index identifying the partition instance (beginning with 0). To get the number of partitions of the virtual hard disk, use the PrlVmDevHd_GetPartitionsCount function.
phPartition
[out] A pointer to a variable that receives the handle.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed, or device index out of bound. 

PRL_ERR_SUCCESS - function completed successfully. 

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