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

This function used to encrypt whole disk

Syntax
PRL_RESULT PrlDisk_Encrypt(
    const PRL_HANDLE Handle, 
    PRL_GUID_PTR Engine, 
    PRL_UINT8_PTR Key, 
    PRL_UINT32 Length, 
    const PRL_DISK_CALLBACK pDiskCallback, 
    PRL_VOID_PTR pParameter
);
File
Parameters

Handle
A handle of type PHT_VIRTUAL_DISK identifying the source virtual disk.
Engine
Encryption engine used to encrypt VM
Key
Pointer to the raw key data
Length
Key length
pDiskCallback
A pointer to a callback function or NULL pointer. If the parameter contains a valid pointer to the callback, the function will be called asynchronously. If it contains a 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 error code.

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