Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlSrvCfgDev_SetDeviceState Function
PHT_HW_GENERIC_DEVICE  See Also

Allows to specify whether a virtual machine can directly use a device, such as a PCI device through IOMMU technology (e.g.

Syntax
PRL_RESULT PrlSrvCfgDev_SetDeviceState(
    PRL_HANDLE hGenericDevice, 
    PRL_GENERIC_DEVICE_STATE nDeviceState
);
File

PrlApiDisp.h

Parameters

hGenericDevice
A handle of type PHT_HW_GENERIC_DEVICE, or one of the descendant types, identifying the device.
pnDeviceState
The device access preference.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

Intel Vt-d) or a USB device. When using this function to set a PCI device access, the PrlSrv_ConfigureGenericPci function needs to be called afterwards to apply the changes to the Parallels Service preferences.

See Also
Links
© 2021 Parallels International GmbH. All rights reserved.