mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-27 21:43:29 +01:00
Window: add menu entry for launching VeraCryptExpander
This commit is contained in:
parent
86529dadde
commit
7818c0e0e3
@ -243,6 +243,7 @@
|
|||||||
<control lang="en" key="IDM_UNMOUNT_VOLUME">Dismount Volume</control>
|
<control lang="en" key="IDM_UNMOUNT_VOLUME">Dismount Volume</control>
|
||||||
<control lang="en" key="IDM_VERIFY_RESCUE_DISK">Verify Rescue Disk</control>
|
<control lang="en" key="IDM_VERIFY_RESCUE_DISK">Verify Rescue Disk</control>
|
||||||
<control lang="en" key="IDM_VERSION_HISTORY">Version History</control>
|
<control lang="en" key="IDM_VERSION_HISTORY">Version History</control>
|
||||||
|
<control lang="en" key="IDM_VOLUME_EXPANDER">Volume Expander</control>
|
||||||
<control lang="en" key="IDM_VOLUME_PROPERTIES">Volume Properties</control>
|
<control lang="en" key="IDM_VOLUME_PROPERTIES">Volume Properties</control>
|
||||||
<control lang="en" key="IDM_VOLUME_WIZARD">Volume Creation Wizard</control>
|
<control lang="en" key="IDM_VOLUME_WIZARD">Volume Creation Wizard</control>
|
||||||
<control lang="en" key="IDM_WEBSITE">VeraCrypt Website</control>
|
<control lang="en" key="IDM_WEBSITE">VeraCrypt Website</control>
|
||||||
@ -535,6 +536,7 @@
|
|||||||
<string lang="en" key="MOUNT_BUTTON">&Mount</string>
|
<string lang="en" key="MOUNT_BUTTON">&Mount</string>
|
||||||
<string lang="en" key="NEW_VERSION_REQUIRED">A newer version of VeraCrypt is required to mount this volume.</string>
|
<string lang="en" key="NEW_VERSION_REQUIRED">A newer version of VeraCrypt is required to mount this volume.</string>
|
||||||
<string lang="en" key="VOL_CREATION_WIZARD_NOT_FOUND">Error: Volume Creation Wizard not found.\n\nPlease make sure that the file 'VeraCrypt Format.exe' is in the folder from which 'VeraCrypt.exe' was launched. If it is not, please reinstall VeraCrypt, or locate 'VeraCrypt Format.exe' on your disk and run it.</string>
|
<string lang="en" key="VOL_CREATION_WIZARD_NOT_FOUND">Error: Volume Creation Wizard not found.\n\nPlease make sure that the file 'VeraCrypt Format.exe' is in the folder from which 'VeraCrypt.exe' was launched. If it is not, please reinstall VeraCrypt, or locate 'VeraCrypt Format.exe' on your disk and run it.</string>
|
||||||
|
<string lang="en" key="VOL_EXPANDER_NOT_FOUND">Error: Volume Expander not found.\n\nPlease make sure that the file 'VeraCryptExpander.exe' is in the folder from which 'VeraCrypt.exe' was launched. If it is not, please reinstall VeraCrypt, or locate 'VeraCryptExpander.exe' on your disk and run it.</string>
|
||||||
<string lang="en" key="NEXT">&Next ></string>
|
<string lang="en" key="NEXT">&Next ></string>
|
||||||
<string lang="en" key="FINALIZE">&Finish</string>
|
<string lang="en" key="FINALIZE">&Finish</string>
|
||||||
<string lang="en" key="INSTALL">&Install</string>
|
<string lang="en" key="INSTALL">&Install</string>
|
||||||
|
@ -1055,6 +1055,28 @@ static void LaunchVolCreationWizard (HWND hwndDlg, const char *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void LaunchVolExpander (HWND hwndDlg)
|
||||||
|
{
|
||||||
|
char t[TC_MAX_PATH] = {'"',0};
|
||||||
|
char *tmp;
|
||||||
|
|
||||||
|
GetModuleFileName (NULL, t+1, sizeof(t)-1);
|
||||||
|
|
||||||
|
tmp = strrchr (t, '\\');
|
||||||
|
if (tmp)
|
||||||
|
{
|
||||||
|
*tmp = 0;
|
||||||
|
StringCbCatA (t, sizeof(t), "\\VeraCryptExpander.exe\"");
|
||||||
|
|
||||||
|
if (!FileExists(t))
|
||||||
|
Error ("VOL_EXPANDER_NOT_FOUND", hwndDlg); // Display a user-friendly error message and advise what to do
|
||||||
|
else if (((int)ShellExecuteA (NULL, (!IsAdmin() && IsUacSupported()) ? "runas" : "open", t, NULL, NULL, SW_SHOW)) <= 32)
|
||||||
|
{
|
||||||
|
handleWin32Error (hwndDlg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Fills drive list
|
// Fills drive list
|
||||||
// drive>0 = update only the corresponding drive subitems
|
// drive>0 = update only the corresponding drive subitems
|
||||||
@ -6433,6 +6455,12 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lw == IDM_VOLUME_EXPANDER)
|
||||||
|
{
|
||||||
|
LaunchVolExpander (hwndDlg);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (lw == IDM_ADD_REMOVE_VOL_KEYFILES)
|
if (lw == IDM_ADD_REMOVE_VOL_KEYFILES)
|
||||||
{
|
{
|
||||||
if (!VolumeSelected(hwndDlg))
|
if (!VolumeSelected(hwndDlg))
|
||||||
|
@ -568,6 +568,7 @@ BEGIN
|
|||||||
MENUITEM "Test Vectors...", IDM_TEST_VECTORS
|
MENUITEM "Test Vectors...", IDM_TEST_VECTORS
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Traveler Disk Setup...", IDM_TRAVELER
|
MENUITEM "Traveler Disk Setup...", IDM_TRAVELER
|
||||||
|
MENUITEM "Volume Expander", IDM_VOLUME_EXPANDER
|
||||||
MENUITEM "Volume Creation Wizard", IDM_VOLUME_WIZARD
|
MENUITEM "Volume Creation Wizard", IDM_VOLUME_WIZARD
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Keyfile Generator", IDM_KEYFILE_GENERATOR
|
MENUITEM "Keyfile Generator", IDM_KEYFILE_GENERATOR
|
||||||
|
@ -225,6 +225,7 @@
|
|||||||
#define IDM_PERFORMANCE_SETTINGS 40062
|
#define IDM_PERFORMANCE_SETTINGS 40062
|
||||||
#define IDM_ANALYZE_SYSTEM_CRASH 40063
|
#define IDM_ANALYZE_SYSTEM_CRASH 40063
|
||||||
#define IDM_DONATE 40064
|
#define IDM_DONATE 40064
|
||||||
|
#define IDM_VOLUME_EXPANDER 40065
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
@ -232,7 +233,7 @@
|
|||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NO_MFC 1
|
#define _APS_NO_MFC 1
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 118
|
#define _APS_NEXT_RESOURCE_VALUE 118
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40065
|
#define _APS_NEXT_COMMAND_VALUE 40066
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1141
|
#define _APS_NEXT_CONTROL_VALUE 1141
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user