VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Apidrvr.h1
-rw-r--r--src/Common/Common.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/Common/Apidrvr.h b/src/Common/Apidrvr.h
index 283e58d2..fda2d946 100644
--- a/src/Common/Apidrvr.h
+++ b/src/Common/Apidrvr.h
@@ -410,5 +410,6 @@ typedef struct
#define TC_DRIVER_CONFIG_ENABLE_EXTENDED_IOCTL 0x10
#define TC_DRIVER_CONFIG_DISABLE_EVIL_MAID_ATTACK_DETECTION 0x20
#define TC_DRIVER_CONFIG_CACHE_BOOT_PIM 0x40
+#define VC_DRIVER_CONFIG_ALLOW_NONSYS_TRIM 0x80
#endif /* _WIN32 */
diff --git a/src/Common/Common.h b/src/Common/Common.h
index 421d8239..0620b652 100644
--- a/src/Common/Common.h
+++ b/src/Common/Common.h
@@ -23,6 +23,8 @@
#define VOLUME_ID_SIZE SHA256_DIGESTSIZE
+#define ALIGN_VALUE(value, alignment) (((alignment) == 0)? (value) : (((value) + ((alignment) - 1)) & ~((alignment) - 1)))
+
typedef enum
{
// IMPORTANT: If you add a new item here, update IsOSVersionAtLeast().