Virtuozzo Virtualization SDK C API Reference
|
Obtains a handle of type PHT_RUNNING_TASK.
PRL_RESULT PrlLoginResponse_GetRunningTaskByIndex( PRL_HANDLE hLoginResp, PRL_UINT32 nIndex, PRL_HANDLE_PTR phRunningTask );
PrlApiDisp.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.
If a previous session ID was passed to the corresponding login operation, the PHT_LOGIN_RESPONSE object will contain a list of the tasks that were initiated during the previous session and are still running (if any). A task ID (that can be retrieved using this function) can be passed to the PrlSrv_AttachToLostTask function to get a handle to the task, thus gaining control to it.