Compartir a través de


IVMVirtualMachine::Reset method

The Reset method resets the virtual machine (like hitting the reset button on a real machine).

Syntax

HRESULT Reset(
  [out] IVMTask **resetTask
);

Parameters

resetTask [out]

A task that is used to track the completion progress of the virtual machine's reset sequence.

Return value

This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.

Return code Description
S_OK
The operation was successful.
E_POINTER
The resetTask parameter is NULL.
E_ACCESSDENIED
The caller must have execute access permissions to reset this virtual machine.
VM_E_VM_NOT_RUNNING
The virtual machine is not running.
DISP_E_EXCEPTION
An unexpected error has occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMVirtualMachine