|
|
1.1.1.9 root 1: /* 1.1.1.11! root 2: Legal Notice: Some portions of the source code contained in this file were ! 3: derived from the source code of Encryption for the Masses 2.02a, which is ! 4: Copyright (c) 1998-2000 Paul Le Roux and which is governed by the 'License ! 5: Agreement for Encryption for the Masses'. Modifications and additions to ! 6: the original source code (contained in this file) and all other portions of ! 7: this file are Copyright (c) 2003-2008 TrueCrypt Foundation and are governed ! 8: by the TrueCrypt License 2.4 the full text of which is contained in the ! 9: file License.txt included in TrueCrypt binary and source code distribution 1.1.1.9 root 10: packages. */ 1.1 root 11: 12: typedef struct fatparams_t 13: { 14: char volume_name[11]; 1.1.1.3 root 15: unsigned int num_sectors; /* total number of sectors */ 1.1 root 16: int cluster_count; /* number of clusters */ 17: int size_root_dir; /* size of the root directory in bytes */ 18: int size_fat; /* size of FAT */ 19: int fats; 1.1.1.6 root 20: unsigned int create_time; 1.1 root 21: int media; 22: int cluster_size; 23: int fat_length; 24: int dir_entries; 25: int sector_size; 26: int hidden; 1.1.1.6 root 27: __int16 reserved; 1.1 root 28: int sectors; 1.1.1.6 root 29: unsigned int total_sect; 1.1 root 30: 31: int heads; 32: int secs_track; 33: 34: } fatparams; 35: 36: 37: struct msdos_boot_sector 38: { 39: unsigned char boot_jump[3]; /* Boot strap short or near jump */ 40: char system_id[8]; /* Name - can be used to special case 41: partition manager volumes */ 42: unsigned char sector_size[2]; /* bytes per logical sector */ 43: unsigned char cluster_size; /* sectors/cluster */ 44: unsigned short reserved;/* reserved sectors */ 45: unsigned char fats; /* number of FATs */ 46: unsigned char dir_entries[2]; /* root directory entries */ 47: unsigned char sectors[2]; /* number of sectors */ 48: unsigned char media; /* media code */ 49: unsigned short fat_length; /* sectors/FAT */ 50: unsigned short secs_track; /* sectors per track */ 51: unsigned short heads; /* number of heads */ 1.1.1.6 root 52: unsigned __int32 hidden; /* hidden sectors */ 53: unsigned __int32 total_sect; /* number of sectors (if sectors == 0) */ 1.1 root 54: unsigned char drive_number; /* BIOS drive number */ 55: unsigned char RESERVED; /* Unused */ 1.1.1.6 root 56: unsigned char ext_boot_sign; /* 0x29 if fields below exist (DOS 3.3+) */ 1.1 root 57: unsigned char volume_id[4]; /* Volume ID number */ 58: char volume_label[11]; /* Volume label */ 1.1.1.6 root 59: char fs_type[8]; /* Typically FAT12, FAT16, or FAT32 */ 1.1 root 60: unsigned char boot_code[448]; /* Boot code (or message) */ 61: unsigned short boot_sign; /* 0xAA55 */ 62: }; 63: 64: 65: void GetFatParams ( fatparams *ft ); 66: void PutBoot ( fatparams *ft , unsigned char *boot ); 1.1.1.7 root 67: int FormatFat (unsigned __int64 startSector, fatparams * ft, void * dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.