Collapse All
Parallels C API Reference Guide
ContentsIndex
PreviousUpNext
PrlVmDevHd_SetDiskSize Function
PrlApi.h  PHT_VIRTUAL_DEV_HARD_DISK  See Also  Send Feedback

Sets the size of the specified virtual hard disk.

Syntax
PRL_RESULT PrlVmDevHd_SetDiskSize(
    PRL_HANDLE hVmDev, 
    PRL_UINT32 nDiskSize
);
File
Parameters

hVmDev
A valid handle of type PHT_VIRTUAL_DEV_HARD_DISK identifying the virtual hard disk.
nDiskSize
The new size in megabytes.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

Use this function when adding a new virtual hard disk or when modifying the size of an existing disk.

See Also
Links
Copyright (c) 1999-2009 Parallels Software International Inc.
What do you think about this topic? Send feedback!