From 0f3ae268a4b0dfac7090f4fbf969601a1c35c86f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 20 Sep 2023 09:39:22 +0200 Subject: Windows: Add setting in main UI and setup wizard to disable memory protection This can be useful for users who need Accessibility software that may not work when memory protection is active in VeraCrypt --- src/Setup/Setup.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Setup/Setup.c') diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c index 2d8d940c..f757aafa 100644 --- a/src/Setup/Setup.c +++ b/src/Setup/Setup.c @@ -74,6 +74,7 @@ BOOL UnloadDriver = TRUE; BOOL bSystemRestore = TRUE; BOOL bDisableSwapFiles = FALSE; BOOL bForAllUsers = TRUE; +BOOL bDisableMemoryProtection = FALSE; BOOL bRegisterFileExt = TRUE; BOOL bAddToStartMenu = TRUE; BOOL bDesktopIcon = TRUE; @@ -2335,6 +2336,11 @@ void DoInstall (void *arg) if (bSystemRestore) SetSystemRestorePoint (hwndDlg, TRUE); + if (bOK && bDisableMemoryProtection) + { + WriteMemoryProtectionConfig(FALSE); + } + if (bOK) { UpdateProgressBarProc(100); -- cgit v1.2.3