Collapse All
Parallels C API Reference Guide
PrlDisk_CompactByBitmap Function
PrlDisk.h PHT_VIRTUAL_DISK

Compacts a virtual disk with free blocks map.

Syntax
PRL_RESULT PrlDisk_CompactByBitmap(
    const PRL_HANDLE Handle, 
    const PRL_UINT8_PTR pBitmap, 
    const PRL_UINT32 uBlockSize, 
    const PRL_DISK_CALLBACK pCallback, 
    PRL_VOID_PTR pParameter
);
File
Parameters

Handle
A handle of type PHT_VIRTUAL_DISK identifying the virtual disk.
pBitmap
A pointer to a bit array of used blocks.
uBlockSize
Sectors per bit, i.e. block size.
pCallback
A pointer to a callback function or NULL pointer. If the parameter contains a pointer to a callback, the function will be called asynchronously. If it contains NULL pointer, the function will be called synchronously.
pParameter
A pointer to a buffer containing user-defined data to pass to the callback function.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid argument values.

PRL_ERR_SUCCESS - function completed successfully.

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