Debian Codegraph @

Include/Win/WinError.nsh

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