IVMVirtualServer::CreateFloppyDiskImage method
The CreateFloppyDiskImage method creates a floppy disk image file.
Syntax
HRESULT CreateFloppyDiskImage(
[in] BSTR imagePath,
[in] VMFloppyDiskImageType imageType
);
Parameters
-
imagePath [in]
-
The full path to the new disk image file. The containing folder will be created if it does not exist.
-
imageType [in]
-
The type of floppy disk image to create. Only vmFloppyDiskImage_LowDensity and vmFloppyDiskImage_HighDensity are supported. See VMFloppyDiskImageType.
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 |
---|---|
|
The operation was successful. |
|
The imagePath parameter is NULL. |
|
The imageType parameter is not vmFloppyDiskImage_LowDensity or vmFloppyDiskImage_HighDensity. |
|
The system cannot find the path specified by the imagePath parameter. |
|
The imagePath parameter contains an invalid character (one of "*?:<>/|""). |
|
The imagePath parameter specifies an empty or relative path. An absolute path is required. |
|
The path specified by the imagePath parameter is too long. The length of the path must be less than 260 characters. |
|
The file referenced by the parameter imagePath already exists. |
|
There is insufficient space on the host volume to create the virtual floppy disk image. |
|
An unexpected error occurred. |
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|