ShareFlags.cs 1.2 KB

1234567891011121314151617181920212223
  1. using System;
  2. namespace SMBLibrary.SMB2
  3. {
  4. [Flags]
  5. public enum ShareFlags : uint
  6. {
  7. ManualCaching = 0x00000000, // SMB2_SHAREFLAG_MANUAL_CACHING
  8. AutoCaching = 0x00000010, // SMB2_SHAREFLAG_AUTO_CACHING
  9. VdoCaching = 0x00000020, // SMB2_SHAREFLAG_VDO_CACHING
  10. NoCaching = 0x00000030, // SMB2_SHAREFLAG_NO_CACHING
  11. Dfs = 0x00000001, // SMB2_SHAREFLAG_DFS
  12. DfsRoot = 0x00000002, // SMB2_SHAREFLAG_DFS_ROOT
  13. RestrictExclusiveOpens = 0x00000100, // SMB2_SHAREFLAG_RESTRICT_EXCLUSIVE_OPENS
  14. ForceSharedDelete = 0x00000200, // SMB2_SHAREFLAG_FORCE_SHARED_DELETE
  15. AllowNamespaceCaching = 0x00000400, // SMB2_SHAREFLAG_ALLOW_NAMESPACE_CACHING
  16. AccessBasedDirectoryEnum = 0x00000800, // SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM
  17. ForceLevel2Oplock = 0x00001000, // SMB2_SHAREFLAG_FORCE_LEVELII_OPLOCK
  18. EnableHashV1 = 0x00002000, // SMB2_SHAREFLAG_ENABLE_HASH_V1 (SMB 2.1)
  19. EnableHashV2 = 0x00004000, // SMB2_SHAREFLAG_ENABLE_HASH_V2 (SMB 3.x)
  20. EncryptData = 0x00008000, // SMB2_SHAREFLAG_ENCRYPT_DATA (SMB 3.x)
  21. }
  22. }