共用方式為


IVMGuestOS::AdditionsVersion property

The AdditionsVersion property contains the version of the Additions installed in the guest operating system.

This property is read-only.

Syntax

HRESULT get_AdditionsVersion(
  [out] BSTR *additionsVersion
);

VB
VMGuestOS.AdditionsVersion( _
  ByRef additionsVersion _
)

Property value

The version of the Additions installed in the guest operating system.

This property value is read-only.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
additionsVersion is NULL.
VM_E_VM_UNKNOWN
The virtual machine could not be found.
VM_E_ADDITIONS_NOT_AVAIL
Additions are not installed in this virtual machine, or the virtual machine has never been started.
DISP_E_EXCEPTION
An unexpected error occurred.

Remarks

If the virtual machine is not running when this method is invoked, the method will attempt to read the Additions version that was cached in the configuration file the last time the virtual machine was run.

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

IVMGuestOS