Annotation of truecrypt/mount/mount.h, revision 1.1.1.17

1.1.1.10  root        1: /*
1.1.1.12  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.16  root        7:  this file are Copyright (c) 2003-2009 TrueCrypt Foundation and are governed
1.1.1.17! root        8:  by the TrueCrypt License 2.7 the full text of which is contained in the
1.1.1.12  root        9:  file License.txt included in TrueCrypt binary and source code distribution
1.1.1.10  root       10:  packages. */
1.1       root       11: 
1.1.1.12  root       12: #ifdef __cplusplus
                     13: extern "C" {
                     14: #endif
                     15: 
                     16: enum mount_list_item_types
                     17: {
                     18:        TC_MLIST_ITEM_FREE = 0,
                     19:        TC_MLIST_ITEM_NONSYS_VOL,
                     20:        TC_MLIST_ITEM_SYS_PARTITION,
                     21:        TC_MLIST_ITEM_SYS_DRIVE
                     22: };
                     23: 
                     24: #define TRAYICON_MENU_DRIVE_OFFSET     9000
1.1.1.7   root       25: 
                     26: #define WM_COPY_SET_VOLUME_NAME                "VNAM"
                     27: 
1.1.1.12  root       28: #define ENC_SYSDRIVE_PSEUDO_DRIVE_LETTER       ('A' - 1)
                     29: 
1.1.1.6   root       30: /* Password Change dialog modes */
                     31: enum
                     32: {
                     33:        PCDM_CHANGE_PASSWORD = 0,
                     34:        PCDM_CHANGE_PKCS5_PRF,
                     35:        PCDM_ADD_REMOVE_VOL_KEYFILES,
                     36:        PCDM_REMOVE_ALL_KEYFILES_FROM_VOL
                     37: };
                     38: 
                     39: typedef struct
                     40: {
                     41:        BOOL bHidVolDamagePrevReported[26];
                     42: } VOLUME_NOTIFICATIONS_LIST;
                     43: 
1.1.1.15  root       44: 
                     45: typedef struct
                     46: {
                     47:        BOOL CacheBootPassword;
                     48: } DriverConfiguration;
                     49: 
                     50: 
1.1.1.14  root       51: extern VOLUME_NOTIFICATIONS_LIST VolumeNotificationsList;
                     52: 
1.1.1.6   root       53: extern BOOL bPlaySoundOnHotkeyMountDismount;
                     54: extern BOOL bDisplayMsgBoxOnHotkeyDismount;
1.1       root       55: 
                     56: void localcleanup ( void );
                     57: void EndMainDlg ( HWND hwndDlg );
                     58: void EnableDisableButtons ( HWND hwndDlg );
1.1.1.6   root       59: BOOL VolumeSelected (HWND hwndDlg );
1.1       root       60: void LoadSettings ( HWND hwndDlg );
                     61: void SaveSettings ( HWND hwndDlg );
                     62: BOOL SelectItem ( HWND hTree , char nLetter );
                     63: void LoadDriveLetters ( HWND hTree, int drive );
1.1.1.11  root       64: BOOL CALLBACK PasswordChangeDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
                     65: BOOL CALLBACK PasswordDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
                     66: BOOL CALLBACK MountOptionsDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
1.1       root       67: void BuildTree ( HWND hTree );
                     68: LPARAM GetSelectedLong ( HWND hTree );
                     69: LPARAM GetItemLong ( HWND hTree, int itemNo );
1.1.1.11  root       70: BOOL CALLBACK CommandHelpDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
1.1       root       71: BOOL CALLBACK MainDialogProc ( HWND hwndDlg , UINT uMsg , WPARAM wParam , LPARAM lParam );
                     72: void ExtractCommandLine ( HWND hwndDlg , char *lpszCommandLine );
                     73: int WINAPI WINMAIN ( HINSTANCE hInstance , HINSTANCE hPrevInstance , char *lpszCommandLine , int nCmdShow );
1.1.1.16  root       74: void WipeCache (HWND hwndDlg, BOOL silent);
1.1       root       75: void OpenVolumeExplorerWindow (int driveNo);
1.1.1.6   root       76: BOOL TaskBarIconAdd (HWND hwnd);
                     77: BOOL TaskBarIconRemove (HWND hwnd);
                     78: void DismountIdleVolumes ();
                     79: BOOL MountFavoriteVolumes ();
                     80: void SaveFavoriteVolumes ();
                     81: static void SaveDefaultKeyFilesParam (void);
                     82: static BOOL Dismount (HWND hwndDlg, int nDosDriveNo);
                     83: static BOOL DismountAll (HWND hwndDlg, BOOL forceUnmount, BOOL interact, int dismountMaxRetries, int dismountAutoRetryDelay);
                     84: static void KeyfileDefaultsDlg (HWND hwndDlg);
                     85: static void HandleHotKey (HWND hwndDlg, WPARAM wParam);
                     86: static BOOL CheckMountList ();
1.1.1.10  root       87: int GetCipherBlockSizeByDriveNo (int nDosDriveNo);
1.1.1.12  root       88: int GetModeOfOperationByDriveNo (int nDosDriveNo);
                     89: void ChangeMainWindowVisibility ();
                     90: void LaunchVolCreationWizard (HWND hwndDlg);
                     91: BOOL WholeSysDriveEncryption (BOOL bSilent);
1.1.1.15  root       92: BOOL CheckSysEncMountWithoutPBA (const char *devicePath, BOOL quiet);
1.1.1.13  root       93: BOOL TCBootLoaderOnInactiveSysEncDrive (void);
1.1.1.12  root       94: void CreateRescueDisk (void);
1.1.1.14  root       95: int BackupVolumeHeader (HWND hwndDlg, BOOL bRequireConfirmation, char *lpszVolume);
                     96: int RestoreVolumeHeader (HWND hwndDlg, char *lpszVolume);
1.1.1.15  root       97: void SecurityTokenPreferencesDialog (HWND hwndDlg);
                     98: static BOOL CALLBACK BootLoaderPreferencesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
                     99: void MountSelectedVolume (HWND hwndDlg, BOOL mountWithOptions);
1.1.1.12  root      100: 
                    101: #ifdef __cplusplus
                    102: }
1.1.1.15  root      103: 
                    104: void ReadDriverConfiguration (DriverConfiguration *configuration);
                    105: void WriteDriverConfiguration (DriverConfiguration *configuration);
                    106: 
1.1.1.12  root      107: #endif

unix.superglobalmegacorp.com

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