The following example illustrates how to log in to locally running Parallels Service and to obtain a handle of type PHT_LOGIN_RESPONSE.
// Log in. hJob = PrlSrv_LoginLocal( hServer, NULL, 0, PSL_LOW_SECURITY ); PrlJob_Wait( hJob, 10000 ); // Get the results of the login operation. PrlJob_GetResult( hJob, &hJobResult ); PrlHandle_Free( hJob ); // Get the PHT_LOGIN_RESPONSE handle from the job result. PRL_HANDLE hHandle; PrlResult_GetParam( hJobResult, &hHandle );