Windows: Display VeraCrypt version information when the command line switch /help is used.

This commit is contained in:
Mounir IDRASSI 2015-05-28 01:01:46 +02:00
parent 70215e3682
commit 5867250820
2 changed files with 15 additions and 5 deletions

View File

@ -45,7 +45,17 @@ BOOL CALLBACK CommandHelpDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
*tmp = 0;
StringCbCopyA (tmp, 8192, "Command line options:\n\n");
StringCbCopyA (tmp, 8192, "VeraCrypt " VERSION_STRING);
#ifdef _WIN64
StringCbCatA (tmp, 8192, " (64-bit)");
#else
StringCbCatA (tmp, 8192, " (32-bit)");
#endif
#if (defined(_DEBUG) || defined(DEBUG))
StringCbCatA (tmp, 8192, " (debug)");
#endif
StringCbCatA (tmp, 8192, "\n\nCommand line options:\n\n");
for (i = 0; i < as->arg_cnt; i ++)
{
if (!as->args[i].Internal)

View File

@ -45,14 +45,14 @@ BEGIN
CONTROL IDB_TEXTUAL_LOGO_96DPI,IDC_TEXTUAL_LOGO_IMG,"Static",SS_BITMAP,12,26,157,16
END
IDD_COMMANDHELP_DLG DIALOGEX 0, 0, 249, 234
IDD_COMMANDHELP_DLG DIALOGEX 0, 0, 249, 274
STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Command Line Help"
CLASS "VeraCryptCustomDlg"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
DEFPUSHBUTTON "OK",IDOK,93,212,59,14
LTEXT "",IDC_COMMANDHELP_TEXT,20,11,208,195
DEFPUSHBUTTON "OK",IDOK,93,252,59,14
LTEXT "",IDC_COMMANDHELP_TEXT,20,10,208,241
END
IDD_RAWDEVICES_DLG DIALOGEX 0, 0, 305, 209
@ -336,7 +336,7 @@ BEGIN
IDD_COMMANDHELP_DLG, DIALOG
BEGIN
BOTTOMMARGIN, 226
BOTTOMMARGIN, 266
END
IDD_RAWDEVICES_DLG, DIALOG