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.ImDiskAssembly: 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
)
Public Shared Sub AutoFindOffsetAndSize (
Imagefile As String,
SectorSize As UInteger,
<OutAttribute> ByRef Offset As Long,
<OutAttribute> ByRef Size As Long
)
public:
static void AutoFindOffsetAndSize(
String^ Imagefile,
unsigned int SectorSize,
[OutAttribute] long long% Offset,
[OutAttribute] long long% Size
)
static member AutoFindOffsetAndSize :
Imagefile : string *
SectorSize : uint32 *
Offset : int64 byref *
Size : int64 byref -> unit
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 See Also