The computer name of the guest operating system running in the virtual machine.
This property is read-only.
Syntax (get)
HRESULT get_ComputerName(
[out] BSTR *guestComputerName
);
Parameters
- guestComputerName [out]
-
The computer name of the guest operating system.
Return Value
The method can return one of the following values.
| Return code | Description |
- 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.
|
Syntax
Property Value
The computer name of the guest operating system.
This property value is read-only.
Requirements
| Download | Microsoft Virtual Server 2005 R2 SP1 Update on Windows Server 2008 or Windows Server 2003 |
| Header | VsComInterfaces.h |
See Also
- IVMGuestOS2
Send comments about this topic to Microsoft
Build date: 1/21/2010