Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlDisk_CompactByBitmap Function
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

PrlDisk.h

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