This is extended version of PrlApi_Init call that can be used to specify explicitly application mode in which the API library should function.
PRL_RESULT PrlApi_InitEx( PRL_UINT32 nVersion, PRL_APPLICATION_MODE nAppMode, PRL_UINT32 nFlags, PRL_UINT32 nReserved );
PrlApiCore.h
PRL_RESULT. Possible values:
PRL_ERR_DOUBLE_INIT - library has been already initialized.
PRL_ERR_OUT_OF_MEMORY - not enough memory to initialize the library.
PRL_ERR_API_INCOMPATIBLE - SDK version is incompatible with version in param.
PRL_ERR_SUCCESS - operation completed successfully.