CreateDisposition.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. namespace SMBLibrary
  2. {
  3. public enum CreateDisposition : uint
  4. {
  5. /// <summary>
  6. /// If the file already exists, replace it with the given file.
  7. /// If it does not, create the given file.
  8. /// </summary>
  9. FILE_SUPERSEDE = 0x0000,
  10. /// <summary>
  11. /// If the file already exists, open it [instead of creating a new file].
  12. /// If it does not, fail the request [and do not create a new file].
  13. /// </summary>
  14. FILE_OPEN = 0x0001,
  15. /// <summary>
  16. /// If the file already exists, fail the request [and do not create or open the given file].
  17. /// If it does not, create the given file.
  18. /// </summary>
  19. FILE_CREATE = 0x0002,
  20. /// <summary>
  21. /// If the file already exists, open it.
  22. /// If it does not, create the given file.
  23. /// </summary>
  24. FILE_OPEN_IF = 0x0003,
  25. /// <summary>
  26. /// If the file already exists, open it and overwrite it.
  27. /// If it does not, fail the request.
  28. /// </summary>
  29. FILE_OVERWRITE = 0x0004,
  30. /// <summary>
  31. /// If the file already exists, open it and overwrite it.
  32. /// If it does not, create the given file.
  33. /// </summary>
  34. FILE_OVERWRITE_IF = 0x0005,
  35. }
  36. }