From 60575d9a496bd4b796bab73888b69c249a1f8048 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 8 Apr 2016 23:51:29 +0200 Subject: Windows: start implementation of volume ID mechanism that will be used to identify VeraCrypt disk volumes instead of device name. --- src/Mount/Favorites.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Mount/Favorites.h') diff --git a/src/Mount/Favorites.h b/src/Mount/Favorites.h index 8195eb7b..538ec1db 100644 --- a/src/Mount/Favorites.h +++ b/src/Mount/Favorites.h @@ -30,8 +30,10 @@ namespace VeraCrypt ReadOnly (false), Removable (false), SystemEncryption (false), - UseLabelInExplorer (false) + UseLabelInExplorer (false), + UseVolumeID (false) { + memset (VolumeID, 0, SHA512_DIGESTSIZE); } wstring Path; @@ -39,6 +41,7 @@ namespace VeraCrypt wstring VolumePathId; wstring Label; int Pim; + BYTE VolumeID[SHA512_DIGESTSIZE]; bool DisableHotkeyMount; bool DisconnectedDevice; @@ -49,6 +52,7 @@ namespace VeraCrypt bool Removable; bool SystemEncryption; bool UseLabelInExplorer; + bool UseVolumeID; }; struct FavoriteVolumesDlgProcArguments -- cgit v1.2.3