Compartilhar via


IVMVirtualServerEvents::OnVMStateChange method

The OnVMStateChange method is called when the state changes for any virtual machine.

Syntax

HRESULT OnVMStateChange(
  [in] BSTR      virtualMachineConfig,
  [in] VMVMState virtualMachineState
);

Parameters

virtualMachineConfig [in]

The name of the virtual machine.

virtualMachineState [in]

The new state of the virtual machine.

Return value

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

Remarks

The client program must implement this interface method to receive notification of the vmVirtualServerEvent_VMStateChanged event originating from IVMVirtualServer. To monitor a specific virtual machine, use the IVMVirtualMachineEvents::OnStateChange 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

IVMVirtualServerEvents

VMVMState