Connect to vm.
PRL_HANDLE PrlVm_TerminalConnect( PRL_HANDLE hVm, PRL_UINT32 nFlags );
PrlApiVm.h
A handle of type PHT_JOB containing the results of operation.