WinError.nsh 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 ERROR_CANNOT_MAKE 82 ; "The directory or file cannot be created"
  47. !define ERROR_INVALID_PARAMETER 87
  48. !define ERROR_DISK_FULL 112
  49. !define ERROR_CALL_NOT_IMPLEMENTED 120 ; "This function is not supported on this system"
  50. !define ERROR_INSUFFICIENT_BUFFER 122
  51. !define ERROR_INVALID_NAME 123 ; "The filename, directory name, or volume label syntax is incorrect"
  52. !define ERROR_MOD_NOT_FOUND 126 ; "The specified module could not be found"
  53. !define ERROR_BAD_ARGUMENTS 160
  54. !define ERROR_BAD_PATHNAME 161
  55. !define ERROR_LOCK_FAILED 167 ; "Unable to lock a region of a file"
  56. !define ERROR_BUSY 170 ; "The requested resource is in use"
  57. !define ERROR_ALREADY_EXISTS 183 ; "Cannot create a file when that file already exists"
  58. !define ERROR_FILENAME_EXCED_RANGE 206 ; "The filename or extension is too long"
  59. !define ERROR_EXE_MACHINE_TYPE_MISMATCH 216 ; "This version of %1 is not compatible with the version of Windows you're running"
  60. !define ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT 308
  61. !define ERROR_DATA_CHECKSUM_ERROR 323
  62. !define ERROR_ELEVATION_REQUIRED 740
  63. !define ERROR_SERVICE_DOES_NOT_EXIST 1060
  64. !define ERROR_NO_MEDIA_IN_DRIVE 1112
  65. !define ERROR_NO_UNICODE_TRANSLATION 1113
  66. !define ERROR_DLL_INIT_FAILED 1114
  67. !define ERROR_SHUTDOWN_IN_PROGRESS 1115
  68. !define ERROR_OLD_WIN_VERSION 1150 ; "The specified program requires a newer version of Windows"
  69. !define ERROR_APP_WRONG_OS 1151 ; "The specified program is not a Windows or MS-DOS program"
  70. !define ERROR_SINGLE_INSTANCE_APP 1152 ; "Cannot start more than one instance of the specified program"
  71. !define ERROR_RMODE_APP 1153 ; "The specified program was written for an earlier version of Windows"
  72. !define ERROR_INVALID_DLL 1154
  73. !define ERROR_NO_ASSOCIATION 1155
  74. !define ERROR_DDE_FAIL 1156
  75. !define ERROR_DLL_NOT_FOUND 1157
  76. !define ERROR_NOT_FOUND 1168 ; "Element not found"
  77. !define ERROR_NO_MATCH 1169 ; "There was no match for the specified key in the index"
  78. !define ERROR_NO_VOLUME_ID 1173
  79. !define ERROR_UNABLE_TO_REMOVE_REPLACED 1175 ; "Unable to remove the file to be replaced"
  80. !define ERROR_UNABLE_TO_MOVE_REPLACEMENT 1176
  81. !define ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 1177
  82. !define ERROR_SHUTDOWN_IS_SCHEDULED 1190
  83. !define ERROR_SHUTDOWN_USERS_LOGGED_ON 1191 ; "The system shutdown cannot be initiated because there are other users logged on to the computer"
  84. !define ERROR_NO_NETWORK 1222
  85. !define ERROR_CANCELLED 1223 ; "The operation was canceled by the user"
  86. !define ERROR_RETRY 1237
  87. !define ERROR_SERVICE_NOT_FOUND 1243
  88. !define ERROR_NOT_AUTHENTICATED 1244
  89. !define ERROR_UNIDENTIFIED_ERROR 1287
  90. !define ERROR_PRIVILEGE_NOT_HELD 1314
  91. !define ERROR_LOGON_FAILURE 1326 ; "The user name or password is incorrect"
  92. !define ERROR_INTERNAL_ERROR 1359 ; "An internal error occurred"
  93. !define ERROR_FILE_CORRUPT 1392 ; "The file or directory is corrupted and unreadable"
  94. !define ERROR_INVALID_WINDOW_HANDLE 1400 ; "Invalid window handle"
  95. !define ERROR_INVALID_INDEX 1413
  96. !define ERROR_TIMEOUT 1460
  97. !define ERROR_SYMLINK_NOT_SUPPORTED 1464
  98. !define ERROR_XML_PARSE_ERROR 1465
  99. !define ERROR_RESTART_APPLICATION 1467 ; "This application must be restarted"
  100. !define ERROR_INSTALL_USEREXIT 1602 ; "User cancelled installation"
  101. !define ERROR_INSTALL_FAILURE 1603 ; "Fatal error during installation"
  102. !define ERROR_INSTALL_SUSPEND 1604 ; "Installation suspended, incomplete"
  103. !define ERROR_UNKNOWN_PRODUCT 1605 ; "This action is only valid for products that are currently installed"
  104. !define ERROR_BAD_CONFIGURATION 1610
  105. !define ERROR_INSTALL_SOURCE_ABSENT 1612
  106. !define ERROR_PRODUCT_UNINSTALLED 1614
  107. !define ERROR_INSTALL_ALREADY_RUNNING 1618 ; "Another installation is already in progress. Complete that installation before proceeding with this install."
  108. !define ERROR_INSTALL_PACKAGE_INVALID 1620
  109. !define ERROR_INSTALL_LOG_FAILURE 1622
  110. !define ERROR_INSTALL_LANGUAGE_UNSUPPORTED 1623
  111. !define ERROR_FUNCTION_FAILED 1627
  112. !define ERROR_DATATYPE_MISMATCH 1629
  113. !define ERROR_UNSUPPORTED_TYPE 1630
  114. !define ERROR_INSTALL_TEMP_UNWRITABLE 1632 ; "The Temp folder is on a drive that is full or is inaccessible"
  115. !define ERROR_INSTALL_PLATFORM_UNSUPPORTED 1633 ; "This installation package is not supported by this processor type. Contact your product vendor."
  116. !define ERROR_PRODUCT_VERSION 1638 ; "Another version of this product is already installed"
  117. !define ERROR_SUCCESS_REBOOT_INITIATED 1641 ; "The requested operation completed successfully. The system will be restarted so the changes can take effect."
  118. !define ERROR_INSTALL_REJECTED 1654 ; "The app that you are trying to run is not supported on this version of Windows"
  119. !define ERROR_TAG_NOT_FOUND 2012
  120. !define ERROR_BAD_USERNAME 2202 ; "The user name or group name parameter is invalid"
  121. !define ERROR_SUCCESS_REBOOT_REQUIRED 3010
  122. !define ERROR_SUCCESS_RESTART_REQUIRED 3011
  123. !define ERROR_INSTALL_INVALID_PACKAGE 15602
  124. !define ERROR_INSTALL_OUT_OF_DISK_SPACE 15604
  125. !define ERROR_INSTALL_CANCEL 15608 ; "User cancelled the install request"
  126. !define ERROR_INSTALL_FAILED 15609
  127. !define ERROR_REMOVE_FAILED 15610
  128. !define ERROR_NEEDS_REMEDIATION 15612 ; "The application cannot be started. Try reinstalling the application to fix the problem."
  129. !define SEVERITY_SUCCESS 0
  130. !define SEVERITY_ERROR 1
  131. !define FACILITY_STORAGE 3
  132. !define FACILITY_WIN32 7
  133. !define FACILITY_SECURITY 9
  134. !define FACILITY_SETUPAPI 15
  135. !define FACILITY_SXS 23
  136. !define /IfNDef S_OK 0
  137. !define /IfNDef S_FALSE 1
  138. !define E_UNEXPECTED 0x8000FFFF
  139. !define E_NOTIMPL 0x80004001
  140. !define E_OUTOFMEMORY 0x8007000E
  141. !define E_INVALIDARG 0x80070057
  142. !define E_NOINTERFACE 0x80004002
  143. !define E_POINTER 0x80004003
  144. !define E_HANDLE 0x80070006
  145. !define E_ABORT 0x80004004
  146. !define E_FAIL 0x80004005
  147. !define E_ACCESSDENIED 0x80070005
  148. !define E_PENDING 0x8000000A
  149. !endif /* __WIN_NOINC_WINERROR */
  150. !verbose pop
  151. !endif /* __WIN_WINERROR__INC */