Click or drag to resize
ImDiskAPIQueryDevice Method (UInt32, Int64, UInt32, UInt32, UInt32, Int64, ImDiskFlags, Char, String)
Retrieves properties for an existing ImDisk virtual disk.

Namespace: LTR.IO.ImDisk
Assembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax
public static void QueryDevice(
	uint DeviceNumber,
	ref long DiskSize,
	ref uint TracksPerCylinder,
	ref uint SectorsPerTrack,
	ref uint BytesPerSector,
	ref long ImageOffset,
	ref ImDiskFlags Flags,
	ref char DriveLetter,
	ref string Filename
)

Parameters

DeviceNumber
Type: SystemUInt32
Device number of ImDisk virtual disk to retrieve properties for.
DiskSize
Type: SystemInt64
Size of virtual disk.
TracksPerCylinder
Type: SystemUInt32
Number of tracks per cylinder for virtual disk geometry.
SectorsPerTrack
Type: SystemUInt32
Number of sectors per track for virtual disk geometry.
BytesPerSector
Type: SystemUInt32
Number of bytes per sector for virtual disk geometry.
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 ImDisk or Windows filesystem drivers.
Flags
Type: LTR.IO.ImDiskImDiskFlags
Flags specifying properties for virtual disk. See comments for each flag value.
DriveLetter
Type: SystemChar
Drive letter if specified when virtual disk was created. If virtual disk was created without a drive letter this parameter will be set to an empty Char value.
Filename
Type: SystemString
Name of disk image file holding storage for file type virtual disk or used to create a virtual memory type virtual disk.
See Also