SMB_EXT_FILE_ATTR: improved readability

This commit is contained in:
Tal Aloni 2017-02-07 14:12:51 +02:00
parent bef9bd6e69
commit d057d96ab9

View file

@ -8,23 +8,23 @@ namespace SMBLibrary.SMB1
[Flags] [Flags]
public enum ExtendedFileAttributes : uint public enum ExtendedFileAttributes : uint
{ {
Readonly = 0x001, // ATTR_READONLY Readonly = 0x00000001, // ATTR_READONLY
Hidden = 0x0002, // ATTR_HIDDEN Hidden = 0x00000002, // ATTR_HIDDEN
System = 0x0004, // ATTR_SYSTEM System = 0x00000004, // ATTR_SYSTEM
Directory = 0x0010, // ATTR_DIRECTORY Directory = 0x00000010, // ATTR_DIRECTORY
Archive = 0x0020, // ATTR_ARCHIVE Archive = 0x00000020, // ATTR_ARCHIVE
/// <summary> /// <summary>
/// The file has no other attributes set. This attribute is valid only if used alone. /// The file has no other attributes set. This attribute is valid only if used alone.
/// </summary> /// </summary>
Normal = 0x0080, // ATTR_NORMAL Normal = 0x00000080, // ATTR_NORMAL
Temporary = 0x0100, // ATTR_TEMPORARY Temporary = 0x00000100, // ATTR_TEMPORARY
Sparse = 0x0200, // ATTR_SPARSE, SMB 1.0 Addition Sparse = 0x00000200, // ATTR_SPARSE, SMB 1.0 Addition
ReparsePoint = 0x0400, // ATTR_REPARSE_POINT, SMB 1.0 Addition ReparsePoint = 0x00000400, // ATTR_REPARSE_POINT, SMB 1.0 Addition
Compressed = 0x0800, // ATTR_COMPRESSED Compressed = 0x00000800, // ATTR_COMPRESSED
Offline = 0x1000, // ATTR_OFFLINE, SMB 1.0 Addition Offline = 0x00001000, // ATTR_OFFLINE, SMB 1.0 Addition
NotIndexed = 0x2000, // ATTR_NOT_CONTENT_INDEXED, SMB 1.0 Addition NotIndexed = 0x00002000, // ATTR_NOT_CONTENT_INDEXED, SMB 1.0 Addition
Encrypted = 0x4000, // ATTR_ENCRYPTED, SMB 1.0 Addition Encrypted = 0x00004000, // ATTR_ENCRYPTED, SMB 1.0 Addition
PosixSemantics = 0x01000000, // POSIX_SEMANTICS PosixSemantics = 0x01000000, // POSIX_SEMANTICS
BackupSemantics = 0x02000000, // BACKUP_SEMANTICS BackupSemantics = 0x02000000, // BACKUP_SEMANTICS
DeleteOnClose = 0x04000000, // DELETE_ON_CLOSE DeleteOnClose = 0x04000000, // DELETE_ON_CLOSE