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.ImDiskAssembly: 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
)
Public Shared Sub BuildInMemoryMBR (
DiskGeometry As DISK_GEOMETRY,
PartitionInfo As PARTITION_INFORMATION(),
MBR As Byte()
)
public:
static void BuildInMemoryMBR(
DISK_GEOMETRY DiskGeometry,
array<PARTITION_INFORMATION>^ PartitionInfo,
array<unsigned char>^ MBR
)
static member BuildInMemoryMBR :
DiskGeometry : DISK_GEOMETRY *
PartitionInfo : PARTITION_INFORMATION[] *
MBR : byte[] -> unit
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