ExtendedFileAttributes.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. namespace SMBLibrary.SMB1
  3. {
  4. /// <summary>
  5. /// SMB_EXT_FILE_ATTR
  6. /// </summary>
  7. [Flags]
  8. public enum ExtendedFileAttributes : uint
  9. {
  10. ReadOnly = 0x00000001, // ATTR_READONLY
  11. Hidden = 0x00000002, // ATTR_HIDDEN
  12. System = 0x00000004, // ATTR_SYSTEM
  13. Directory = 0x00000010, // ATTR_DIRECTORY
  14. Archive = 0x00000020, // ATTR_ARCHIVE
  15. /// <summary>
  16. /// The file has no other attributes set. This attribute is valid only if used alone.
  17. /// </summary>
  18. Normal = 0x00000080, // ATTR_NORMAL
  19. Temporary = 0x00000100, // ATTR_TEMPORARY
  20. Sparse = 0x00000200, // ATTR_SPARSE, SMB 1.0 Addition
  21. ReparsePoint = 0x00000400, // ATTR_REPARSE_POINT, SMB 1.0 Addition
  22. Compressed = 0x00000800, // ATTR_COMPRESSED
  23. Offline = 0x00001000, // ATTR_OFFLINE, SMB 1.0 Addition
  24. NotIndexed = 0x00002000, // ATTR_NOT_CONTENT_INDEXED, SMB 1.0 Addition
  25. Encrypted = 0x00004000, // ATTR_ENCRYPTED, SMB 1.0 Addition
  26. PosixSemantics = 0x01000000, // POSIX_SEMANTICS
  27. BackupSemantics = 0x02000000, // BACKUP_SEMANTICS
  28. DeleteOnClose = 0x04000000, // DELETE_ON_CLOSE
  29. SequentialScan = 0x08000000, // SEQUENTIAL_SCAN
  30. RandomAccess = 0x10000000, // RANDOM_ACCESS
  31. NoBuffering = 0x10000000, // NO_BUFFERING
  32. WriteThrough = 0x80000000, // WRITE_THROUGH
  33. }
  34. }