|
|
1.1.1.9 root 1: /*
2: Legal Notice: The source code contained in this file has been derived from
3: the source code of Encryption for the Masses 2.02a, which is Copyright (c)
4: Paul Le Roux and which is covered by the 'License Agreement for Encryption
5: for the Masses'. Modifications and additions to that source code contained
6: in this file are Copyright (c) TrueCrypt Foundation and are covered by the
1.1.1.10! root 7: TrueCrypt License 2.3 the full text of which is contained in the file
1.1.1.9 root 8: License.txt included in TrueCrypt binary and source code distribution
9: packages. */
1.1 root 10:
1.1.1.9 root 11: #include "Password.h"
12:
13: #ifdef __cplusplus
14: extern "C" {
15: #endif
1.1 root 16:
1.1.1.7 root 17: #ifdef _WIN32
1.1.1.3 root 18:
1.1.1.9 root 19: 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 20: BOOL FormatNtfs (int driveNo, int clusterSize);
1.1.1.3 root 21:
22: // FMIFS
23: typedef BOOLEAN (__stdcall *PFMIFSCALLBACK)( int command, DWORD subCommand, PVOID parameter );
24: typedef VOID (__stdcall *PFORMATEX)( PWCHAR DriveRoot, DWORD MediaFlag, PWCHAR Format, PWCHAR Label, BOOL QuickFormat, DWORD ClusterSize, PFMIFSCALLBACK Callback );
25:
26: #define FMIFS_DONE 0xB
27: #define FMIFS_HARDDISK 0xC
1.1.1.7 root 28:
29: #endif
30:
31: int FormatNoFs (unsigned __int64 startSector, __int64 num_sectors, void *dev, PCRYPTO_INFO cryptoInfo, BOOL quickFormat);
32: BOOL WriteSector ( void *dev , char *sector , char *write_buf , int *write_buf_cnt , __int64 *nSecNo , PCRYPTO_INFO cryptoInfo );
33:
1.1.1.9 root 34: #define WRITE_BUF_SIZE 65536
1.1.1.7 root 35:
36: #define FILESYS_NONE 0
37: #define FILESYS_FAT 1
38: #define FILESYS_NTFS 2
1.1.1.9 root 39:
40: #ifdef __cplusplus
41: }
42: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.