|
|
1.1.1.3 root 1: /* The source code contained in this file has been derived from the source code
2: of Encryption for the Masses 2.02a by Paul Le Roux. Modifications and
3: additions to that source code contained in this file are Copyright (c) 2004
1.1.1.4 ! root 4: TrueCrypt Foundation and Copyright (c) 2004 TrueCrypt Team. Unmodified
1.1.1.3 root 5: parts are Copyright (c) 1998-99 Paul Le Roux. This is a TrueCrypt Foundation
6: release. Please see the file license.txt for full license details. */
1.1 root 7:
1.1.1.4 ! root 8: #define IDC_ABOUT 0x7fff /* ID for AboutBox on system menu in wm_user range */
! 9:
! 10: #define UNMOUNT_WAIT 250
1.1 root 11:
12: extern char szHelpFile[TC_MAX_PATH];
13: extern HFONT hSmallFont;
14: extern HFONT hBoldFont;
15: extern HFONT hSmallBoldFont;
16: extern HFONT hTitleFont;
17: extern HFONT hFixedFont;
18: extern HFONT hUserFont;
19: extern HFONT hUserUnderlineFont;
20: extern HFONT hUserBoldFont;
21: extern char *lpszTitle;
22: extern int nCurrentOS;
23: extern int CurrentOSMajor;
24: extern int CurrentOSMinor;
25: extern HANDLE hDriver;
26: extern HINSTANCE hInst;
27:
28: #define WIN_95 0xa
29: #define WIN_98 0xb
30: #define WIN_NT 0xc
31:
32:
33: #define ICON_HAND MB_ICONHAND
34: #define YES_NO MB_YESNO
35:
36: #ifdef _UNICODE
37: #define WINMAIN wWinMain
38: #else
39: #define WINMAIN WinMain
40: #endif
41:
42: /* Everything below this line is automatically updated by the -mkproto-tool- */
43:
44: void cleanup ( void );
45: void LowerCaseCopy ( char *lpszDest , char *lpszSource );
46: void UpperCaseCopy ( char *lpszDest , char *lpszSource );
47: void CreateFullVolumePath ( char *lpszDiskFile , char *lpszFileName , BOOL *bDevice );
48: int FakeDosNameForDevice ( char *lpszDiskFile , char *lpszDosDevice , char *lpszCFDevice , BOOL bNameOnly );
49: int RemoveFakeDosName ( char *lpszDiskFile , char *lpszDosDevice );
50: char *getstr ( UINT nID );
51: char *getmultilinestr ( UINT nID [4 ]);
52: void AbortProcess ( UINT nID );
1.1.1.4 ! root 53: void AbortProcessSilent ( void );
1.1 root 54: void *err_malloc ( size_t size );
55: char *err_strdup ( char *lpszText );
1.1.1.4 ! root 56: DWORD handleWin32Error ( HWND hwndDlg );
1.1 root 57: BOOL translateWin32Error ( char *lpszMsgBuf , int nSizeOfBuf );
58: BOOL WINAPI AboutDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
59: BOOL WINAPI WarningDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
60: BOOL IsButtonChecked ( HWND hButton );
61: void CheckButton ( HWND hButton );
62: void ToSBCS ( LPWSTR lpszText );
63: void ToUNICODE ( char *lpszText );
64: void InitDialog ( HWND hwndDlg );
65: HDC CreateMemBitmap ( HINSTANCE hInstance , HWND hwnd , char *resource );
66: void PaintBitmap ( HDC pdcMem , int x , int y , int nWidth , int nHeight , HDC hDC );
67: LRESULT CALLBACK SplashDlgProc ( HWND hwnd , UINT uMsg , WPARAM wParam , LPARAM lParam );
68: void WaitCursor ( void );
69: void NormalCursor ( void );
70: void ArrowWaitCursor ( void );
71: LRESULT CALLBACK CustomDlgProc ( HWND hwnd , UINT uMsg , WPARAM wParam , LPARAM lParam );
72: void InitApp ( HINSTANCE hInstance );
73: BOOL OpenDevice ( char *lpszPath , OPEN_TEST_STRUCT *driver );
74: UINT _stdcall win9x_io ( HFILE hFile , char *lpBuffer , UINT uBytes );
75: int GetAvailableFixedDisks ( HWND hComboBox , char *lpszRootPath );
76: int GetAvailableRemovables ( HWND hComboBox , char *lpszRootPath );
77: BOOL WINAPI RawDevicesDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
1.1.1.4 ! root 78: BOOL WINAPI BenchmarkDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
1.1 root 79: int DriverAttach ( void );
1.1.1.4 ! root 80: BOOL SeekHiddenVolHeader (HFILE dev, unsigned __int64 volSize, BOOL deviceFlag);
! 81: BOOL BrowseFiles ( HWND hwndDlg , UINT nTitleID , char *lpszFileName, BOOL keepHistory );
1.1 root 82: void handleError ( HWND hwndDlg , int code );
1.1.1.4 ! root 83: void SetDefaultUserFont (HWND hwnd);
! 84: void OpenVolumeExplorerWindow (int driveNo);
! 85: static BOOL CALLBACK CloseVolumeExplorerWindowsEnum( HWND hwnd, LPARAM driveNo);
! 86: BOOL CloseVolumeExplorerWindows (HWND hwnd, int driveNo);
! 87: BOOL CheckCapsLock (HWND hwnd, BOOL quiet);
! 88: int GetFirstAvailableDrive ();
! 89: int GetLastAvailableDrive ();
! 90: BOOL IsDriveAvailable (int driveNo);
! 91: int DriverUnmountVolume (HWND hwndDlg, int nDosDriveNo, BOOL forced);
! 92: void BroadcastDeviceChange (WPARAM message, int nDosDriveNo);
! 93: int MountVolume (HWND hwndDlg, int driveNo, char *volumePath, char *szPassword, BOOL cachePassword, BOOL sharedAccess, BOOL quiet);
! 94: BOOL UnmountVolume (HWND hwndDlg , int nDosDriveNo, BOOL forceUnmount);
! 95: BOOL IsPasswordCacheEmpty (void);
! 96: BOOL IsMountedVolume (char *volname);
! 97: BOOL CheckPasswordLength (HWND hwndDlg, HWND hwndItem);
! 98: BOOL IsAdmin (void);
! 99: BOOL ResolveSymbolicLink (PWSTR symLinkName, PWSTR targetName);
! 100: int GetDiskDeviceDriveLetter (PWSTR deviceName);
! 101: HANDLE DismountDrive (int driveNo);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.