ScsiAdapterCreateDevice Method (Int64, UInt32, Int64, DeviceFlags, String, Boolean, UInt32) |
Creates a new virtual disk.
Namespace:
Arsenal.ImageMounter
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public void CreateDevice(
long DiskSize,
uint BytesPerSector,
long ImageOffset,
DeviceFlags Flags,
string Filename,
bool NativePath,
ref uint DeviceNumber
)
Public Sub CreateDevice (
DiskSize As Long,
BytesPerSector As UInteger,
ImageOffset As Long,
Flags As DeviceFlags,
Filename As String,
NativePath As Boolean,
ByRef DeviceNumber As UInteger
)
public:
void CreateDevice(
long long DiskSize,
unsigned int BytesPerSector,
long long ImageOffset,
DeviceFlags Flags,
String^ Filename,
bool NativePath,
unsigned int% DeviceNumber
)
member CreateDevice :
DiskSize : int64 *
BytesPerSector : uint32 *
ImageOffset : int64 *
Flags : DeviceFlags *
Filename : string *
NativePath : bool *
DeviceNumber : uint32 byref -> unit
Parameters
- DiskSize
- Type: SystemInt64
Size of virtual disk. If this parameter is zero, current size of disk image file will
automatically be used as virtual disk size. - BytesPerSector
- Type: SystemUInt32
Number of bytes per sector for virtual disk geometry. This parameter can be zero
in which case most reasonable value will be automatically used by the driver. - ImageOffset
- Type: SystemInt64
A skip offset if virtual disk data does not begin immediately at start of disk image file.
Frequently used with image formats like Nero NRG which start with a file header not used by Arsenal Image Mounter
or Windows filesystem drivers. - Flags
- Type: Arsenal.ImageMounterDeviceFlags
Flags specifying properties for virtual disk. See comments for each flag value. - Filename
- Type: SystemString
Name of disk image file to use or create. If disk image file already exists, the DiskSize
parameter can be zero in which case current disk image file size will be used as virtual disk size. If Filename
parameter is Nothing/null disk will be created in virtual memory and not backed by a physical disk image file. - NativePath
- Type: SystemBoolean
Specifies whether Filename parameter specifies a path in Windows native path format, the
path format used by drivers in Windows NT kernels, for example \Device\Harddisk0\Partition1\imagefile.img. If this
parameter is False path in FIlename parameter will be interpreted as an ordinary user application path. - DeviceNumber
- Type: SystemUInt32
In: Device number for device to create. Device number must not be in use by an existing
virtual disk. For automatic allocation of device number, pass ScsiAdapter.AutoDeviceNumber.
Out: Device number for created device.
See Also