"Fossies" - the Fresh Open Source Software Archive

Member "src/Setup/Setup.h" (10 Oct 2018, 4497 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Setup.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.22_Source_vs_1.23_Source.

    1 /*
    2  Legal Notice: Some portions of the source code contained in this file were
    3  derived from the source code of TrueCrypt 7.1a, which is
    4  Copyright (c) 2003-2012 TrueCrypt Developers Association and which is
    5  governed by the TrueCrypt License 3.0, also from the source code of
    6  Encryption for the Masses 2.02a, which is Copyright (c) 1998-2000 Paul Le Roux
    7  and which is governed by the 'License Agreement for Encryption for the Masses'
    8  Modifications and additions to the original source code (contained in this file)
    9  and all other portions of this file are Copyright (c) 2013-2017 IDRIX
   10  and are governed by the Apache License 2.0 the full text of which is
   11  contained in the file License.txt included in VeraCrypt binary and source
   12  code distribution packages. */
   13 
   14 #ifndef SETUP_H
   15 #define SETUP_H
   16 
   17 #ifdef __cplusplus
   18 extern "C" {
   19 #endif
   20 
   21 // Specifies what files to install, where (determined by the prefix), and in what order
   22 static wchar_t *szFiles[]=
   23 {
   24     L"ALicense.txt",
   25     L"ALICENSE",
   26     L"ANOTICE",
   27     L"AVeraCrypt.exe",
   28     L"AVeraCryptExpander.exe",
   29     L"AVeraCrypt Format.exe",
   30     L"Averacrypt.inf",
   31     L"Averacrypt.cat",
   32     L"Averacrypt.sys",
   33     L"Dveracrypt.sys",
   34     L"AVeraCrypt Setup.exe",
   35     L"XLanguages.zip",
   36     L"Xdocs.zip",
   37 };
   38 
   39 // Specifies what files are included in self-extracting packages (no other files will be packaged or extracted).
   40 static wchar_t *szCompressedFiles[]=
   41 {
   42     L"License.txt",
   43     L"LICENSE",
   44     L"NOTICE",
   45     L"VeraCrypt.exe",
   46     L"VeraCryptExpander.exe",
   47     L"VeraCrypt Format.exe",
   48     L"VeraCrypt-x64.exe",
   49     L"VeraCryptExpander-x64.exe",
   50     L"VeraCrypt Format-x64.exe",
   51     L"veracrypt.inf",
   52     L"veracrypt.cat",
   53     L"veracrypt.sys",
   54     L"veracrypt-x64.cat",
   55     L"veracrypt-x64.sys",
   56     L"Languages.zip",
   57     L"docs.zip"
   58 };
   59 
   60 // Specifies what legacy files to remove during install
   61 static wchar_t *szLegacyFiles[]=
   62 {
   63     L"VeraCrypt-x86.exe",
   64     L"VeraCryptExpander-x86.exe",
   65     L"VeraCrypt Format-x86.exe",
   66     L"VeraCrypt-x64.exe",
   67     L"VeraCryptExpander-x64.exe",
   68     L"VeraCrypt Format-x64.exe",
   69     L"veracrypt-x64.sys",
   70 };
   71 
   72 #define FILENAME_64BIT_DRIVER   L"veracrypt-x64.sys"
   73 #define NBR_COMPRESSED_FILES (sizeof(szCompressedFiles) / sizeof(szCompressedFiles[0]))
   74 
   75 void localcleanup (void);
   76 BOOL StatDeleteFile ( wchar_t *lpszFile, BOOL bCheckForOldFile );
   77 BOOL StatRemoveDirectory ( wchar_t *lpszDir );
   78 HRESULT CreateLink ( wchar_t *lpszPathObj , wchar_t *lpszArguments , wchar_t *lpszPathLink );
   79 void GetProgramPath ( HWND hwndDlg , wchar_t *path );
   80 void StatusMessage (HWND hwndDlg, char *stringId);
   81 void StatusMessageParam (HWND hwndDlg, char *stringId, const wchar_t *param);
   82 void ClearLogWindow (HWND hwndDlg);
   83 void RegMessage ( HWND hwndDlg , const wchar_t *txt );
   84 void RegRemoveMessage (HWND hwndDlg, const wchar_t *txt);
   85 void _cdecl CopyMessage ( HWND hwndDlg , const wchar_t *txt );
   86 void RemoveMessage ( HWND hwndDlg , const wchar_t *txt );
   87 void IconMessage ( HWND hwndDlg , const wchar_t *txt );
   88 static int CALLBACK BrowseCallbackProc ( HWND hwnd , UINT uMsg , LPARAM lp , LPARAM pData );
   89 void LoadLicense ( HWND hwndDlg );
   90 void DetermineUpgradeDowngradeStatus (BOOL bCloseDriverHandle, LONG *driverVersionPtr);
   91 BOOL DoFilesInstall ( HWND hwndDlg , wchar_t *szDestDir );
   92 BOOL DoRegInstall ( HWND hwndDlg , wchar_t *szDestDir , BOOL bInstallType );
   93 BOOL DoRegUninstall (HWND hwndDlg, BOOL bRemoveDeprecated);
   94 BOOL DoServiceUninstall ( HWND hwndDlg , wchar_t *lpszService );
   95 BOOL DoDriverUnload ( HWND hwndDlg );
   96 BOOL DoShortcutsInstall ( HWND hwndDlg , wchar_t *szDestDir , BOOL bProgGroup, BOOL bDesktopIcon );
   97 BOOL DoShortcutsUninstall (HWND hwndDlg, wchar_t *szDestDir);
   98 void OutcomePrompt ( HWND hwndDlg , BOOL bOK );
   99 void DoUninstall ( void *hwndDlg );
  100 void DoInstall ( void *hwndDlg );
  101 void SetInstallationPath (HWND hwndDlg);
  102 BOOL UpgradeBootLoader (HWND hwndDlg);
  103 BOOL CALLBACK InstallDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
  104 
  105 extern BOOL bDevm;
  106 extern BOOL Rollback;
  107 extern BOOL bUpgrade;
  108 extern BOOL bUpdateRescueDisk;
  109 extern BOOL bPossiblyFirstTimeInstall;
  110 extern BOOL bRepairMode;
  111 extern BOOL bReinstallMode;
  112 extern BOOL bSystemRestore;
  113 extern BOOL bDisableSwapFiles;
  114 extern BOOL bForAllUsers;
  115 extern BOOL bRegisterFileExt;
  116 extern BOOL bAddToStartMenu;
  117 extern BOOL bDesktopIcon;
  118 extern BOOL bDesktopIconStatusDetermined;
  119 extern BOOL SystemEncryptionUpdate;
  120 extern BOOL bRestartRequired;
  121 extern HMODULE volatile SystemRestoreDll;
  122 extern wchar_t InstallationPath[TC_MAX_PATH];
  123 extern wchar_t SetupFilesDir[TC_MAX_PATH];
  124 
  125 #ifdef __cplusplus
  126 }
  127 #endif
  128 
  129 #endif  // #ifndef SETUP_H