Annotation of truecrypt/common/common.h, revision 1.1.1.14

1.1.1.5   root        1: /*
1.1.1.12  root        2:  Copyright (c) 2005-2009 TrueCrypt Developers Association. All rights reserved.
1.1.1.5   root        3: 
1.1.1.13  root        4:  Governed by the TrueCrypt License 3.0 the full text of which is contained in
1.1.1.12  root        5:  the file License.txt included in TrueCrypt binary and source code distribution
                      6:  packages.
1.1.1.5   root        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.14! root       14: #define MIN_MOUNTED_VOLUME_DRIVE_NUMBER ('A' - 'A')
        !            15: #define MAX_MOUNTED_VOLUME_DRIVE_NUMBER ('Z' - 'A')
        !            16: 
        !            17: #define MAX_HOST_DRIVE_NUMBER 64
        !            18: #define MAX_HOST_PARTITION_NUMBER 32
        !            19: 
1.1.1.11  root       20: typedef enum
                     21: {
                     22:        // IMPORTANT: If you add a new item here, update IsOSVersionAtLeast().
                     23: 
                     24:        WIN_UNKNOWN = 0,
                     25:        WIN_31,
                     26:        WIN_95,
                     27:        WIN_98,
                     28:        WIN_ME,
                     29:        WIN_NT3,
                     30:        WIN_NT4,
                     31:        WIN_2000,
                     32:        WIN_XP,
                     33:        WIN_XP64,
                     34:        WIN_SERVER_2003,
                     35:        WIN_VISTA,
                     36:        WIN_SERVER_2008,
                     37:        WIN_7,
                     38:        WIN_SERVER_2008_R2,
                     39: } OSVersionEnum;
                     40: 
1.1.1.2   root       41: /* Volume types */
                     42: enum
                     43: {
1.1.1.8   root       44:        TC_VOLUME_TYPE_NORMAL = 0,
                     45:        TC_VOLUME_TYPE_HIDDEN,
                     46:        TC_VOLUME_TYPE_HIDDEN_LEGACY,
                     47:        TC_VOLUME_TYPE_COUNT
1.1.1.2   root       48: };
                     49: 
                     50: /* Prop volume types */
                     51: enum
                     52: {
                     53:        PROP_VOL_TYPE_NORMAL = 0,
                     54:        PROP_VOL_TYPE_HIDDEN,
                     55:        PROP_VOL_TYPE_OUTER,                                            /* Outer/normal (hidden volume protected) */
                     56:        PROP_VOL_TYPE_OUTER_VOL_WRITE_PREVENTED,        /* Outer/normal (hidden volume protected AND write already prevented) */
1.1.1.6   root       57:        PROP_VOL_TYPE_SYSTEM,
1.1.1.2   root       58:        PROP_NBR_VOLUME_TYPES
                     59: };
                     60: 
                     61: /* Hidden volume protection status */
                     62: enum
                     63: {
                     64:        HIDVOL_PROT_STATUS_NONE = 0,
                     65:        HIDVOL_PROT_STATUS_ACTIVE,
                     66:        HIDVOL_PROT_STATUS_ACTION_TAKEN                 /* Active + action taken (write operation has already been denied) */
                     67: };
                     68: 
                     69: typedef struct
                     70: {
1.1       root       71:        BOOL ReadOnly;
                     72:        BOOL Removable;
1.1.1.2   root       73:        BOOL ProtectHiddenVolume;
                     74:        BOOL PreserveTimestamp;
1.1.1.7   root       75:        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       76:        Password ProtectedHidVolPassword;       /* Password of hidden volume to protect against overwriting */
1.1.1.8   root       77:        BOOL UseBackupHeader;
1.1.1.9   root       78:        BOOL RecoveryMode;
1.1       root       79: } MountOptions;
1.1.1.2   root       80: 
                     81: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.