Connects to a virtual machine to begin a remote desktop access session.
PRL_HANDLE PrlDevDisplay_ConnectToVm( PRL_HANDLE hObj, PRL_DISPLAY_CODEC_TYPE type );
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.
This function must be called before any other function calls related to the remote desktop access functionality.
use this call to receive supported server display encodings: PrlSrv_GetDisplayEncodingList also you can receive or change display encoding at runtime: PrlDevDisplay_SetDisplayEncoding PrlDevDisplay_GetDisplayEncoding