Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlVmDev_Create Function
Virtual Device Functions

Creates a new virtual device handle not bound to any virtual machine.

Syntax
PRL_RESULT PrlVmDev_Create(
    PRL_DEVICE_TYPE nDeviceType, 
    PRL_HANDLE_PTR phVmDevice
);
File

PrlApiVm.h

Parameters

nDeviceType
The type of handle to create.
phVmDevice
[out] A pointer to a variable that receives the handle.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

It is necessary to call PrlHandle_Free after the handle usage.

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.