mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: Add /secureDesktop switch to VeraCrypt Format
This commit is contained in:
@@ -9018,6 +9018,7 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
|
|||||||
OptionFastCreateFile,
|
OptionFastCreateFile,
|
||||||
OptionEnableMemoryProtection,
|
OptionEnableMemoryProtection,
|
||||||
OptionKeyfile,
|
OptionKeyfile,
|
||||||
|
OptionSecureDesktop,
|
||||||
};
|
};
|
||||||
|
|
||||||
argument args[]=
|
argument args[]=
|
||||||
@@ -9043,6 +9044,7 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
|
|||||||
{ OptionFastCreateFile, L"/fastcreatefile", NULL, FALSE },
|
{ OptionFastCreateFile, L"/fastcreatefile", NULL, FALSE },
|
||||||
{ OptionEnableMemoryProtection, L"/protectMemory", NULL, FALSE },
|
{ OptionEnableMemoryProtection, L"/protectMemory", NULL, FALSE },
|
||||||
{ OptionKeyfile, L"/keyfile", L"/k", FALSE },
|
{ OptionKeyfile, L"/keyfile", L"/k", FALSE },
|
||||||
|
{ OptionSecureDesktop, L"/secureDesktop", NULL, FALSE },
|
||||||
|
|
||||||
// Internal
|
// Internal
|
||||||
{ CommandResumeSysEncLogOn, L"/acsysenc", L"/a", TRUE },
|
{ CommandResumeSysEncLogOn, L"/acsysenc", L"/a", TRUE },
|
||||||
@@ -9482,6 +9484,25 @@ void ExtractCommandLine (HWND hwndDlg, wchar_t *lpszCommandLine)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case OptionSecureDesktop:
|
||||||
|
{
|
||||||
|
wchar_t szTmp[16] = {0};
|
||||||
|
bCmdUseSecureDesktop = TRUE;
|
||||||
|
bCmdUseSecureDesktopValid = TRUE;
|
||||||
|
|
||||||
|
if (HAS_ARGUMENT == GetArgumentValue (lpszCommandLineArgs, &i, nNoCommandLineArgs,
|
||||||
|
szTmp, ARRAYSIZE (szTmp)))
|
||||||
|
{
|
||||||
|
if (!_wcsicmp(szTmp,L"n") || !_wcsicmp(szTmp,L"no"))
|
||||||
|
bCmdUseSecureDesktop = FALSE;
|
||||||
|
else if (!_wcsicmp(szTmp,L"y") || !_wcsicmp(szTmp,L"yes"))
|
||||||
|
bCmdUseSecureDesktop = TRUE;
|
||||||
|
else
|
||||||
|
AbortProcess ("COMMAND_LINE_ERROR");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
DialogBoxParamW (hInst, MAKEINTRESOURCEW (IDD_COMMANDHELP_DLG), hwndDlg, (DLGPROC)
|
DialogBoxParamW (hInst, MAKEINTRESOURCEW (IDD_COMMANDHELP_DLG), hwndDlg, (DLGPROC)
|
||||||
CommandHelpDlgProc, (LPARAM) &as);
|
CommandHelpDlgProc, (LPARAM) &as);
|
||||||
|
|||||||
Reference in New Issue
Block a user