Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlVm_Pause Function
PHT_VIRTUAL_MACHINE  See Also

Pauses the specified virtual machine.

Syntax
PRL_HANDLE PrlVm_Pause(
    PRL_HANDLE hVm, 
    PRL_BOOL bAcpi
);
File

PrlApiVm.h

Parameters

hVm
A handle of type PHT_VIRTUAL_MACHINE identifying the virtual machine.
bAcpi
Specifies if ACPI should be used to pause the virtual machine. If set to PRL_FALSE, ACPI will not be used. In this case, all processes of the virtual machine will simply be stopped. If the parameter is set to PRL_TRUE, ACPI will be used to pause the machine. With ACPI, the machine will be paused using a method supported by the guest operating system (sleep, hibernate, etc.). The actual method used depends on the type and configuration of the guest OS.

Returns

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.

Remarks

A paused virtual machine can be resumed using the PrlVm_Start function. 

To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible values are: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

See Also
Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.