Parallels C API Reference Guide
Example
PrlVm_GetToolsState Function

The following example illustrates how to obtain a handle of type PHT_VM_TOOLS_INFO . The hVm variable is a handle of type PHT_VIRTUAL_MACHINE identifying the virtual machine.

PRL_HANDLE hJob, hResult, hVmToolsInfo;

hJob = PrlVm_GetToolsState( hVm );
PrlJob_Wait( hJob, 1000 );

PrlJob_GetResult( hJob, &hResult );
PrlHandle_Free( hJob );

PrlResult_GetParam( hJobResult, &hVmToolsInfo );
PrlHandle_Free( hJobResult );
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.