IVMDVDDrive::AttachImage method
The AttachImage method attaches an ISO image to the DVD drive within the virtual machine.
HRESULT AttachImage(
[in] BSTR imagePath
);
-
imagePath [in]
-
The full path to the ISO image that is to be attached.
This method can return one of these values.
Return code | Description |
---|---|
|
The operation was successful. |
|
The imagePath parameter is NULL. |
|
The virtual machine could not be found. |
|
A host DVD drive or ISO image is already attached to this drive. |
|
The bus location for this drive is invalid, or the drive does not appear to be a valid DVD drive. |
|
An unexpected error occurred. |
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|