Shuts down the Parallels Service.
PRL_HANDLE PrlSrv_Shutdown( PRL_HANDLE hServer, PRL_BOOL bForceShutdown );
PrlApiDisp.h
A handle of type PHT_JOB containing the results of this asynchronous operation or PRL_INVALID_HANDLE if there's not enough memory to instantiate the job object.
The current user must have sufficient privileges to execute the Parallels Service shutdown.
To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible values are:
PRL_ERR_INVALID_ARG - invalid handle was passed.
PRL_ERR_ACCESS_TOKEN_INVALID - the user doesn't have sufficient privileges.
PRL_ERR_ANOTHER_USER_SESSIONS_PRESENT - another user is currently connected to the Parallels Service, the Parallels Service shutdown aborted.
PRL_ERR_SOME_VMS_RUNNING - running virtual machines found, stop the running machines first.
PRL_ERR_SOME_TASKS_PRESENT - running tasks detected, wait for the tasks to finish or cancel them.
PRL_ERR_SUCCESS - function completed successfully.