Parallels Virtualization SDK
ContentsIndex
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 );
© 2021 Parallels International GmbH. All rights reserved.