Collapse All
Parallels C API Reference Guide
PrlVmDevHd_SetDiskType Function
PrlApi.h PHT_VIRTUAL_DEV_HARD_DISK See Also

Sets the type of the specified virtual hard disk.

Syntax
PRL_RESULT PrlVmDevHd_SetDiskType(
    PRL_HANDLE hVmDev, 
    PRL_HARD_DISK_INTERNAL_FORMAT nDiskType
);
File
Parameters

hVmDev
A valid handle of type PHT_VIRTUAL_DEV_HARD_DISK identifying the virtual hard disk.
nDiskType
The hard disk type to set.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

A virtual hard disk can be one of the two types: expanding or fixed-size. The size of an expanding hard disk is expanded dynamically up to a predefined limit. The size of a fixed-size hard disk is set to the specified value at the time of creation. The function can be used with both new and existing virtual hard disks.

See Also
Links
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!