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

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
        !             7:  this file are Copyright (c) 2003-2008 TrueCrypt Foundation and are governed
        !             8:  by the TrueCrypt License 2.4 the full text of which is contained in the
        !             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.9   root       12: #include "Password.h"
                     13: 
                     14: #ifdef __cplusplus
                     15: extern "C" {
                     16: #endif
1.1       root       17: 
1.1.1.7   root       18: #ifdef _WIN32
1.1.1.3   root       19: 
1.1.1.9   root       20: int FormatVolume (char *volumePath , BOOL bDevice, unsigned __int64 size , unsigned __int64 hiddenVolHostSize , Password *password , int cipher , int pkcs5 , BOOL quickFormat, BOOL sparseFileSwitch, int fileSystem , int clusterSize, HWND hwndDlg , BOOL hiddenVol , int *realClusterSize, BOOL uac );
1.1.1.7   root       21: BOOL FormatNtfs (int driveNo, int clusterSize);
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: 
                     27: #define FMIFS_DONE             0xB
                     28: #define FMIFS_HARDDISK 0xC
1.1.1.7   root       29: 
                     30: #endif
                     31: 
                     32: int FormatNoFs (unsigned __int64 startSector, __int64 num_sectors, void *dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat);
                     33: BOOL WriteSector ( void *dev , char *sector , char *write_buf , int *write_buf_cnt , __int64 *nSecNo , PCRYPTO_INFO cryptoInfo );
                     34: 
1.1.1.9   root       35: #define WRITE_BUF_SIZE 65536
1.1.1.7   root       36: 
                     37: #define FILESYS_NONE   0
                     38: #define FILESYS_FAT            1
                     39: #define FILESYS_NTFS   2
1.1.1.9   root       40: 
                     41: #ifdef __cplusplus
                     42: }
                     43: #endif

unix.superglobalmegacorp.com

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