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

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
1.1.1.19  root        6:  the original source code (contained in this file) and all other portions
1.1.1.20! root        7:  of this file are Copyright (c) 2003-2010 TrueCrypt Developers Association
        !             8:  and are governed by the TrueCrypt License 3.0 the full text of which is
1.1.1.19  root        9:  contained in the file License.txt included in TrueCrypt binary and source
                     10:  code distribution packages. */
1.1       root       11: 
1.1.1.12  root       12: #ifdef __cplusplus
1.1.1.20! root       13: 
        !            14: #include "Favorites.h"
        !            15: 
1.1.1.12  root       16: extern "C" {
                     17: #endif
                     18: 
                     19: enum mount_list_item_types
                     20: {
                     21:        TC_MLIST_ITEM_FREE = 0,
                     22:        TC_MLIST_ITEM_NONSYS_VOL,
                     23:        TC_MLIST_ITEM_SYS_PARTITION,
                     24:        TC_MLIST_ITEM_SYS_DRIVE
                     25: };
                     26: 
1.1.1.18  root       27: #define TC_MAIN_WINDOW_FLAG_ADMIN_PRIVILEGES   0x1
                     28: 
1.1.1.12  root       29: #define TRAYICON_MENU_DRIVE_OFFSET     9000
1.1.1.20! root       30: #define TC_FAVORITE_MENU_CMD_ID_OFFSET 10000
        !            31: #define TC_FAVORITE_MENU_CMD_ID_OFFSET_END (TC_FAVORITE_MENU_CMD_ID_OFFSET + 1000)
1.1.1.7   root       32: 
                     33: #define WM_COPY_SET_VOLUME_NAME                "VNAM"
                     34: 
1.1.1.12  root       35: #define ENC_SYSDRIVE_PSEUDO_DRIVE_LETTER       ('A' - 1)
                     36: 
1.1.1.6   root       37: /* Password Change dialog modes */
                     38: enum
                     39: {
                     40:        PCDM_CHANGE_PASSWORD = 0,
                     41:        PCDM_CHANGE_PKCS5_PRF,
                     42:        PCDM_ADD_REMOVE_VOL_KEYFILES,
                     43:        PCDM_REMOVE_ALL_KEYFILES_FROM_VOL
                     44: };
                     45: 
                     46: typedef struct
                     47: {
                     48:        BOOL bHidVolDamagePrevReported[26];
                     49: } VOLUME_NOTIFICATIONS_LIST;
                     50: 
1.1.1.15  root       51: 
1.1.1.14  root       52: extern VOLUME_NOTIFICATIONS_LIST VolumeNotificationsList;
                     53: 
1.1.1.20! root       54: extern BOOL bEnableBkgTask;
        !            55: extern BOOL bCloseBkgTaskWhenNoVolumes;
1.1.1.6   root       56: extern BOOL bPlaySoundOnHotkeyMountDismount;
                     57: extern BOOL bDisplayMsgBoxOnHotkeyDismount;
1.1.1.20! root       58: extern BOOL bExplore;
1.1       root       59: 
1.1.1.18  root       60: static void localcleanup ( void );
1.1       root       61: void EndMainDlg ( HWND hwndDlg );
                     62: void EnableDisableButtons ( HWND hwndDlg );
1.1.1.6   root       63: BOOL VolumeSelected (HWND hwndDlg );
1.1       root       64: void LoadSettings ( HWND hwndDlg );
                     65: void SaveSettings ( HWND hwndDlg );
                     66: BOOL SelectItem ( HWND hTree , char nLetter );
                     67: void LoadDriveLetters ( HWND hTree, int drive );
1.1.1.11  root       68: BOOL CALLBACK PasswordChangeDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
                     69: BOOL CALLBACK PasswordDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
                     70: BOOL CALLBACK MountOptionsDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
1.1       root       71: void BuildTree ( HWND hTree );
                     72: LPARAM GetSelectedLong ( HWND hTree );
                     73: LPARAM GetItemLong ( HWND hTree, int itemNo );
1.1.1.11  root       74: BOOL CALLBACK CommandHelpDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
1.1       root       75: BOOL CALLBACK MainDialogProc ( HWND hwndDlg , UINT uMsg , WPARAM wParam , LPARAM lParam );
                     76: void ExtractCommandLine ( HWND hwndDlg , char *lpszCommandLine );
1.1.1.18  root       77: static void WipeCache (HWND hwndDlg, BOOL silent);
1.1       root       78: void OpenVolumeExplorerWindow (int driveNo);
1.1.1.6   root       79: BOOL TaskBarIconAdd (HWND hwnd);
                     80: BOOL TaskBarIconRemove (HWND hwnd);
                     81: void DismountIdleVolumes ();
                     82: static void SaveDefaultKeyFilesParam (void);
                     83: static BOOL Dismount (HWND hwndDlg, int nDosDriveNo);
                     84: static BOOL DismountAll (HWND hwndDlg, BOOL forceUnmount, BOOL interact, int dismountMaxRetries, int dismountAutoRetryDelay);
                     85: static void KeyfileDefaultsDlg (HWND hwndDlg);
                     86: static void HandleHotKey (HWND hwndDlg, WPARAM wParam);
                     87: static BOOL CheckMountList ();
1.1.1.10  root       88: int GetCipherBlockSizeByDriveNo (int nDosDriveNo);
1.1.1.12  root       89: int GetModeOfOperationByDriveNo (int nDosDriveNo);
                     90: void ChangeMainWindowVisibility ();
                     91: void LaunchVolCreationWizard (HWND hwndDlg);
                     92: BOOL WholeSysDriveEncryption (BOOL bSilent);
1.1.1.15  root       93: BOOL CheckSysEncMountWithoutPBA (const char *devicePath, BOOL quiet);
1.1.1.13  root       94: BOOL TCBootLoaderOnInactiveSysEncDrive (void);
1.1.1.12  root       95: void CreateRescueDisk (void);
1.1.1.14  root       96: int BackupVolumeHeader (HWND hwndDlg, BOOL bRequireConfirmation, char *lpszVolume);
                     97: int RestoreVolumeHeader (HWND hwndDlg, char *lpszVolume);
1.1.1.15  root       98: void SecurityTokenPreferencesDialog (HWND hwndDlg);
1.1.1.20! root       99: static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
1.1.1.15  root      100: static BOOL CALLBACK BootLoaderPreferencesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
                    101: void MountSelectedVolume (HWND hwndDlg, BOOL mountWithOptions);
1.1.1.18  root      102: uint32 ReadDriverConfigurationFlags ();
1.1.1.20! root      103: void AnalyzeKernelMiniDump (HWND hwndDlg);
        !           104: void HookMouseWheel (HWND hwndDlg, UINT ctrlId);
        !           105: static BOOL HandleDriveListMouseWheelEvent (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL bListMustBePointed);
1.1.1.12  root      106: 
                    107: #ifdef __cplusplus
                    108: }
1.1.1.15  root      109: 
1.1.1.20! root      110: void SetDriverConfigurationFlag (uint32 flag, BOOL state);
        !           111: BOOL MountFavoriteVolumes (BOOL systemFavorites = FALSE, BOOL logOnMount = FALSE, BOOL hotKeyMount = FALSE, const TrueCrypt::FavoriteVolume &favoriteVolumeToMount = TrueCrypt::FavoriteVolume());
        !           112: BOOL GetExecutableImageInformation (const string &path, string &version, string &description, string &companyName, string &productName);
        !           113: 
1.1.1.12  root      114: #endif

unix.superglobalmegacorp.com

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