Migrates an existing virtual machine to another host.
PRL_HANDLE PrlVm_MigrateWithRenameEx( PRL_HANDLE hVm, PRL_CONST_STR target_host, PRL_UINT32 target_port, PRL_CONST_STR target_session_id, PRL_CONST_STR target_name, PRL_CONST_STR target_home_path, PRL_UINT32 migration_flags, PRL_UINT32 reserved_flags, PRL_BOOL force_operation );
PrlApiDeprecated.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.
This is an extended version of PrlVm_MigrateWithRename function that allows to initiate VM migration process without active connection to target Parallels Service.
To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible values are:
PRL_ERR_INVALID_ARG - invalid handle was passed.
PRL_ERR_SUCCESS - function completed successfully.