WinError.nsh 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. !ifndef __WIN_WINERROR__INC
  2. !define __WIN_WINERROR__INC
  3. !verbose push
  4. !verbose 3
  5. !ifndef __WIN_NOINC_WINERROR
  6. #define NO_ERROR 0
  7. !define ERROR_SUCCESS 0
  8. !define ERROR_INVALID_FUNCTION 1
  9. !define ERROR_FILE_NOT_FOUND 2
  10. !define ERROR_PATH_NOT_FOUND 3
  11. !define ERROR_TOO_MANY_OPEN_FILES 4
  12. !define ERROR_ACCESS_DENIED 5
  13. !define ERROR_INVALID_HANDLE 6
  14. !define ERROR_ARENA_TRASHED 7
  15. !define ERROR_NOT_ENOUGH_MEMORY 8
  16. !define ERROR_INVALID_BLOCK 9
  17. !define ERROR_BAD_ENVIRONMENT 10
  18. !define ERROR_BAD_FORMAT 11
  19. !define ERROR_INVALID_ACCESS 12
  20. !define ERROR_INVALID_DATA 13
  21. !define ERROR_OUTOFMEMORY 14
  22. !define ERROR_INVALID_DRIVE 15
  23. !define ERROR_CURRENT_DIRECTORY 16
  24. !define ERROR_NOT_SAME_DEVICE 17
  25. !define ERROR_NO_MORE_FILES 18
  26. !define ERROR_WRITE_PROTECT 19
  27. !define ERROR_BAD_UNIT 20
  28. !define ERROR_NOT_READY 21
  29. !define ERROR_BAD_COMMAND 22
  30. !define ERROR_CRC 23
  31. !define ERROR_BAD_LENGTH 24
  32. !define ERROR_SEEK 25
  33. !define ERROR_NOT_DOS_DISK 26
  34. !define ERROR_SECTOR_NOT_FOUND 27
  35. !define ERROR_OUT_OF_PAPER 28
  36. !define ERROR_WRITE_FAULT 29
  37. !define ERROR_READ_FAULT 30
  38. !define ERROR_GEN_FAILURE 31
  39. !define ERROR_SHARING_VIOLATION 32
  40. !define ERROR_LOCK_VIOLATION 33
  41. !define ERROR_WRONG_DISK 34
  42. !define ERROR_SHARING_BUFFER_EXCEEDED 36
  43. !define ERROR_HANDLE_EOF 38
  44. !define ERROR_HANDLE_DISK_FULL 39
  45. !define ERROR_NOT_SUPPORTED 50
  46. !define SEVERITY_SUCCESS 0
  47. !define SEVERITY_ERROR 1
  48. !define E_UNEXPECTED 0x8000FFFF
  49. !define E_NOTIMPL 0x80004001
  50. !define E_OUTOFMEMORY 0x8007000E
  51. !define E_INVALIDARG 0x80070057
  52. !define E_NOINTERFACE 0x80004002
  53. !define E_POINTER 0x80004003
  54. !define E_HANDLE 0x80070006
  55. !define E_ABORT 0x80004004
  56. !define E_FAIL 0x80004005
  57. !define E_ACCESSDENIED 0x80070005
  58. !define E_PENDING 0x8000000A
  59. !endif /* __WIN_NOINC_WINERROR */
  60. !verbose pop
  61. !endif /* __WIN_WINERROR__INC */