Share via


IVMVirtualMachine::RemoveSCSIController method

The RemoveSCSIController method removes the specified SCSI controller from the virtual machine.

Syntax

HRESULT RemoveSCSIController(
  [in] IVMSCSIController *controller
);

Parameters

controller [in]

The SCSI controller to be removed.

Return value

This method can return one of these values.

This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.

Return code Description
S_OK
The operation was successful.
E_POINTER
The controller parameter is NULL.
VM_E_VM_RUNNING
This operation cannot be performed while this virtual machine is running or saved.
VM_E_VM_UNKNOWN
The configuration is unknown.
DISP_E_EXCEPTION
An unexpected error has occurred.

Remarks

You can only remove an existing SCSI controller from a stopped virtual machine.

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

IVMVirtualMachine