Click or drag to resize

DiskDevice Class

Represents disk objects, attached to a virtual or physical SCSI adapter.
Inheritance Hierarchy

Namespace:  Arsenal.ImageMounter
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
public class DiskDevice : DeviceObject

The DiskDevice type exposes the following members.

Constructors
  NameDescription
Public methodDiskDevice(String)
Opens an disk device object without requesting read or write permissions. The resulting object can only be used to query properties like SCSI address, disk size and similar, but not for reading or writing raw disk data.
Protected methodDiskDevice(KeyValuePairString, SafeFileHandle, FileAccess)
Public methodDiskDevice(String, FileAccess)
Opens an disk device object, requesting read, write or both permissions.
Public methodDiskDevice(NativeFileIOSCSI_ADDRESS, FileAccess)
Opens an disk device object.
Top
Properties
  NameDescription
Public propertyAccessMode (Inherited from DeviceObject.)
Public propertyDeviceNumber
Retrieves device number for this disk.
Public propertyDevicePath
Returns the device path used to open this device object, if opened by name. If the object was opened in any other way, such as by supplying an already open handle, this property returns null/Nothing.
Public propertyDiskId
Public propertyDiskPolicyOffline
Gets or sets physical disk offline attribute. Only valid for physical disk objects, not volumes or partitions.
Public propertyDiskPolicyReadOnly
Gets or sets physical disk read only attribute. Only valid for physical disk objects, not volumes or partitions.
Public propertyDiskSignature
Gets or sets disk signature stored in boot record.
Public propertyDiskSize
Retrieves volume size of disk device.
Public propertyDriveLayoutEx
Gets information about a disk partitions. This property is available for physical disks, not disk partitions.
Public propertyGeometry
Returns logical disk geometry. Normally, only the BytesPerSector member contains data of interest.
Public propertyHasValidPartitionTable
Return a value indicating whether present sector 0 data indicates a valid MBR with a partition table and a disk signature.
Public propertyIsDiskWritable
Determines whether disk is writable or read-only.
Public propertyPartitionInformation
Gets information about a partition stored on a disk with MBR partition layout. This property is not available for physical disks, only disk partitions are supported.
Public propertyPartitionInformationEx
Gets information about a disk partition. This property is not available for physical disks, only disk partitions are supported.
Public propertySafeFileHandle (Inherited from DeviceObject.)
Public propertyScsiAddress
Retrieves SCSI address for this disk.
Public propertyStorageDeviceNumber
Retrieves storage device type and physical disk number information.
Public propertyVBRHiddenSectorsCount
Gets or sets disk signature stored in boot record.
Public propertyVolumeSizeInformation
Retrieves partition information.
Public propertyWriteOverlayStatus
Get live statistics from write filter driver.
Top
Methods
  NameDescription
Public methodDismountVolumeFilesystem
Locks and dismounts filesystem on a volume. Upon successful return, further access to the device can only be done through this device object instance until it is either closed (disposed) or lock is released on the underlying handle.
Public methodDispose
Close device object.
(Inherited from DeviceObject.)
Protected methodDispose(Boolean) (Overrides DeviceObjectDispose(Boolean).)
Public methodEnumerateDiskVolumes
Enumerates disk volumes that use extents of this disk.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from DeviceObject.)
Public methodFlushBuffers
Flush buffers for a disk or volume.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRawDiskStream
Returns an DiskStream object that can be used to directly access disk data.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVolumeDiskExtents
Retrieves the physical location of a specified volume on one or more disks.
Public methodInitializeDisk
Initialize a raw disk device for use with Windows. This method is available for physical disks, not disk partitions.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenAdapter
Opens SCSI adapter that created this virtual disk.
Public methodQueryDevice
Retrieves properties for an existing virtual disk.
Public methodQueryDevice(UInt32, Int64, UInt32, Int64, DeviceFlags, String)
Retrieves properties for an existing virtual disk.
Public methodQueryDevice(UInt32, Int64, UInt32, Int64, DeviceFlags, String, String)
Retrieves properties for an existing virtual disk.
Public methodRemoveDevice
Removes this virtual disk from adapter.
Public methodSetVolumeOffline
Sets disk volume offline attribute. Only valid for logical disk volumes, not physical disk drives.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateProperties
Updates disk properties by re-enumerating partition table.
Top
See Also