Parallels C API Reference Guide
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 © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.