Click or drag to resize
ImDiskAPIBuildInMemoryMBR Method (NativeFileIOWin32APIDISK_GEOMETRY, NativeFileIOWin32APIPARTITION_INFORMATION, Byte)
This function builds a Master Boot Record, MBR, in memory. The MBR will contain a default Initial Program Loader, IPL, which could be used to boot an operating system partition when the MBR is written to a disk.

Namespace: LTR.IO.ImDisk
Assembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax
public static void BuildInMemoryMBR(
	DISK_GEOMETRY DiskGeometry,
	PARTITION_INFORMATION[] PartitionInfo,
	byte[] MBR
)

Parameters

DiskGeometry
Type: DISK_GEOMETRY
Pointer to a DISK_GEOMETRY structure that contains information about logical geometry of the disk. This function only uses the BytesPerSector, SectorsPerTrack and TracksPerCylinder members. This parameter can be Nothing/null if PartitionInfo parameter is Nothing/null or references an empty array.
PartitionInfo
Type: PARTITION_INFORMATION
Array of up to four PARTITION_INFORMATION structures containing information about partitions to store in MBR partition table. This function only uses the StartingOffset, PartitionLength, BootIndicator and PartitionType members. This parameter can be Nothing/null to create an empty MBR with just boot code without any partition definitions.
MBR
Type: SystemByte
Pointer to memory buffer of at least 512 bytes where MBR will be built.
See Also