From 5867250820d5676a2c4925aade2baeaa30aa2b12 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 28 May 2015 01:01:46 +0200 Subject: Windows: Display VeraCrypt version information when the command line switch /help is used. --- src/Common/Cmdline.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/Common/Cmdline.c') diff --git a/src/Common/Cmdline.c b/src/Common/Cmdline.c index c1fde79a..6e325fe3 100644 --- a/src/Common/Cmdline.c +++ b/src/Common/Cmdline.c @@ -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) -- cgit v1.2.3