IVMVirtualMachineEvents::OnStateChange method

The OnStateChange method is called when the state of a virtual machine has changed.

Syntax

HRESULT OnStateChange(
  [in] VMVMState virtualMachineState
);

Parameters

virtualMachineState [in]

The new state of the virtual machine.

Return value

A 32-bit value that describes an error or warning.

Remarks

This method is called when the state for this virtual machine changes. The client program must implement this interface method to receive notification of the vmVirtualMachineEvent_StateChanged event originating from IVMVirtualMachine. To monitor state changes for all virtual machines, use the IVMVirtualServerEvents::OnVMStateChange method.

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

IVMVirtualMachineEvents

VMVMState