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.ImDiskAssembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax public static DISK_GEOMETRY GetFormattedGeometry(
string Imagefile,
long Offset
)
Public Shared Function GetFormattedGeometry (
Imagefile As String,
Offset As Long
) As DISK_GEOMETRY
public:
static DISK_GEOMETRY GetFormattedGeometry(
String^ Imagefile,
long long Offset
)
static member GetFormattedGeometry :
Imagefile : string *
Offset : int64 -> DISK_GEOMETRY
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_GEOMETRYA DISK_GEOMETRY structure that receives information about formatted geometry.
This function zeroes the Cylinders member.
See Also