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

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
1.1.1.7 ! root        5:    contained in this file are Copyright (c) 2004-2006 TrueCrypt Foundation and
1.1.1.6   root        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.7 ! root       12: #ifdef _WIN32
1.1.1.3   root       13: 
1.1.1.7 ! root       14: int FormatVolume ( char *lpszFilename , BOOL bDevice , char *volumePath, unsigned __int64 size , unsigned __int64 hiddenVolHostSize , Password *password , int cipher , int pkcs5 , BOOL quickFormat, BOOL sparseFileSwitch, int fileSystem , int clusterSize, wchar_t *summaryMsg , HWND hwndDlg , BOOL hiddenVol , int *realClusterSize);
        !            15: BOOL FormatNtfs (int driveNo, int clusterSize);
1.1.1.3   root       16: 
                     17: // FMIFS
                     18: typedef BOOLEAN (__stdcall *PFMIFSCALLBACK)( int command, DWORD subCommand, PVOID parameter ); 
                     19: typedef VOID (__stdcall *PFORMATEX)( PWCHAR DriveRoot, DWORD MediaFlag, PWCHAR Format, PWCHAR Label, BOOL QuickFormat, DWORD ClusterSize, PFMIFSCALLBACK Callback );
                     20: 
                     21: #define FMIFS_DONE             0xB
                     22: #define FMIFS_HARDDISK 0xC
1.1.1.7 ! root       23: 
        !            24: #endif
        !            25: 
        !            26: int FormatNoFs (unsigned __int64 startSector, __int64 num_sectors, void *dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat);
        !            27: BOOL WriteSector ( void *dev , char *sector , char *write_buf , int *write_buf_cnt , __int64 *nSecNo , PCRYPTO_INFO cryptoInfo );
        !            28: 
        !            29: #define WRITE_BUF_SIZE 65536
        !            30: 
        !            31: #define FILESYS_NONE   0
        !            32: #define FILESYS_FAT            1
        !            33: #define FILESYS_NTFS   2

unix.superglobalmegacorp.com

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