|
|
1.1.1.5 root 1: /* 1.1.1.11! root 2: Copyright (c) 2005-2009 TrueCrypt Foundation. All rights reserved. 1.1.1.5 root 3: 1.1.1.11! root 4: Governed by the TrueCrypt License 2.8 the full text of which is contained 1.1.1.5 root 5: in the file License.txt included in TrueCrypt binary and source code 6: distribution packages. 7: */ 8: 1.1.1.2 root 9: #ifndef COMMON_H 10: #define COMMON_H 1.1 root 11: 1.1.1.2 root 12: #include "Crypto.h" 13: 1.1.1.11! root 14: typedef enum ! 15: { ! 16: // IMPORTANT: If you add a new item here, update IsOSVersionAtLeast(). ! 17: ! 18: WIN_UNKNOWN = 0, ! 19: WIN_31, ! 20: WIN_95, ! 21: WIN_98, ! 22: WIN_ME, ! 23: WIN_NT3, ! 24: WIN_NT4, ! 25: WIN_2000, ! 26: WIN_XP, ! 27: WIN_XP64, ! 28: WIN_SERVER_2003, ! 29: WIN_VISTA, ! 30: WIN_SERVER_2008, ! 31: WIN_7, ! 32: WIN_SERVER_2008_R2, ! 33: } OSVersionEnum; ! 34: 1.1.1.2 root 35: /* Volume types */ 36: enum 37: { 1.1.1.8 root 38: TC_VOLUME_TYPE_NORMAL = 0, 39: TC_VOLUME_TYPE_HIDDEN, 40: TC_VOLUME_TYPE_HIDDEN_LEGACY, 41: TC_VOLUME_TYPE_COUNT 1.1.1.2 root 42: }; 43: 44: /* Prop volume types */ 45: enum 46: { 47: PROP_VOL_TYPE_NORMAL = 0, 48: PROP_VOL_TYPE_HIDDEN, 49: PROP_VOL_TYPE_OUTER, /* Outer/normal (hidden volume protected) */ 50: PROP_VOL_TYPE_OUTER_VOL_WRITE_PREVENTED, /* Outer/normal (hidden volume protected AND write already prevented) */ 1.1.1.6 root 51: PROP_VOL_TYPE_SYSTEM, 1.1.1.2 root 52: PROP_NBR_VOLUME_TYPES 53: }; 54: 55: /* Hidden volume protection status */ 56: enum 57: { 58: HIDVOL_PROT_STATUS_NONE = 0, 59: HIDVOL_PROT_STATUS_ACTIVE, 60: HIDVOL_PROT_STATUS_ACTION_TAKEN /* Active + action taken (write operation has already been denied) */ 61: }; 62: 63: typedef struct 64: { 1.1 root 65: BOOL ReadOnly; 66: BOOL Removable; 1.1.1.2 root 67: BOOL ProtectHiddenVolume; 68: BOOL PreserveTimestamp; 1.1.1.7 root 69: BOOL PartitionInInactiveSysEncScope; /* If TRUE, we are to attempt to mount a partition located on an encrypted system drive without pre-boot authentication. */ 1.1.1.2 root 70: Password ProtectedHidVolPassword; /* Password of hidden volume to protect against overwriting */ 1.1.1.8 root 71: BOOL UseBackupHeader; 1.1.1.9 root 72: BOOL RecoveryMode; 1.1 root 73: } MountOptions; 1.1.1.2 root 74: 75: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.