Du läser för närvarande dokumentationen för:
ECF_CreatePartition
The ECF_CreatePartition function creates a partition on the supplied block device.
ECF_ErrorCode ECF_CreatePartition(
   struct ECF_BlockDriver *blockDevice,
   BYTE pbPartitionType,
   DWORD dwSizeInSectors,
   WORD wFlags
);
Parameters
blockDevice
This is a pointer to a struct ECF_BlockDriver of the disk you want to create the partition on.
pbPartitionType
The partition type:
ECF_PARTITION_TYPE_FAT:
Create a FAT partition to store a FAT file system on.
ECF_PARTITION_TYPE_RAW:
Create a RAW partition to store raw data in.
dwSizeInSectors
The size of the partition in sectors. Specify 0 to use all of the remaining space.
wFlags
Flags. No flags are currently defined, just specifiy 0.
Return value
Returns one of the ECF error codes (ECFERR_SUCCESS on success)
Remarks
Call ECF_CreatePartitionTable() first to create/clear the partition table. Then call ECF_CreatePartition() for each partition you want to create. You need to specify ECF_OPT_SUPPORT_FORMAT in your Project.h for ECF to compile with support for this function.
Example Code
See example for ECF_CreatePartitionTable
See also