Registers an event handler.
PRL_RESULT PrlSrv_RegEventHandler( PRL_HANDLE hServer, PRL_EVENT_HANDLER_PTR handler, PRL_VOID_PTR userData );
PrlApiDisp.h
Asynchronous functions return data to the caller by means of a callback function (or event handler). The callback function could be called at any time, depending on how long the asynchronous function takes to complete. The callback function must have a specific signature. The callback function prototype type is PRL_EVENT_HANDLER_PTR. The PrlSrv_RegEventHandler function is used to register an event handler with the specified Virtuozzo Service, PrlSrv_UnregEventHandler is used to unregister an event handler. When an event handler is registered, it will start receiving all events/jobs generated by the Virtuozzo Service. It is the responsibility of the client application to identify and handle the relevant event(s). For more information on events and asynchronous functions, see the Virtuozzo Virtualization SDK Programmer's Guide.