Automatically generates a name for a virtual device which will be unique within a home directory of the specified virtual machine.
PRL_HANDLE PrlVm_GenerateVmDevFilename( PRL_HANDLE hVm, PRL_CONST_STR sFilenamePrefix, PRL_CONST_STR sFilenameSuffix, PRL_CONST_STR sIndexDelimiter );
PrlApiVm.h
A handle of type PHT_JOB containing the results of this asynchronous operation or PRL_INVALID_HANDLE if there's not enough memory to instantiate the job object.
To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible value are:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_NO_DATA - the home directory information is missing in the specified virtual machine object. If this is a new virtual machine, try updating the local object by calling the PrlVm_RefreshConfig or PrlSrv_GetVmList function.
PRL_ERR_SUCCESS - function completed successfully.