partitions.h 461 B

1234567891011121314151617181920212223242526
  1. #ifndef PARTITIONS_H_INCLUDED
  2. #define PARTITIONS_H_INCLUDED
  3. #include <stdio.h>
  4. #include "mbr.h"
  5. #include "disk_image.h"
  6. typedef struct
  7. {
  8. unsigned PartIdx;
  9. unsigned SubpartIdx;
  10. unsigned Offset;
  11. unsigned Size;
  12. } SUBPARTITION;
  13. typedef struct
  14. {
  15. SUBPARTITION *Entries;
  16. unsigned Count;
  17. } SUBPART_VECTOR;
  18. int LoadMBR(DISK_IMG *pImg, MBR *pMbr);
  19. int FindSubpartitions(DISK_IMG *pImg, SUBPART_VECTOR *pVect);
  20. #endif // PARTITIONS_H_INCLUDED