|
|
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 ! 5: contained in this file are Copyright (c) 2004-2005 TrueCrypt Foundation and ! 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: #define VMOUNTED 1 ! 11: #define VFREE 0 ! 12: #define MAIN_TIMER_INTERVAL 1000 ! 13: #define MSG_TASKBAR_ICON 7 ! 14: #define FILE_FAVORITE_VOLUMES "Favorite Volumes.xml" ! 15: ! 16: /* Password Change dialog modes */ ! 17: enum ! 18: { ! 19: PCDM_CHANGE_PASSWORD = 0, ! 20: PCDM_CHANGE_PKCS5_PRF, ! 21: PCDM_ADD_REMOVE_VOL_KEYFILES, ! 22: PCDM_REMOVE_ALL_KEYFILES_FROM_VOL ! 23: }; ! 24: ! 25: typedef struct ! 26: { ! 27: BOOL bHidVolDamagePrevReported[26]; ! 28: } VOLUME_NOTIFICATIONS_LIST; ! 29: ! 30: extern BOOL bPlaySoundOnHotkeyMountDismount; ! 31: extern BOOL bDisplayMsgBoxOnHotkeyDismount; 1.1 root 32: 33: void localcleanup ( void ); 34: void EndMainDlg ( HWND hwndDlg ); 35: void EnableDisableButtons ( HWND hwndDlg ); 1.1.1.6 ! root 36: BOOL VolumeSelected (HWND hwndDlg ); 1.1 root 37: void LoadSettings ( HWND hwndDlg ); 38: void SaveSettings ( HWND hwndDlg ); 39: BOOL SelectItem ( HWND hTree , char nLetter ); 40: void LoadDriveLetters ( HWND hTree, int drive ); 41: BOOL WINAPI PasswordChangeDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam ); 42: BOOL WINAPI PasswordDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam ); 1.1.1.6 ! root 43: BOOL WINAPI MountOptionsDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); 1.1 root 44: void BuildTree ( HWND hTree ); 45: LPARAM GetSelectedLong ( HWND hTree ); 46: LPARAM GetItemLong ( HWND hTree, int itemNo ); 47: BOOL WINAPI CommandHelpDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam ); 48: BOOL CALLBACK MainDialogProc ( HWND hwndDlg , UINT uMsg , WPARAM wParam , LPARAM lParam ); 49: void ExtractCommandLine ( HWND hwndDlg , char *lpszCommandLine ); 50: int WINAPI WINMAIN ( HINSTANCE hInstance , HINSTANCE hPrevInstance , char *lpszCommandLine , int nCmdShow ); 51: void WipeCache (HWND hwndDlg); 52: void OpenVolumeExplorerWindow (int driveNo); 1.1.1.6 ! root 53: BOOL TaskBarIconAdd (HWND hwnd); ! 54: BOOL TaskBarIconRemove (HWND hwnd); ! 55: void DismountIdleVolumes (); ! 56: BOOL MountFavoriteVolumes (); ! 57: void SaveFavoriteVolumes (); ! 58: static void SaveDefaultKeyFilesParam (void); ! 59: static BOOL Dismount (HWND hwndDlg, int nDosDriveNo); ! 60: static BOOL DismountAll (HWND hwndDlg, BOOL forceUnmount, BOOL interact, int dismountMaxRetries, int dismountAutoRetryDelay); ! 61: static void KeyfileDefaultsDlg (HWND hwndDlg); ! 62: static void HandleHotKey (HWND hwndDlg, WPARAM wParam); ! 63: static BOOL CheckMountList ();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.