Click or drag to resize
ImDiskAPIGetFormattedGeometry Method (String, Int64)
Reads formatted geometry for a volume by parsing BPB, BIOS Parameter Block, from volume boot record into a DISK_GEOMETRY structure. If no boot record signature is found, an exception is thrown.

Namespace: LTR.IO.ImDisk
Assembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax
public static DISK_GEOMETRY GetFormattedGeometry(
	string Imagefile,
	long Offset
)

Parameters

Imagefile
Type: SystemString
Path to a volume image file or a device path to a disk volume, such as \\.\A: or \\.\C:.
Offset
Type: SystemInt64
Optional offset in bytes to volume boot record within file for use with "non-raw" volume image files. This parameter can be used to for example skip over headers for specific disk image formats, or to skip over master boot record in a disk image file that contains a complete raw disk image and not only a single volume.

Return Value

Type: DISK_GEOMETRY
A DISK_GEOMETRY structure that receives information about formatted geometry. This function zeroes the Cylinders member.
See Also