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 );