NTStatus.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. namespace SMBLibrary
  2. {
  3. public enum NTStatus : uint
  4. {
  5. STATUS_SUCCESS = 0x00000000,
  6. STATUS_NOT_IMPLEMENTED = 0xC0000002,
  7. STATUS_INVALID_HANDLE = 0xC0000008,
  8. STATUS_INVALID_PARAMETER = 0xC000000D,
  9. STATUS_NO_SUCH_DEVICE = 0xC000000E,
  10. STATUS_NO_SUCH_FILE = 0xC000000F,
  11. STATUS_MORE_PROCESSING_REQUIRED = 0xC0000016,
  12. STATUS_ACCESS_DENIED = 0xC0000022, // The user is not authorized to access the resource.
  13. STATUS_OBJECT_NAME_INVALID = 0xC0000033,
  14. STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034,
  15. STATUS_OBJECT_NAME_COLLISION = 0xC0000035, // The file already exists
  16. STATUS_OBJECT_PATH_INVALID = 0xC0000039,
  17. STATUS_OBJECT_PATH_NOT_FOUND = 0xC000003A, // The share path does not reference a valid resource.
  18. STATUS_OBJECT_PATH_SYNTAX_BAD = 0xC000003B,
  19. STATUS_DATA_ERROR = 0xC000003E, // IO error
  20. STATUS_SHARING_VIOLATION = 0xC0000043,
  21. STATUS_FILE_LOCK_CONFLICT = 0xC0000054,
  22. STATUS_LOGON_FAILURE = 0xC000006D, // Authentication failure.
  23. STATUS_ACCOUNT_RESTRICTION = 0xC000006E, // The user has an empty password, which is not allowed
  24. STATUS_DISK_FULL = 0xC000007F,
  25. STATUS_MEDIA_WRITE_PROTECTED = 0xC00000A2,
  26. STATUS_FILE_IS_A_DIRECTORY = 0xC00000BA,
  27. STATUS_NOT_SUPPORTED = 0xC00000BB,
  28. STATUS_TOO_MANY_SESSIONS = 0xC00000CE,
  29. STATUS_TOO_MANY_OPENED_FILES = 0xC000011F,
  30. STATUS_CANNOT_DELETE = 0xC0000121,
  31. STATUS_USER_SESSION_DELETED = 0xC0000203,
  32. STATUS_INSUFF_SERVER_RESOURCES = 0xC0000205,
  33. STATUS_INVALID_SMB = 0x00010002, // CIFS/SMB1: A corrupt or invalid SMB request was received
  34. STATUS_SMB_BAD_COMMAND = 0x00160002, // CIFS/SMB1: An unknown SMB command code was received by the server
  35. STATUS_SMB_BAD_FID = 0x00060001, // CIFS/SMB1
  36. STATUS_SMB_BAD_TID = 0x00050002, // CIFS/SMB1
  37. STATUS_OS2_NO_MORE_SIDS = 0x00710001, // CIFS/SMB1
  38. }
  39. }