Allows to log in to the local Virtuozzo Service (the Virtuozzo Service running on this host) using the current user credentials.
0 - no flags. It's behaviour by default ( as PrlSrv_LoginLocal() )
When performing a local login operation, no password/username is needed. The authentication and authorization will be performed using the current user account.
PRL_ERR_INVALID_ARG - invalid handle was passed.
PRL_ERR_SUCCESS - function completed successfully.
To get the results from the PHT_JOB object:
The following example illustrates how to log in to locally running Virtuozzo 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 );