home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / nsis-2.46-setup.exe / Include / Win / WinError.nsh < prev    next >
Encoding:
Text File  |  2009-02-04  |  2.2 KB  |  64 lines

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