ImDiskAPIQueryDevice Method (UInt32, Int64, UInt32, UInt32, UInt32, Int64, ImDiskFlags, Char, String) |
Retrieves properties for an existing ImDisk virtual disk.
Namespace: LTR.IO.ImDiskAssembly: 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
)
Public Shared Sub QueryDevice (
DeviceNumber As UInteger,
ByRef DiskSize As Long,
ByRef TracksPerCylinder As UInteger,
ByRef SectorsPerTrack As UInteger,
ByRef BytesPerSector As UInteger,
ByRef ImageOffset As Long,
ByRef Flags As ImDiskFlags,
ByRef DriveLetter As Char,
ByRef Filename As String
)
public:
static void QueryDevice(
unsigned int DeviceNumber,
long long% DiskSize,
unsigned int% TracksPerCylinder,
unsigned int% SectorsPerTrack,
unsigned int% BytesPerSector,
long long% ImageOffset,
ImDiskFlags% Flags,
wchar_t% DriveLetter,
String^% Filename
)
static member QueryDevice :
DeviceNumber : uint32 *
DiskSize : int64 byref *
TracksPerCylinder : uint32 byref *
SectorsPerTrack : uint32 byref *
BytesPerSector : uint32 byref *
ImageOffset : int64 byref *
Flags : ImDiskFlags byref *
DriveLetter : char byref *
Filename : string byref -> unit
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