Returns a list of root directories on the host computer.
PRL_HANDLE PrlSrv_FsGetDiskList( PRL_HANDLE hServer );
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.
On Windows, the function returns a list of PHT_REMOTE_FILESYSTEM_INFO objects containing the disk volume information (e.g. C:\, D:\, etc.). On other operating systems, it returns a single object containing the root directory.
To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible values are:
PRL_ERR_INVALID_ARG - invalid server handle was passed.
PRL_ERR_SUCCESS - function completed successfully.
To get the results from the PHT_JOB object:
The following example illustrates how to obtain a handle of type PHT_REMOTE_FILESYSTEM_INFO.
hJob = PrlSrv_FsGetDiskList( hServer ); PrlJob_Wait( hJob, JOB_TIMEOUT ); PrlJob_GetResult( hJob, &hJobResult ); PrlHandle_Free( hJob ); // Get the PHT_REMOTE_FILESYSTEM_INFO handle. PRL_HANDLE hHandle; PrlResult_GetParam( hJobResult, &hHandle );