OpenFlags.cs 956 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. namespace SMBLibrary.SMB1
  3. {
  4. [Flags]
  5. public enum OpenFlags : ushort
  6. {
  7. /// <summary>
  8. /// If this bit is set, the client requests that the file attribute data in the response be populated.
  9. /// All fields after the FID in the response are also populated. If this bit is not set,
  10. /// all fields after the FID in the response are zero.
  11. /// </summary>
  12. REQ_ATTRIB = 0x0001,
  13. /// <summary>
  14. /// Client requests an exclusive OpLock on the file.
  15. /// </summary>
  16. REQ_OPLOCK = 0x0002,
  17. /// <summary>
  18. /// Client requests a Batch OpLock on the file.
  19. /// </summary>
  20. REQ_OPLOCK_BATCH = 0x0004,
  21. /// <summary>
  22. /// SMB 1.0 Addition.
  23. /// If set, the client is requesting the extended format of the response.
  24. /// </summary>
  25. SMB_OPEN_EXTENDED_RESPONSE = 0x0010,
  26. }
  27. }