NTStatus.cs 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. namespace SMBLibrary
  2. {
  3. public enum NTStatus : uint
  4. {
  5. STATUS_SUCCESS = 0x00000000,
  6. STATUS_PENDING = 0x00000103,
  7. STATUS_NOTIFY_CLEANUP = 0x0000010B,
  8. STATUS_NOTIFY_ENUM_DIR = 0x0000010C,
  9. SEC_I_CONTINUE_NEEDED = 0x00090312,
  10. STATUS_OBJECT_NAME_EXISTS = 0x40000000,
  11. STATUS_BUFFER_OVERFLOW = 0x80000005,
  12. STATUS_NO_MORE_FILES = 0x80000006,
  13. SEC_E_SECPKG_NOT_FOUND = 0x80090305,
  14. SEC_E_INVALID_TOKEN = 0x80090308,
  15. STATUS_NOT_IMPLEMENTED = 0xC0000002,
  16. STATUS_INVALID_INFO_CLASS = 0xC0000003,
  17. STATUS_INFO_LENGTH_MISMATCH = 0xC0000004,
  18. STATUS_INVALID_HANDLE = 0xC0000008,
  19. STATUS_INVALID_PARAMETER = 0xC000000D,
  20. STATUS_NO_SUCH_DEVICE = 0xC000000E,
  21. STATUS_NO_SUCH_FILE = 0xC000000F,
  22. STATUS_INVALID_DEVICE_REQUEST = 0xC0000010,
  23. STATUS_END_OF_FILE = 0xC0000011,
  24. STATUS_MORE_PROCESSING_REQUIRED = 0xC0000016,
  25. STATUS_ACCESS_DENIED = 0xC0000022, // The user is not authorized to access the resource.
  26. STATUS_BUFFER_TOO_SMALL = 0xC0000023,
  27. STATUS_OBJECT_NAME_INVALID = 0xC0000033,
  28. STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034,
  29. STATUS_OBJECT_NAME_COLLISION = 0xC0000035, // The file already exists
  30. STATUS_OBJECT_PATH_INVALID = 0xC0000039,
  31. STATUS_OBJECT_PATH_NOT_FOUND = 0xC000003A, // The share path does not reference a valid resource.
  32. STATUS_OBJECT_PATH_SYNTAX_BAD = 0xC000003B,
  33. STATUS_DATA_ERROR = 0xC000003E, // IO error
  34. STATUS_SHARING_VIOLATION = 0xC0000043,
  35. STATUS_FILE_LOCK_CONFLICT = 0xC0000054,
  36. STATUS_LOCK_NOT_GRANTED = 0xC0000055,
  37. STATUS_DELETE_PENDING = 0xC0000056,
  38. STATUS_PRIVILEGE_NOT_HELD = 0xC0000061,
  39. STATUS_LOGON_FAILURE = 0xC000006D, // Authentication failure.
  40. STATUS_ACCOUNT_RESTRICTION = 0xC000006E, // The user has an empty password, which is not allowed
  41. STATUS_INVALID_LOGON_HOURS = 0xC000006F,
  42. STATUS_INVALID_WORKSTATION = 0xC0000070,
  43. STATUS_PASSWORD_EXPIRED = 0xC0000071,
  44. STATUS_ACCOUNT_DISABLED = 0xC0000072,
  45. STATUS_RANGE_NOT_LOCKED = 0xC000007E,
  46. STATUS_DISK_FULL = 0xC000007F,
  47. STATUS_INSUFFICIENT_RESOURCES = 0xC000009A,
  48. STATUS_MEDIA_WRITE_PROTECTED = 0xC00000A2,
  49. STATUS_FILE_IS_A_DIRECTORY = 0xC00000BA,
  50. STATUS_NOT_SUPPORTED = 0xC00000BB,
  51. STATUS_NETWORK_NAME_DELETED = 0xC00000C9,
  52. STATUS_BAD_DEVICE_TYPE = 0xC00000CB,
  53. STATUS_BAD_NETWORK_NAME = 0xC00000CC,
  54. STATUS_TOO_MANY_SESSIONS = 0xC00000CE,
  55. STATUS_DIRECTORY_NOT_EMPTY = 0xC0000101,
  56. STATUS_NOT_A_DIRECTORY = 0xC0000103,
  57. STATUS_TOO_MANY_OPENED_FILES = 0xC000011F,
  58. STATUS_CANCELLED = 0xC0000120,
  59. STATUS_CANNOT_DELETE = 0xC0000121,
  60. STATUS_FILE_CLOSED = 0xC0000128,
  61. STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015B,
  62. STATUS_ACCOUNT_EXPIRED = 0xC0000193,
  63. STATUS_FS_DRIVER_REQUIRED = 0xC000019C,
  64. STATUS_USER_SESSION_DELETED = 0xC0000203,
  65. STATUS_INSUFF_SERVER_RESOURCES = 0xC0000205,
  66. STATUS_NOT_FOUND = 0xC0000225,
  67. STATUS_ACCOUNT_LOCKED_OUT = 0xC0000234,
  68. STATUS_PASSWORD_MUST_CHANGE = 0xC0000244,
  69. STATUS_NOT_A_REPARSE_POINT = 0xC0000275,
  70. STATUS_INVALID_SMB = 0x00010002, // SMB1/CIFS: A corrupt or invalid SMB request was received
  71. STATUS_SMB_BAD_COMMAND = 0x00160002, // SMB1/CIFS: An unknown SMB command code was received by the server
  72. STATUS_SMB_BAD_FID = 0x00060001, // SMB1/CIFS
  73. STATUS_SMB_BAD_TID = 0x00050002, // SMB1/CIFS
  74. STATUS_OS2_INVALID_ACCESS = 0x000C0001, // SMB1/CIFS
  75. STATUS_OS2_NO_MORE_SIDS = 0x00710001, // SMB1/CIFS
  76. STATUS_OS2_INVALID_LEVEL = 0x007C0001, // SMB1/CIFS
  77. }
  78. }