ImDiskAPIGetPartitionInformation Method (IntPtr, DLLImDiskReadFileUnmanagedProc, UInt32, Int64) |
Parses partition table entries from a master boot record and extended partition table record, if any.
Namespace: LTR.IO.ImDiskAssembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax public static ReadOnlyCollection<PARTITION_INFORMATION> GetPartitionInformation(
IntPtr Handle,
DLLImDiskReadFileUnmanagedProc ReadFileProc,
uint SectorSize,
long Offset
)
Public Shared Function GetPartitionInformation (
Handle As IntPtr,
ReadFileProc As DLLImDiskReadFileUnmanagedProc,
SectorSize As UInteger,
Offset As Long
) As ReadOnlyCollection(Of PARTITION_INFORMATION)
public:
static ReadOnlyCollection<PARTITION_INFORMATION>^ GetPartitionInformation(
IntPtr Handle,
DLLImDiskReadFileUnmanagedProc^ ReadFileProc,
unsigned int SectorSize,
long long Offset
)
static member GetPartitionInformation :
Handle : IntPtr *
ReadFileProc : DLLImDiskReadFileUnmanagedProc *
SectorSize : uint32 *
Offset : int64 -> ReadOnlyCollection<PARTITION_INFORMATION>
Parameters
- Handle
- Type: SystemIntPtr
Value to pass as first parameter to ReadFileProc. - ReadFileProc
- Type: LTR.IO.ImDiskDLLImDiskReadFileUnmanagedProc
Reference to method that reads disk image. - SectorSize
- Type: SystemUInt32
Sector size for translating sector values to absolute byte positions. This
parameter is in most cases 512. - Offset
- Type: SystemInt64
Offset in image file where master boot record is located.
Return Value
Type:
ReadOnlyCollectionPARTITION_INFORMATIONAn array of eight PARTITION_INFORMATION structures
See Also