|
|
1.1.1.6 ! root 1: /* Legal Notice: The source code contained in this file has been derived from ! 2: the source code of Encryption for the Masses 2.02a, which is Copyright (c) ! 3: 1998-99 Paul Le Roux and which is covered by the 'License Agreement for ! 4: Encryption for the Masses'. Modifications and additions to that source code ! 5: contained in this file are Copyright (c) 2004-2005 TrueCrypt Foundation and ! 6: Copyright (c) 2004 TrueCrypt Team, and are covered by TrueCrypt License 2.0 ! 7: the full text of which is contained in the file License.txt included in ! 8: TrueCrypt binary and source code distribution archives. */ 1.1 root 9: 1.1.1.6 ! root 10: #include "Common.h" 1.1 root 11: 1.1.1.6 ! root 12: int FormatVolume ( char *lpszFilename , BOOL bDevice , char *volumePath, unsigned __int64 size , unsigned __int64 hiddenVolHostSize , Password *password , int cipher , int pkcs5 , BOOL quickFormat, int fileSystem , int clusterSize, wchar_t *summaryMsg , HWND hwndDlg , BOOL hiddenVol , int *realClusterSize); ! 13: int FormatNoFs (unsigned __int64 startSector, __int64 num_sectors, HFILE dev, PCRYPTO_INFO cryptoInfo, diskio_f write, BOOL quickFormat); 1.1.1.4 root 14: BOOL FormatNtfs (int driveNo, int clusterSize); 1.1.1.6 ! root 15: BOOL WriteSector ( HFILE dev , char *sector , char *write_buf , int *write_buf_cnt , __int64 *nSecNo , PCRYPTO_INFO cryptoInfo , diskio_f write ); 1.1.1.3 root 16: 17: #define WRITE_BUF_SIZE 65536 18: 19: #define FILESYS_NONE 0 20: #define FILESYS_FAT 1 21: #define FILESYS_NTFS 2 22: 23: // FMIFS 24: 25: typedef BOOLEAN (__stdcall *PFMIFSCALLBACK)( int command, DWORD subCommand, PVOID parameter ); 26: typedef VOID (__stdcall *PFORMATEX)( PWCHAR DriveRoot, DWORD MediaFlag, PWCHAR Format, PWCHAR Label, BOOL QuickFormat, DWORD ClusterSize, PFMIFSCALLBACK Callback ); 27: 28: #define FMIFS_DONE 0xB 29: #define FMIFS_HARDDISK 0xC
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.