Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlVmDevHd_SetDiskType Function
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

PrlApiVm.h

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 ©2016-2017 Parallels International GmbH. All rights reserved.