1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 19:38:26 -06:00

Windows Security: make memory protection enabled by default. Add process mitigation (ASLR, Dynamic code, extension points)

Memory protection can be disabled using registry value "VeraCryptEnableMemoryProtection" under the key "HKLM\SYSTEM\CurrentControlSet\Services\veracrypt"
This commit is contained in:
Mounir IDRASSI
2023-09-18 00:13:52 +02:00
parent fb8ae98c73
commit b1657e88e4
7 changed files with 139 additions and 6 deletions

View File

@@ -344,8 +344,12 @@ extern BOOLEAN VC_KeAreAllApcsDisabled (VOID);
#ifndef TC_LOCAL_WIN32_WINNT_OVERRIDE
# undef _WIN32_WINNT
#ifdef _M_ARM64
# define _WIN32_WINNT 0x0A00
#else
# define _WIN32_WINNT 0x0601 /* Does not apply to the driver */
#endif
#endif
#include <windows.h> /* Windows header */
#include <commctrl.h> /* The common controls */