Click or drag to resize
ImDiskAPIAutoFindOffsetAndSize Method
Combines GetOffsetByFileExt() and GetPartitionInformation() so that both format-specific offset and offset to first partition is combined into resulting Offset. If a partition was found, size of it is also returned in the Size parameter.

Namespace: LTR.IO.ImDisk
Assembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax
public static void AutoFindOffsetAndSize(
	string Imagefile,
	uint SectorSize,
	out long Offset,
	out long Size
)

Parameters

Imagefile
Type: SystemString
Name of image file to examine
SectorSize
Type: SystemUInt32
Sector size for translating sector values to absolute byte positions. This parameter is in most cases 512.
Offset
Type: SystemInt64
Absolute offset in image file where volume data begins
Size
Type: SystemInt64
Size of partition if a partition table was found, otherwise zero
Remarks