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

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.14  root        8:  by the TrueCrypt License 2.6 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.7   root       21: #ifdef _WIN32
1.1.1.3   root       22: 
                     23: // FMIFS
                     24: typedef BOOLEAN (__stdcall *PFMIFSCALLBACK)( int command, DWORD subCommand, PVOID parameter ); 
                     25: typedef VOID (__stdcall *PFORMATEX)( PWCHAR DriveRoot, DWORD MediaFlag, PWCHAR Format, PWCHAR Label, BOOL QuickFormat, DWORD ClusterSize, PFMIFSCALLBACK Callback );
                     26: 
1.1.1.13  root       27: typedef struct
                     28: {
                     29:        BOOL bDevice;
                     30:        BOOL hiddenVol;
                     31:        char *volumePath;
                     32:        unsigned __int64 size;
                     33:        unsigned __int64 hiddenVolHostSize;
                     34:        int ea;
                     35:        int pkcs5;
                     36:        uint32 headerFlags;
                     37:        int fileSystem;
                     38:        int clusterSize;
                     39:        BOOL sparseFileSwitch;
                     40:        BOOL quickFormat;
                     41:        int *realClusterSize;
                     42:        Password *password;
                     43:        HWND hwndDlg;
                     44: }
                     45: FORMAT_VOL_PARAMETERS;
                     46: 
1.1.1.3   root       47: #define FMIFS_DONE             0xB
                     48: #define FMIFS_HARDDISK 0xC
1.1.1.7   root       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);
                     52: 
1.1.1.7   root       53: #endif
                     54: 
1.1.1.12  root       55: uint64 GetVolumeDataAreaSize (BOOL hiddenVolume, uint64 volumeSize);
1.1.1.7   root       56: int FormatNoFs (unsigned __int64 startSector, __int64 num_sectors, void *dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat);
                     57: BOOL WriteSector ( void *dev , char *sector , char *write_buf , int *write_buf_cnt , __int64 *nSecNo , PCRYPTO_INFO cryptoInfo );
1.1.1.12  root       58: BOOL FlushFormatWriteBuffer (void *dev, char *write_buf, int *write_buf_cnt, __int64 *nSecNo, PCRYPTO_INFO cryptoInfo);
1.1.1.14  root       59: static BOOL StartFormatWriteThread ();
                     60: static void StopFormatWriteThread ();
1.1.1.7   root       61: 
1.1.1.15! root       62: #define WRITE_BUF_SIZE (256 * 1024)    // Write block size greater than 256 KB causes a performance drop on XP/Vista
1.1.1.7   root       63: 
                     64: #define FILESYS_NONE   0
                     65: #define FILESYS_FAT            1
                     66: #define FILESYS_NTFS   2
1.1.1.9   root       67: 
                     68: #ifdef __cplusplus
                     69: }
                     70: #endif
1.1.1.14  root       71: 
                     72: #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.