Virtuozzo Virtualization SDK C API Reference
ContentsIndex
Example
PrlSrv_Create Function

The following example illustrates how to create a handle of type PHT_SERVER.

PRL_HANDLE hServer;

PRL_RESULT ret = PrlSrv_Create( &hServer );
if ( PRL_FAILED(ret) )
{
    printf( "PrlSrv_Create returned with error: %s\n",
    PRL_RESULT_TO_STRING(ret) );
}

// Free hServer handle when it's no longer needed.
PrlHandle_Free( hServer );
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.