--- truecrypt/common/common.h 2018/04/24 17:02:23 1.1.1.10 +++ truecrypt/common/common.h 2018/04/24 17:11:28 1.1.1.14 @@ -1,9 +1,9 @@ /* - Copyright (c) 2005-2008 TrueCrypt Foundation. All rights reserved. + Copyright (c) 2005-2009 TrueCrypt Developers Association. All rights reserved. - Governed by the TrueCrypt License 2.7 the full text of which is contained - in the file License.txt included in TrueCrypt binary and source code - distribution packages. + Governed by the TrueCrypt License 3.0 the full text of which is contained in + the file License.txt included in TrueCrypt binary and source code distribution + packages. */ #ifndef COMMON_H @@ -11,6 +11,33 @@ #include "Crypto.h" +#define MIN_MOUNTED_VOLUME_DRIVE_NUMBER ('A' - 'A') +#define MAX_MOUNTED_VOLUME_DRIVE_NUMBER ('Z' - 'A') + +#define MAX_HOST_DRIVE_NUMBER 64 +#define MAX_HOST_PARTITION_NUMBER 32 + +typedef enum +{ + // IMPORTANT: If you add a new item here, update IsOSVersionAtLeast(). + + WIN_UNKNOWN = 0, + WIN_31, + WIN_95, + WIN_98, + WIN_ME, + WIN_NT3, + WIN_NT4, + WIN_2000, + WIN_XP, + WIN_XP64, + WIN_SERVER_2003, + WIN_VISTA, + WIN_SERVER_2008, + WIN_7, + WIN_SERVER_2008_R2, +} OSVersionEnum; + /* Volume types */ enum {