ImDiskAPIGetFormattedGeometry Method (Stream, 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.ImDiskAssembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax public static DISK_GEOMETRY GetFormattedGeometry(
Stream Imagefile,
long Offset
)
Public Shared Function GetFormattedGeometry (
Imagefile As Stream,
Offset As Long
) As DISK_GEOMETRY
public:
static DISK_GEOMETRY GetFormattedGeometry(
Stream^ Imagefile,
long long Offset
)
static member GetFormattedGeometry :
Imagefile : Stream *
Offset : int64 -> DISK_GEOMETRY
Parameters
- Imagefile
- Type: System.IOStream
Open stream that can be used to read from volume image. - 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_GEOMETRYA DISK_GEOMETRY structure that receives information about formatted geometry.
This function zeroes the Cylinders member.
See Also