Win32Error.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. namespace SMBLibrary
  2. {
  3. // All Win32 error codes MUST be in the range 0x0000 to 0xFFFF
  4. public enum Win32Error : ushort
  5. {
  6. ERROR_SUCCESS = 0x0000,
  7. ERROR_ACCESS_DENIED = 0x0005,
  8. ERROR_SHARING_VIOLATION = 0x0020,
  9. ERROR_NOT_SUPPORTED = 0x0032,
  10. ERROR_INVALID_PARAMETER = 0x0057,
  11. ERROR_DISK_FULL = 0x0070,
  12. ERROR_INVALID_NAME = 0x007B,
  13. ERROR_INVALID_LEVEL = 0x007C,
  14. ERROR_DIR_NOT_EMPTY = 0x0091,
  15. ERROR_BAD_PATHNAME = 0x00A1,
  16. ERROR_ALREADY_EXISTS = 0x00B7,
  17. ERROR_NO_TOKEN = 0x03F0,
  18. ERROR_LOGON_FAILURE = 0x052E,
  19. ERROR_ACCOUNT_RESTRICTION = 0x052F,
  20. ERROR_INVALID_LOGON_HOURS = 0x0530,
  21. ERROR_INVALID_WORKSTATION = 0x0531,
  22. ERROR_PASSWORD_EXPIRED = 0x0532,
  23. ERROR_ACCOUNT_DISABLED = 0x0533,
  24. ERROR_LOGON_TYPE_NOT_GRANTED = 0x0569,
  25. ERROR_ACCOUNT_EXPIRED = 0x0701,
  26. ERROR_PASSWORD_MUST_CHANGE = 0x0773,
  27. ERROR_ACCOUNT_LOCKED_OUT = 0x0775,
  28. NERR_NetNameNotFound = 0x0906,
  29. }
  30. }