VOID
FstubCopyEntryEFI(
  OUT PEFI_PARTITION_ENTRY Entry,
  IN  PPARTITION_INFORMATION_EX Partition,
  IN  ULONG SectorSize
  );

Routine Description:

    Write an EFI partition table to the disk.

Arguments:

    Disk - The disk we want to write the partition table to.

    MaxPartitionCount -

    FirstUsableLBA -

    LastUsableLBA -

    PartitionTable - Which partition table to write to, either the primary
            partition table or the backup partition table.

    PartitionCount - The count of partitions in the partiton array.
            Partitions entries 0 through PartitionCount - 1 will be
            initialized from the array.  Partition entries PartitionCount
            through MaxPartitionCount will be initialized to null.

    PartitionArray - The array of partition entries to be written to disk.
            The value can be NULL only if PartitionCount is 0. In that case
            we will write an empty partition array.

Return Values:

    NTSTATUS code.