Virtuozzo Virtualization SDK C API Reference
|
Determines whether the virtual machine requires a default device of the specified type if it's going to run an operating system of the specified type.
PRL_RESULT PrlVmCfg_IsDefaultDeviceNeeded( PRL_UINT32 guestOsVersion, PRL_DEVICE_TYPE deviceType, PRL_BOOL_PTR pbNeeded );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.
The function accepts the target operating system type, version, and a device type identifier. Using these parameters, it determines if the specified device is required in order for the projected virtual machine to run properly. If the device is required, you must add it to the virtual machine using the PrlVmCfg_AddDefaultDevice function. If the device is not required, you don't have to add it (i.e. it will not affect the operation of a virtual machine).