Collapse All
Parallels Desktop® 10 for Mac — C API Reference Guide
PrlVmDevHd_AddPartition Function
PHT_VIRTUAL_DEV_HARD_DISK

Assigns a boot camp partition to the specified virtual hard disk.

Syntax
PRL_RESULT PrlVmDevHd_AddPartition(
    PRL_HANDLE hVmDev, 
    PRL_HANDLE_PTR phPartition
);
File

PrlApiVm.h

Parameters

hVmDev
A valid handle of type PHT_VIRTUAL_DEV_HARD_DISK identifying the virtual hard disk.
phPartition
[out] A pointer to a variable that receives a handle of type PHT_VIRTUAL_DEV_HD_PARTITION containing the new partition information.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

When creating a virtual machine based on a boot camp partition, this function must be used to obtain a handle of type PHT_VIRTUAL_DEV_HD_PARTITION . The handle can then be used to set the system name of the boot camp partition that you would like to use.

Links
Copyright © 1999-2015 Parallels IP Holdings GmbH and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!