Manuals
General operations
Block device operations
File system operations
File operations
Directory operations
ECF_GetPartitionInfo
The ECF_GetPartitionInfo function returns information about a partition on a block device.
ECF_ErrorCode ECF_GetPartitionInfo(
struct ECF_BlockDriver *blockDevice,
BYTE bPartitionNo,
BYTE *pbPartitionType,
DWORD *pdwStartSector,
DWORD *pdwPartitionSizeSectors
);
struct ECF_BlockDriver *blockDevice,
BYTE bPartitionNo,
BYTE *pbPartitionType,
DWORD *pdwStartSector,
DWORD *pdwPartitionSizeSectors
);
Parameters
blockDevice
This is a pointer to a struct ECF_BlockDriver of the disk for which you want the partition information.
bPartitionNo
The number of the partition you wish to get info for. 1-4 are valid values.
pbPartitionType
A pointer to a BYTE that will receive the partition type
pdwStartSector
A pointer to a DWORD that will receive the start sector of the partition.
pdwPartitionSizeSectors
A pointer to a DWORD that will receive the size of the partition in sectors.
Return value
Returns one of the ECF error codes (ECFERR_SUCCESS on success)
Returns ECFERR_NOPARTITION if the specified partition does not exist.
Returns ECFERR_NOPARTITIONTABLE if a partition table does not exist.
Remarks
None.