From cc02c78a8c1936b5093d568774394686dea1cf28 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 4 Jan 2015 15:53:14 +0100 Subject: [PATCH] Windows Driver: add TrueCrypt mode of mounted volumes to the output of TC_IOCTL_GET_MOUNTED_VOLUMES --- src/Common/Apidrvr.h | 1 + src/Driver/Ntdriver.c | 1 + 2 files changed, 2 insertions(+) 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; } }