|
|
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
7: this file are Copyright (c) 2003-2008 TrueCrypt Foundation and are governed
1.1.1.14! root 8: by the TrueCrypt License 2.5 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:
1.1.1.6 root 24: #define FILE_FAVORITE_VOLUMES "Favorite Volumes.xml"
25:
1.1.1.12 root 26: #define TRAYICON_MENU_DRIVE_OFFSET 9000
1.1.1.7 root 27:
28: #define WM_COPY_SET_VOLUME_NAME "VNAM"
29:
1.1.1.12 root 30: #define ENC_SYSDRIVE_PSEUDO_DRIVE_LETTER ('A' - 1)
31:
1.1.1.6 root 32: /* Password Change dialog modes */
33: enum
34: {
35: PCDM_CHANGE_PASSWORD = 0,
36: PCDM_CHANGE_PKCS5_PRF,
37: PCDM_ADD_REMOVE_VOL_KEYFILES,
38: PCDM_REMOVE_ALL_KEYFILES_FROM_VOL
39: };
40:
41: typedef struct
42: {
43: BOOL bHidVolDamagePrevReported[26];
44: } VOLUME_NOTIFICATIONS_LIST;
45:
1.1.1.14! root 46: extern VOLUME_NOTIFICATIONS_LIST VolumeNotificationsList;
! 47:
1.1.1.6 root 48: extern BOOL bPlaySoundOnHotkeyMountDismount;
49: extern BOOL bDisplayMsgBoxOnHotkeyDismount;
1.1 root 50:
51: void localcleanup ( void );
52: void EndMainDlg ( HWND hwndDlg );
53: void EnableDisableButtons ( HWND hwndDlg );
1.1.1.6 root 54: BOOL VolumeSelected (HWND hwndDlg );
1.1 root 55: void LoadSettings ( HWND hwndDlg );
56: void SaveSettings ( HWND hwndDlg );
57: BOOL SelectItem ( HWND hTree , char nLetter );
58: void LoadDriveLetters ( HWND hTree, int drive );
1.1.1.11 root 59: BOOL CALLBACK PasswordChangeDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
60: BOOL CALLBACK PasswordDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
61: BOOL CALLBACK MountOptionsDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
1.1 root 62: void BuildTree ( HWND hTree );
63: LPARAM GetSelectedLong ( HWND hTree );
64: LPARAM GetItemLong ( HWND hTree, int itemNo );
1.1.1.11 root 65: BOOL CALLBACK CommandHelpDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
1.1 root 66: BOOL CALLBACK MainDialogProc ( HWND hwndDlg , UINT uMsg , WPARAM wParam , LPARAM lParam );
67: void ExtractCommandLine ( HWND hwndDlg , char *lpszCommandLine );
68: int WINAPI WINMAIN ( HINSTANCE hInstance , HINSTANCE hPrevInstance , char *lpszCommandLine , int nCmdShow );
69: void WipeCache (HWND hwndDlg);
70: void OpenVolumeExplorerWindow (int driveNo);
1.1.1.6 root 71: BOOL TaskBarIconAdd (HWND hwnd);
72: BOOL TaskBarIconRemove (HWND hwnd);
73: void DismountIdleVolumes ();
74: BOOL MountFavoriteVolumes ();
75: void SaveFavoriteVolumes ();
76: static void SaveDefaultKeyFilesParam (void);
77: static BOOL Dismount (HWND hwndDlg, int nDosDriveNo);
78: static BOOL DismountAll (HWND hwndDlg, BOOL forceUnmount, BOOL interact, int dismountMaxRetries, int dismountAutoRetryDelay);
79: static void KeyfileDefaultsDlg (HWND hwndDlg);
80: static void HandleHotKey (HWND hwndDlg, WPARAM wParam);
81: static BOOL CheckMountList ();
1.1.1.10 root 82: int GetCipherBlockSizeByDriveNo (int nDosDriveNo);
1.1.1.12 root 83: int GetModeOfOperationByDriveNo (int nDosDriveNo);
84: void ChangeMainWindowVisibility ();
85: void LaunchVolCreationWizard (HWND hwndDlg);
86: BOOL WholeSysDriveEncryption (BOOL bSilent);
1.1.1.13 root 87: BOOL CheckSysEncMountWithoutPBA (char *devicePath, BOOL quiet);
88: BOOL TCBootLoaderOnInactiveSysEncDrive (void);
1.1.1.12 root 89: void CreateRescueDisk (void);
1.1.1.13 root 90: BOOL RegisterBootDriver (void);
1.1.1.14! root 91: int BackupVolumeHeader (HWND hwndDlg, BOOL bRequireConfirmation, char *lpszVolume);
! 92: int RestoreVolumeHeader (HWND hwndDlg, char *lpszVolume);
1.1.1.12 root 93:
94: #ifdef __cplusplus
95: }
96: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.