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