Compartir a través de


IVMGuestOS2::ComputerName property

The computer name of the guest operating system running in the virtual machine.

This property is read-only.

Syntax

HRESULT get_ComputerName(
  [out] BSTR *guestComputerName
);

VB
VMGuestOS2.ComputerName( _
  ByRef guestComputerName _
)

Property value

The computer name of the guest operating system.

This property value is read-only.

Error codes

Name Meaning
S_OK
The operation was successful.
E_INVALIDARG
The guestComputerName parameter is not valid or not specified.
VM_E_VM_NOT_RUNNING
The virtual machine is not running.
VM_E_VM_PAUSED
The virtual machine is paused.
VM_E_ADDITIONS_FEATURE_NOT_AVAIL
Additions are not installed in this virtual machine.
DISP_E_EXCEPTION
An unexpected error has occurred.

Requirements

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

See also

IVMGuestOS2