VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-01-04 15:53:14 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-01-04 16:29:31 +0100
commitcc02c78a8c1936b5093d568774394686dea1cf28 (patch)
tree0b5a7591b249f90739883810caeebb5269367503
parent4f56a0a53d2195d4a1bb3e36675f6f1eb08e9634 (diff)
downloadVeraCrypt-cc02c78a8c1936b5093d568774394686dea1cf28.tar.gz
VeraCrypt-cc02c78a8c1936b5093d568774394686dea1cf28.zip
Windows Driver: add TrueCrypt mode of mounted volumes to the output of TC_IOCTL_GET_MOUNTED_VOLUMES
-rw-r--r--src/Common/Apidrvr.h1
-rw-r--r--src/Driver/Ntdriver.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Common/Apidrvr.h b/src/Common/Apidrvr.h
index f14319ed..76aafc20 100644
--- a/src/Common/Apidrvr.h
+++ b/src/Common/Apidrvr.h
@@ -120,6 +120,7 @@ typedef struct
unsigned __int64 diskLength[26];
int ea[26];
int volumeType[26]; /* Volume type (e.g. PROP_VOL_TYPE_OUTER, PROP_VOL_TYPE_OUTER_VOL_WRITE_PREVENTED, etc.) */
+ BOOL truecryptMode[26];
} MOUNT_LIST_STRUCT;
typedef struct
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c
index 5ed407dd..7535ed21 100644
--- a/src/Driver/Ntdriver.c
+++ b/src/Driver/Ntdriver.c
@@ -1146,6 +1146,7 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex
list->volumeType[ListExtension->nDosDriveNo] = PROP_VOL_TYPE_OUTER; // Normal/outer volume (hidden volume protected)
else
list->volumeType[ListExtension->nDosDriveNo] = PROP_VOL_TYPE_NORMAL; // Normal volume
+ list->truecryptMode[ListExtension->nDosDriveNo] = ListExtension->cryptoInfo->bTrueCryptMode;
}
}