Virtuozzo Virtualization SDK C API Reference
ContentsIndex
Example
PrlSrv_LoginLocal Function

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 );
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.