The PrlVm_GetQuestions function allows to synchronously receive questions from a Virtuozzo Service.
PRL_RESULT PrlVm_GetQuestions( PRL_HANDLE hVm, PRL_HANDLE_PTR pQuestionsList );
PrlApiVm.h
PRL_RESULT. Possible values: PRL_ERR_INVALID_ARG - non valid PHT_VIRTUAL_MACHINE handle or non valid (NULL) pointer to the buffer for storing result was passed. PRL_ERR_SUCCESS - operation completed successfully.
It can be used as an alternative to asynchronous question processing through events. You can use this function at any time to check if a question is awaiting the client response on the Virtuozzo Service side.