|
|
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
1.1.1.15 root 7: this file are Copyright (c) 2003-2009 TrueCrypt Foundation and are governed
1.1.1.17! root 8: by the TrueCrypt License 2.8 the full text of which is contained in the
1.1.1.11 root 9: file License.txt included in TrueCrypt binary and source code distribution
1.1.1.9 root 10: packages. */
1.1 root 11:
1.1.1.14 root 12: #ifndef TC_HEADER_Format
13: #define TC_HEADER_Format
14:
1.1.1.9 root 15: #include "Password.h"
16:
17: #ifdef __cplusplus
18: extern "C" {
19: #endif
1.1 root 20:
1.1.1.3 root 21: // FMIFS
22: typedef BOOLEAN (__stdcall *PFMIFSCALLBACK)( int command, DWORD subCommand, PVOID parameter );
23: typedef VOID (__stdcall *PFORMATEX)( PWCHAR DriveRoot, DWORD MediaFlag, PWCHAR Format, PWCHAR Label, BOOL QuickFormat, DWORD ClusterSize, PFMIFSCALLBACK Callback );
24:
1.1.1.13 root 25: typedef struct
26: {
27: BOOL bDevice;
28: BOOL hiddenVol;
29: char *volumePath;
30: unsigned __int64 size;
31: unsigned __int64 hiddenVolHostSize;
32: int ea;
33: int pkcs5;
34: uint32 headerFlags;
35: int fileSystem;
36: int clusterSize;
37: BOOL sparseFileSwitch;
38: BOOL quickFormat;
39: int *realClusterSize;
40: Password *password;
41: HWND hwndDlg;
42: }
43: FORMAT_VOL_PARAMETERS;
44:
1.1.1.3 root 45: #define FMIFS_DONE 0xB
46: #define FMIFS_HARDDISK 0xC
1.1.1.7 root 47:
1.1.1.17! root 48: extern int FormatWriteBufferSize;
! 49:
1.1.1.14 root 50: int TCFormatVolume (volatile FORMAT_VOL_PARAMETERS *volParams);
1.1.1.13 root 51: BOOL FormatNtfs (int driveNo, int clusterSize);
1.1.1.12 root 52: uint64 GetVolumeDataAreaSize (BOOL hiddenVolume, uint64 volumeSize);
1.1.1.7 root 53: int FormatNoFs (unsigned __int64 startSector, __int64 num_sectors, void *dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat);
54: BOOL WriteSector ( void *dev , char *sector , char *write_buf , int *write_buf_cnt , __int64 *nSecNo , PCRYPTO_INFO cryptoInfo );
1.1.1.12 root 55: BOOL FlushFormatWriteBuffer (void *dev, char *write_buf, int *write_buf_cnt, __int64 *nSecNo, PCRYPTO_INFO cryptoInfo);
1.1.1.14 root 56: static BOOL StartFormatWriteThread ();
57: static void StopFormatWriteThread ();
1.1.1.7 root 58:
59: #define FILESYS_NONE 0
60: #define FILESYS_FAT 1
61: #define FILESYS_NTFS 2
1.1.1.9 root 62:
63: #ifdef __cplusplus
64: }
65: #endif
1.1.1.14 root 66:
67: #endif // TC_HEADER_Format
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.