Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlSrvCfg_GetUsbDev Function
PHT_SERVER_CONFIG

Obtains a pointer of type PHT_HW_GENERIC_DEVICE containing information about a USB device on the host.

Syntax
PRL_RESULT PrlSrvCfg_GetUsbDev(
    PRL_HANDLE hSrvConfig, 
    PRL_UINT32 nIndex, 
    PRL_HANDLE_PTR phDevice
);
File

PrlApiDisp.h

Parameters

hSrvConfig
A handle of type PHT_SERVER_CONFIG.
nIndex
A numeric index identifying the device (beginning with 0). To get the number of USB devices available, use the PrlSrvCfg_GetUsbDevsCount function.
phDevice
[out] A pointer to a variable that receives a pointer of type PHT_HW_GENERIC_DEVICE containing the device information.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

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