diff --git a/doc/html/en/Command Line Usage.html b/doc/html/en/Command Line Usage.html
index 5b380ab5..117921c5 100644
--- a/doc/html/en/Command Line Usage.html
+++ b/doc/html/en/Command Line Usage.html
@@ -185,7 +185,17 @@ Note that turning the password cache off will not clear it (use /w to clear the
| /protectMemory |
-Activates a mechanism that protects VeraCrypt process memory from being accessed by other non-admin processes. |
+If it is followed by y or yes or if no parameter is specified: Activates a mechanism that protects VeraCrypt process memory from being accessed by other non-admin processes.
+
+If it is followed by n or no (ONLY allowed for portable mode): disables the memory protection mechanism (e.g., /protectMemory n).
+ |
+
+
+| /protectScreen |
+If it is followed by y or yes or if no parameter is specified: Activates a mechanism that protects VeraCrypt against screenshots and screen recordings.
+
+If it is followed by n or no (ONLY allowed for portable mode): disables the screen protection mechanism (e.g., /protectScreen n).
+ |
| /signalExit |
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 70f3c119..25b4da26 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -220,6 +220,7 @@ BOOL EMVSupportEnabled = FALSE;
volatile BOOL NeedPeriodicDeviceListUpdate = FALSE;
BOOL DisablePeriodicDeviceListUpdate = FALSE;
BOOL EnableMemoryProtection = FALSE;
+BOOL EnableScreenProtection = FALSE;
BOOL MemoryProtectionActivated = FALSE;
@@ -3697,11 +3698,9 @@ extern "C" {
ActivateProcessMitigations();
#ifndef SETUP
- // call ActivateMemoryProtection if corresponding setting has been enabled (default is enabled)
- if (ReadMemoryProtectionConfig())
- {
- ActivateMemoryProtection();
- }
+ // initiaize memory protection and screen protection settings using the registry
+ EnableMemoryProtection = ReadMemoryProtectionConfig();
+ EnableScreenProtection = ReadScreenProtectionConfig();
#endif
return wWinMainCRTStartup();
}
@@ -16201,8 +16200,6 @@ cleanup:
#include