Annotation of truecrypt/common/format.h, revision 1.1.1.19

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
1.1.1.18  root        6:  the original source code (contained in this file) and all other portions
1.1.1.19! root        7:  of this file are Copyright (c) 2003-2010 TrueCrypt Developers Association
        !             8:  and are governed by the TrueCrypt License 3.0 the full text of which is
1.1.1.18  root        9:  contained in the file License.txt included in TrueCrypt binary and source
                     10:  code distribution 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;
1.1.1.19! root       39:        int sectorSize;
1.1.1.13  root       40:        int *realClusterSize;
                     41:        Password *password;
                     42:        HWND hwndDlg;
                     43: }
                     44: FORMAT_VOL_PARAMETERS;
                     45: 
1.1.1.3   root       46: #define FMIFS_DONE             0xB
                     47: #define FMIFS_HARDDISK 0xC
1.1.1.7   root       48: 
1.1.1.17  root       49: extern int FormatWriteBufferSize;
                     50: 
1.1.1.14  root       51: int TCFormatVolume (volatile FORMAT_VOL_PARAMETERS *volParams);
1.1.1.13  root       52: BOOL FormatNtfs (int driveNo, int clusterSize);
1.1.1.12  root       53: uint64 GetVolumeDataAreaSize (BOOL hiddenVolume, uint64 volumeSize);
1.1.1.7   root       54: int FormatNoFs (unsigned __int64 startSector, __int64 num_sectors, void *dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat);
                     55: BOOL WriteSector ( void *dev , char *sector , char *write_buf , int *write_buf_cnt , __int64 *nSecNo , PCRYPTO_INFO cryptoInfo );
1.1.1.12  root       56: BOOL FlushFormatWriteBuffer (void *dev, char *write_buf, int *write_buf_cnt, __int64 *nSecNo, PCRYPTO_INFO cryptoInfo);
1.1.1.14  root       57: static BOOL StartFormatWriteThread ();
                     58: static void StopFormatWriteThread ();
1.1.1.7   root       59: 
                     60: #define FILESYS_NONE   0
                     61: #define FILESYS_FAT            1
                     62: #define FILESYS_NTFS   2
1.1.1.9   root       63: 
                     64: #ifdef __cplusplus
                     65: }
                     66: #endif
1.1.1.14  root       67: 
                     68: #endif // TC_HEADER_Format

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.