FreeRDP
winpr/include/winpr/error.h
1 
20 #ifndef WINPR_ERROR_H
21 #define WINPR_ERROR_H
22 
23 #include <winpr/platform.h>
24 #include <winpr/winpr.h>
25 #include <winpr/wtypes.h>
26 
27 #ifdef _WIN32
28 
29 #include <winerror.h>
30 
31 /* mingw is possibly missing some definitions */
32 #ifndef RPC_S_PROXY_ACCESS_DENIED
33 #define RPC_S_PROXY_ACCESS_DENIED 0x000006C1
34 #endif
35 
36 #ifndef RPC_S_COOKIE_AUTH_FAILED
37 #define RPC_S_COOKIE_AUTH_FAILED 0x00000729
38 #endif
39 
40 #ifndef ERROR_OPERATION_IN_PROGRESS
41 #define ERROR_OPERATION_IN_PROGRESS 0x00000149
42 #endif
43 
44 #else
45 
46 #ifndef NO_ERROR
47 #define NO_ERROR 0
48 #endif
49 
50 #define E_UNEXPECTED -2147418113l // 0x8000FFFFL
51 #define E_ACCESSDENIED -2147024891l // 0x80070005L
52 #define E_HANDLE -2147024890l // 0x80070006L
53 #define E_OUTOFMEMORY -2147024882l // 0x8007000EL
54 
55 #define E_INVALIDARG -2147024809l // 0x80070057L
56 #define E_NOTIMPL -2147467263l // 0x80004001L
57 #define E_NOINTERFACE -2147467262l // 0x80004002L
58 #define E_POINTER -2147467261l // 0x80004003L
59 #define E_ABORT -2147467260l // 0x80004004L
60 #define E_FAIL -2147467259l // 0x80004005L
61 
62 #define CO_E_INIT_TLS -2147467258l // 0x80004006l
63 #define CO_E_INIT_SHARED_ALLOCATOR -2147467257l // 0x80004007l
64 #define CO_E_INIT_MEMORY_ALLOCATOR -2147467256l // 0x80004008l
65 #define CO_E_INIT_CLASS_CACHE -2147467255l // 0x80004009l
66 #define CO_E_INIT_RPC_CHANNEL -2147467254l // 0x8000400Al
67 #define CO_E_INIT_TLS_SET_CHANNEL_CONTROL -2147467253l // 0x8000400Bl
68 #define CO_E_INIT_TLS_CHANNEL_CONTROL -2147467252l // 0x8000400Cl
69 #define CO_E_INIT_UNACCEPTED_USER_ALLOCATOR -2147467251l // 0x8000400Dl
70 #define CO_E_INIT_SCM_MUTEX_EXISTS -2147467250l // 0x8000400El
71 #define CO_E_INIT_SCM_FILE_MAPPING_EXISTS -2147467249l // 0x8000400Fl
72 #define CO_E_INIT_SCM_MAP_VIEW_OF_FILE -2147467248l // 0x80004010l
73 #define CO_E_INIT_SCM_EXEC_FAILURE -2147467247l // 0x80004011l
74 #define CO_E_INIT_ONLY_SINGLE_THREADED -2147467246l // 0x80004012l
75 #define CO_E_CANT_REMOTE -2147467245l // 0x80004013l
76 #define CO_E_BAD_SERVER_NAME -2147467244l // 0x80004014l
77 #define CO_E_WRONG_SERVER_IDENTITY -2147467243l // 0x80004015l
78 #define CO_E_OLE1DDE_DISABLED -2147467242l // 0x80004016l
79 #define CO_E_RUNAS_SYNTAX -2147467241l // 0x80004017l
80 #define CO_E_CREATEPROCESS_FAILURE -2147467240l // 0x80004018l
81 #define CO_E_RUNAS_CREATEPROCESS_FAILURE -2147467239l // 0x80004019l
82 #define CO_E_RUNAS_LOGON_FAILURE -2147467238l // 0x8000401Al
83 #define CO_E_LAUNCH_PERMSSION_DENIED -2147467237l // 0x8000401Bl
84 #define CO_E_START_SERVICE_FAILURE -2147467236l // 0x8000401Cl
85 #define CO_E_REMOTE_COMMUNICATION_FAILURE -2147467235l // 0x8000401Dl
86 #define CO_E_SERVER_START_TIMEOUT -2147467234l // 0x8000401El
87 #define CO_E_CLSREG_INCONSISTENT -2147467233l // 0x8000401Fl
88 #define CO_E_IIDREG_INCONSISTENT -2147467232l // 0x80004020l
89 #define CO_E_NOT_SUPPORTED -2147467231l // 0x80004021l
90 #define CO_E_RELOAD_DLL -2147467230l // 0x80004022l
91 #define CO_E_MSI_ERROR -2147467229l // 0x80004023l
92 #define CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT -2147467228l // 0x80004024l
93 #define CO_E_SERVER_PAUSED -2147467227l // 0x80004025l
94 #define CO_E_SERVER_NOT_PAUSED -2147467226l // 0x80004026l
95 #define CO_E_CLASS_DISABLED -2147467225l // 0x80004027l
96 #define CO_E_CLRNOTAVAILABLE -2147467224l // 0x80004028l
97 #define CO_E_ASYNC_WORK_REJECTED -2147467223l // 0x80004029l
98 #define CO_E_SERVER_INIT_TIMEOUT -2147467222l // 0x8000402Al
99 #define CO_E_NO_SECCTX_IN_ACTIVATE -2147467221l // 0x8000402Bl
100 #define CO_E_TRACKER_CONFIG -2147467216l // 0x80004030l
101 #define CO_E_THREADPOOL_CONFIG -2147467215l // 0x80004031l
102 #define CO_E_SXS_CONFIG -2147467214l // 0x80004032l
103 #define CO_E_MALFORMED_SPN -2147467213l // 0x80004033l
104 
105 #define FACILITY_WINDOWSUPDATE 36
106 #define FACILITY_WINDOWS_CE 24
107 #define FACILITY_WINDOWS 8
108 #define FACILITY_URT 19
109 #define FACILITY_UMI 22
110 #define FACILITY_SXS 23
111 #define FACILITY_STORAGE 3
112 #define FACILITY_STATE_MANAGEMENT 34
113 #define FACILITY_SSPI 9
114 #define FACILITY_SCARD 16
115 #define FACILITY_SETUPAPI 15
116 #define FACILITY_SECURITY 9
117 #define FACILITY_RPC 1
118 #define FACILITY_WIN32 7
119 #define FACILITY_CONTROL 10
120 #define FACILITY_NULL 0
121 #define FACILITY_METADIRECTORY 35
122 #define FACILITY_MSMQ 14
123 #define FACILITY_MEDIASERVER 13
124 #define FACILITY_INTERNET 12
125 #define FACILITY_ITF 4
126 #define FACILITY_HTTP 25
127 #define FACILITY_DPLAY 21
128 #define FACILITY_DISPATCH 2
129 #define FACILITY_DIRECTORYSERVICE 37
130 #define FACILITY_CONFIGURATION 33
131 #define FACILITY_COMPLUS 17
132 #define FACILITY_CERT 11
133 #define FACILITY_BACKGROUNDCOPY 32
134 #define FACILITY_ACS 20
135 #define FACILITY_AAF 18
136 
137 #define FACILITY_NT_BIT 0x10000000
138 
139 #define SEVERITY_SUCCESS 0
140 #define SEVERITY_ERROR 1
141 
142 #define HRESULT_CODE(hr) ((hr)&0xFFFF)
143 #define HRESULT_FACILITY(hr) (((hr) >> 16) & 0x1FFF)
144 
145 #define HRESULT_FROM_NT(x) (((x) | FACILITY_NT_BIT))
146 
147 WINPR_PRAGMA_DIAG_PUSH
148 WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO
149 
150 #ifdef __cplusplus
151 #define ERROR_CAST(t, val) static_cast<t>(val)
152 #else
153 #define ERROR_CAST(t, val) (t)(val)
154 #endif
155 static INLINE HRESULT HRESULT_FROM_WIN32(unsigned long x)
156 {
157  HRESULT hx = ERROR_CAST(HRESULT, x);
158  if (hx <= 0)
159  return hx;
160  return ERROR_CAST(HRESULT, (((x)&0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000));
161 }
162 
163 WINPR_PRAGMA_DIAG_POP
164 
165 #define HRESULT_SEVERITY(hr) (((hr) >> 31) & 0x1)
166 
167 #define SUCCEEDED(hr) (((hr)) >= 0)
168 #define FAILED(hr) (((hr)) < 0)
169 #define IS_ERROR(Status) ((ERROR_CAST(unsigned long, Status)) >> 31 == SEVERITY_ERROR)
170 
171 #define MAKE_HRESULT(sev, fac, code) \
172  ((HRESULT)((ERROR_CAST(unsigned long, sev) << 31) | (ERROR_CAST(unsigned long, fac) << 16) | \
173  (ERROR_CAST(unsigned long, code))))
174 
175 #define SCODE_CODE(sc) ((sc)&0xFFFF)
176 #define SCODE_FACILITY(sc) (((sc) >> 16) & 0x1FFF)
177 #define SCODE_SEVERITY(sc) (((sc) >> 31) & 0x1)
178 
179 #define MAKE_SCODE(sev, fac, code) \
180  ((SCODE)((ERROR_CAST(unsigned long, sev) << 31) | (ERROR_CAST(unsigned long, fac) << 16) | \
181  (ERROR_CAST(unsigned long, code))))
182 
183 #define S_OK (0L)
184 #define S_FALSE (1L)
185 
186 /* System Error Codes (0-499) */
187 
188 #define ERROR_SUCCESS 0x00000000
189 #define ERROR_INVALID_FUNCTION 0x00000001
190 #define ERROR_FILE_NOT_FOUND 0x00000002
191 #define ERROR_PATH_NOT_FOUND 0x00000003
192 #define ERROR_TOO_MANY_OPEN_FILES 0x00000004
193 #define ERROR_ACCESS_DENIED 0x00000005
194 #define ERROR_INVALID_HANDLE 0x00000006
195 #define ERROR_ARENA_TRASHED 0x00000007
196 #define ERROR_NOT_ENOUGH_MEMORY 0x00000008
197 #define ERROR_INVALID_BLOCK 0x00000009
198 #define ERROR_BAD_ENVIRONMENT 0x0000000A
199 #define ERROR_BAD_FORMAT 0x0000000B
200 #define ERROR_INVALID_ACCESS 0x0000000C
201 #define ERROR_INVALID_DATA 0x0000000D
202 #define ERROR_OUTOFMEMORY 0x0000000E
203 #define ERROR_INVALID_DRIVE 0x0000000F
204 #define ERROR_CURRENT_DIRECTORY 0x00000010
205 #define ERROR_NOT_SAME_DEVICE 0x00000011
206 #define ERROR_NO_MORE_FILES 0x00000012
207 #define ERROR_WRITE_PROTECT 0x00000013
208 #define ERROR_BAD_UNIT 0x00000014
209 #define ERROR_NOT_READY 0x00000015
210 #define ERROR_BAD_COMMAND 0x00000016
211 #define ERROR_CRC 0x00000017
212 #define ERROR_BAD_LENGTH 0x00000018
213 #define ERROR_SEEK 0x00000019
214 #define ERROR_NOT_DOS_DISK 0x0000001A
215 #define ERROR_SECTOR_NOT_FOUND 0x0000001B
216 #define ERROR_OUT_OF_PAPER 0x0000001C
217 #define ERROR_WRITE_FAULT 0x0000001D
218 #define ERROR_READ_FAULT 0x0000001E
219 #define ERROR_GEN_FAILURE 0x0000001F
220 #define ERROR_SHARING_VIOLATION 0x00000020
221 #define ERROR_LOCK_VIOLATION 0x00000021
222 #define ERROR_WRONG_DISK 0x00000022
223 #define ERROR_SHARING_BUFFER_EXCEEDED 0x00000024
224 #define ERROR_HANDLE_EOF 0x00000026
225 #define ERROR_HANDLE_DISK_FULL 0x00000027
226 #define ERROR_NOT_SUPPORTED 0x00000032
227 #define ERROR_REM_NOT_LIST 0x00000033
228 #define ERROR_DUP_NAME 0x00000034
229 #define ERROR_BAD_NETPATH 0x00000035
230 #define ERROR_NETWORK_BUSY 0x00000036
231 #define ERROR_DEV_NOT_EXIST 0x00000037
232 #define ERROR_TOO_MANY_CMDS 0x00000038
233 #define ERROR_ADAP_HDW_ERR 0x00000039
234 #define ERROR_BAD_NET_RESP 0x0000003A
235 #define ERROR_UNEXP_NET_ERR 0x0000003B
236 #define ERROR_BAD_REM_ADAP 0x0000003C
237 #define ERROR_PRINTQ_FULL 0x0000003D
238 #define ERROR_NO_SPOOL_SPACE 0x0000003E
239 #define ERROR_PRINT_CANCELLED 0x0000003F
240 #define ERROR_NETNAME_DELETED 0x00000040
241 #define ERROR_NETWORK_ACCESS_DENIED 0x00000041
242 #define ERROR_BAD_DEV_TYPE 0x00000042
243 #define ERROR_BAD_NET_NAME 0x00000043
244 #define ERROR_TOO_MANY_NAMES 0x00000044
245 #define ERROR_TOO_MANY_SESS 0x00000045
246 #define ERROR_SHARING_PAUSED 0x00000046
247 #define ERROR_REQ_NOT_ACCEP 0x00000047
248 #define ERROR_REDIR_PAUSED 0x00000048
249 #define ERROR_FILE_EXISTS 0x00000050
250 #define ERROR_CANNOT_MAKE 0x00000052
251 #define ERROR_FAIL_I24 0x00000053
252 #define ERROR_OUT_OF_STRUCTURES 0x00000054
253 #define ERROR_ALREADY_ASSIGNED 0x00000055
254 #define ERROR_INVALID_PASSWORD 0x00000056
255 #define ERROR_INVALID_PARAMETER 0x00000057
256 #define ERROR_NET_WRITE_FAULT 0x00000058
257 #define ERROR_NO_PROC_SLOTS 0x00000059
258 #define ERROR_TOO_MANY_SEMAPHORES 0x00000064
259 #define ERROR_EXCL_SEM_ALREADY_OWNED 0x00000065
260 #define ERROR_SEM_IS_SET 0x00000066
261 #define ERROR_TOO_MANY_SEM_REQUESTS 0x00000067
262 #define ERROR_INVALID_AT_INTERRUPT_TIME 0x00000068
263 #define ERROR_SEM_OWNER_DIED 0x00000069
264 #define ERROR_SEM_USER_LIMIT 0x0000006A
265 #define ERROR_DISK_CHANGE 0x0000006B
266 #define ERROR_DRIVE_LOCKED 0x0000006C
267 #define ERROR_BROKEN_PIPE 0x0000006D
268 #define ERROR_OPEN_FAILED 0x0000006E
269 #define ERROR_BUFFER_OVERFLOW 0x0000006F
270 #define ERROR_DISK_FULL 0x00000070
271 #define ERROR_NO_MORE_SEARCH_HANDLES 0x00000071
272 #define ERROR_INVALID_TARGET_HANDLE 0x00000072
273 #define ERROR_INVALID_CATEGORY 0x00000075
274 #define ERROR_INVALID_VERIFY_SWITCH 0x00000076
275 #define ERROR_BAD_DRIVER_LEVEL 0x00000077
276 #define ERROR_CALL_NOT_IMPLEMENTED 0x00000078
277 #define ERROR_SEM_TIMEOUT 0x00000079
278 #define ERROR_INSUFFICIENT_BUFFER 0x0000007A
279 #define ERROR_INVALID_NAME 0x0000007B
280 #define ERROR_INVALID_LEVEL 0x0000007C
281 #define ERROR_NO_VOLUME_LABEL 0x0000007D
282 #define ERROR_MOD_NOT_FOUND 0x0000007E
283 #define ERROR_PROC_NOT_FOUND 0x0000007F
284 #define ERROR_WAIT_NO_CHILDREN 0x00000080
285 #define ERROR_CHILD_NOT_COMPLETE 0x00000081
286 #define ERROR_DIRECT_ACCESS_HANDLE 0x00000082
287 #define ERROR_NEGATIVE_SEEK 0x00000083
288 #define ERROR_SEEK_ON_DEVICE 0x00000084
289 #define ERROR_IS_JOIN_TARGET 0x00000085
290 #define ERROR_IS_JOINED 0x00000086
291 #define ERROR_IS_SUBSTED 0x00000087
292 #define ERROR_NOT_JOINED 0x00000088
293 #define ERROR_NOT_SUBSTED 0x00000089
294 #define ERROR_JOIN_TO_JOIN 0x0000008A
295 #define ERROR_SUBST_TO_SUBST 0x0000008B
296 #define ERROR_JOIN_TO_SUBST 0x0000008C
297 #define ERROR_SUBST_TO_JOIN 0x0000008D
298 #define ERROR_BUSY_DRIVE 0x0000008E
299 #define ERROR_SAME_DRIVE 0x0000008F
300 #define ERROR_DIR_NOT_ROOT 0x00000090
301 #define ERROR_DIR_NOT_EMPTY 0x00000091
302 #define ERROR_IS_SUBST_PATH 0x00000092
303 #define ERROR_IS_JOIN_PATH 0x00000093
304 #define ERROR_PATH_BUSY 0x00000094
305 #define ERROR_IS_SUBST_TARGET 0x00000095
306 #define ERROR_SYSTEM_TRACE 0x00000096
307 #define ERROR_INVALID_EVENT_COUNT 0x00000097
308 #define ERROR_TOO_MANY_MUXWAITERS 0x00000098
309 #define ERROR_INVALID_LIST_FORMAT 0x00000099
310 #define ERROR_LABEL_TOO_LONG 0x0000009A
311 #define ERROR_TOO_MANY_TCBS 0x0000009B
312 #define ERROR_SIGNAL_REFUSED 0x0000009C
313 #define ERROR_DISCARDED 0x0000009D
314 #define ERROR_NOT_LOCKED 0x0000009E
315 #define ERROR_BAD_THREADID_ADDR 0x0000009F
316 #define ERROR_BAD_ARGUMENTS 0x000000A0
317 #define ERROR_BAD_PATHNAME 0x000000A1
318 #define ERROR_SIGNAL_PENDING 0x000000A2
319 #define ERROR_MAX_THRDS_REACHED 0x000000A4
320 #define ERROR_LOCK_FAILED 0x000000A7
321 #define ERROR_BUSY 0x000000AA
322 #define ERROR_DEVICE_SUPPORT_IN_PROGRESS 0x000000AB
323 #define ERROR_CANCEL_VIOLATION 0x000000AD
324 #define ERROR_ATOMIC_LOCKS_NOT_SUPPORTED 0x000000AE
325 #define ERROR_INVALID_SEGMENT_NUMBER 0x000000B4
326 #define ERROR_INVALID_ORDINAL 0x000000B6
327 #define ERROR_ALREADY_EXISTS 0x000000B7
328 #define ERROR_INVALID_FLAG_NUMBER 0x000000BA
329 #define ERROR_SEM_NOT_FOUND 0x000000BB
330 #define ERROR_INVALID_STARTING_CODESEG 0x000000BC
331 #define ERROR_INVALID_STACKSEG 0x000000BD
332 #define ERROR_INVALID_MODULETYPE 0x000000BE
333 #define ERROR_INVALID_EXE_SIGNATURE 0x000000BF
334 #define ERROR_EXE_MARKED_INVALID 0x000000C0
335 #define ERROR_BAD_EXE_FORMAT 0x000000C1
336 #define ERROR_ITERATED_DATA_EXCEEDS_64k 0x000000C2
337 #define ERROR_INVALID_MINALLOCSIZE 0x000000C3
338 #define ERROR_DYNLINK_FROM_INVALID_RING 0x000000C4
339 #define ERROR_IOPL_NOT_ENABLED 0x000000C5
340 #define ERROR_INVALID_SEGDPL 0x000000C6
341 #define ERROR_AUTODATASEG_EXCEEDS_64k 0x000000C7
342 #define ERROR_RING2SEG_MUST_BE_MOVABLE 0x000000C8
343 #define ERROR_RELOC_CHAIN_XEEDS_SEGLIM 0x000000C9
344 #define ERROR_INFLOOP_IN_RELOC_CHAIN 0x000000CA
345 #define ERROR_ENVVAR_NOT_FOUND 0x000000CB
346 #define ERROR_NO_SIGNAL_SENT 0x000000CD
347 #define ERROR_FILENAME_EXCED_RANGE 0x000000CE
348 #define ERROR_RING2_STACK_IN_USE 0x000000CF
349 #define ERROR_META_EXPANSION_TOO_LONG 0x000000D0
350 #define ERROR_INVALID_SIGNAL_NUMBER 0x000000D1
351 #define ERROR_THREAD_1_INACTIVE 0x000000D2
352 #define ERROR_LOCKED 0x000000D4
353 #define ERROR_TOO_MANY_MODULES 0x000000D6
354 #define ERROR_NESTING_NOT_ALLOWED 0x000000D7
355 #define ERROR_EXE_MACHINE_TYPE_MISMATCH 0x000000D8
356 #define ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY 0x000000D9
357 #define ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY 0x000000DA
358 #define ERROR_FILE_CHECKED_OUT 0x000000DC
359 #define ERROR_CHECKOUT_REQUIRED 0x000000DD
360 #define ERROR_BAD_FILE_TYPE 0x000000DE
361 #define ERROR_FILE_TOO_LARGE 0x000000DF
362 #define ERROR_FORMS_AUTH_REQUIRED 0x000000E0
363 #define ERROR_VIRUS_INFECTED 0x000000E1
364 #define ERROR_VIRUS_DELETED 0x000000E2
365 #define ERROR_PIPE_LOCAL 0x000000E5
366 #define ERROR_BAD_PIPE 0x000000E6
367 #define ERROR_PIPE_BUSY 0x000000E7
368 #define ERROR_NO_DATA 0x000000E8
369 #define ERROR_PIPE_NOT_CONNECTED 0x000000E9
370 #define ERROR_MORE_DATA 0x000000EA
371 #define ERROR_VC_DISCONNECTED 0x000000F0
372 #define ERROR_INVALID_EA_NAME 0x000000FE
373 #define ERROR_EA_LIST_INCONSISTENT 0x000000FF
374 #define WAIT_TIMEOUT 0x00000102
375 #define ERROR_NO_MORE_ITEMS 0x00000103
376 #define ERROR_CANNOT_COPY 0x0000010A
377 #define ERROR_DIRECTORY 0x0000010B
378 #define ERROR_EAS_DIDNT_FIT 0x00000113
379 #define ERROR_EA_FILE_CORRUPT 0x00000114
380 #define ERROR_EA_TABLE_FULL 0x00000115
381 #define ERROR_INVALID_EA_HANDLE 0x00000116
382 #define ERROR_EAS_NOT_SUPPORTED 0x0000011A
383 #define ERROR_NOT_OWNER 0x00000120
384 #define ERROR_TOO_MANY_POSTS 0x0000012A
385 #define ERROR_PARTIAL_COPY 0x0000012B
386 #define ERROR_OPLOCK_NOT_GRANTED 0x0000012C
387 #define ERROR_INVALID_OPLOCK_PROTOCOL 0x0000012D
388 #define ERROR_DISK_TOO_FRAGMENTED 0x0000012E
389 #define ERROR_DELETE_PENDING 0x0000012F
390 #define ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING 0x00000130
391 #define ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME 0x00000131
392 #define ERROR_SECURITY_STREAM_IS_INCONSISTENT 0x00000132
393 #define ERROR_INVALID_LOCK_RANGE 0x00000133
394 #define ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT 0x00000134
395 #define ERROR_NOTIFICATION_GUID_ALREADY_DEFINED 0x00000135
396 #define ERROR_INVALID_EXCEPTION_HANDLER 0x00000136
397 #define ERROR_DUPLICATE_PRIVILEGES 0x00000137
398 #define ERROR_NO_RANGES_PROCESSED 0x00000138
399 #define ERROR_NOT_ALLOWED_ON_SYSTEM_FILE 0x00000139
400 #define ERROR_DISK_RESOURCES_EXHAUSTED 0x0000013A
401 #define ERROR_INVALID_TOKEN 0x0000013B
402 #define ERROR_DEVICE_FEATURE_NOT_SUPPORTED 0x0000013C
403 #define ERROR_MR_MID_NOT_FOUND 0x0000013D
404 #define ERROR_SCOPE_NOT_FOUND 0x0000013E
405 #define ERROR_UNDEFINED_SCOPE 0x0000013F
406 #define ERROR_INVALID_CAP 0x00000140
407 #define ERROR_DEVICE_UNREACHABLE 0x00000141
408 #define ERROR_DEVICE_NO_RESOURCES 0x00000142
409 #define ERROR_DATA_CHECKSUM_ERROR 0x00000143
410 #define ERROR_INTERMIXED_KERNEL_EA_OPERATION 0x00000144
411 #define ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED 0x00000146
412 #define ERROR_OFFSET_ALIGNMENT_VIOLATION 0x00000147
413 #define ERROR_INVALID_FIELD_IN_PARAMETER_LIST 0x00000148
414 #define ERROR_OPERATION_IN_PROGRESS 0x00000149
415 #define ERROR_BAD_DEVICE_PATH 0x0000014A
416 #define ERROR_TOO_MANY_DESCRIPTORS 0x0000014B
417 #define ERROR_SCRUB_DATA_DISABLED 0x0000014C
418 #define ERROR_NOT_REDUNDANT_STORAGE 0x0000014D
419 #define ERROR_RESIDENT_FILE_NOT_SUPPORTED 0x0000014E
420 #define ERROR_COMPRESSED_FILE_NOT_SUPPORTED 0x0000014F
421 #define ERROR_DIRECTORY_NOT_SUPPORTED 0x00000150
422 #define ERROR_NOT_READ_FROM_COPY 0x00000151
423 #define ERROR_FAIL_NOACTION_REBOOT 0x0000015E
424 #define ERROR_FAIL_SHUTDOWN 0x0000015F
425 #define ERROR_FAIL_RESTART 0x00000160
426 #define ERROR_MAX_SESSIONS_REACHED 0x00000161
427 #define ERROR_THREAD_MODE_ALREADY_BACKGROUND 0x00000190
428 #define ERROR_THREAD_MODE_NOT_BACKGROUND 0x00000191
429 #define ERROR_PROCESS_MODE_ALREADY_BACKGROUND 0x00000192
430 #define ERROR_PROCESS_MODE_NOT_BACKGROUND 0x00000193
431 #define ERROR_INVALID_ADDRESS 0x000001E7
432 
433 /* System Error Codes (500-999) */
434 
435 #define ERROR_USER_PROFILE_LOAD 0x000001F4
436 #define ERROR_ARITHMETIC_OVERFLOW 0x00000216
437 #define ERROR_PIPE_CONNECTED 0x00000217
438 #define ERROR_PIPE_LISTENING 0x00000218
439 #define ERROR_VERIFIER_STOP 0x00000219
440 #define ERROR_ABIOS_ERROR 0x0000021A
441 #define ERROR_WX86_WARNING 0x0000021B
442 #define ERROR_WX86_ERROR 0x0000021C
443 #define ERROR_TIMER_NOT_CANCELED 0x0000021D
444 #define ERROR_UNWIND 0x0000021E
445 #define ERROR_BAD_STACK 0x0000021F
446 #define ERROR_INVALID_UNWIND_TARGET 0x00000220
447 #define ERROR_INVALID_PORT_ATTRIBUTES 0x00000221
448 #define ERROR_PORT_MESSAGE_TOO_LONG 0x00000222
449 #define ERROR_INVALID_QUOTA_LOWER 0x00000223
450 #define ERROR_DEVICE_ALREADY_ATTACHED 0x00000224
451 #define ERROR_INSTRUCTION_MISALIGNMENT 0x00000225
452 #define ERROR_PROFILING_NOT_STARTED 0x00000226
453 #define ERROR_PROFILING_NOT_STOPPED 0x00000227
454 #define ERROR_COULD_NOT_INTERPRET 0x00000228
455 #define ERROR_PROFILING_AT_LIMIT 0x00000229
456 #define ERROR_CANT_WAIT 0x0000022A
457 #define ERROR_CANT_TERMINATE_SELF 0x0000022B
458 #define ERROR_UNEXPECTED_MM_CREATE_ERR 0x0000022C
459 #define ERROR_UNEXPECTED_MM_MAP_ERROR 0x0000022D
460 #define ERROR_UNEXPECTED_MM_EXTEND_ERR 0x0000022E
461 #define ERROR_BAD_FUNCTION_TABLE 0x0000022F
462 #define ERROR_NO_GUID_TRANSLATION 0x00000230
463 #define ERROR_INVALID_LDT_SIZE 0x00000231
464 #define ERROR_INVALID_LDT_OFFSET 0x00000233
465 #define ERROR_INVALID_LDT_DESCRIPTOR 0x00000234
466 #define ERROR_TOO_MANY_THREADS 0x00000235
467 #define ERROR_THREAD_NOT_IN_PROCESS 0x00000236
468 #define ERROR_PAGEFILE_QUOTA_EXCEEDED 0x00000237
469 #define ERROR_LOGON_SERVER_CONFLICT 0x00000238
470 #define ERROR_SYNCHRONIZATION_REQUIRED 0x00000239
471 #define ERROR_NET_OPEN_FAILED 0x0000023A
472 #define ERROR_IO_PRIVILEGE_FAILED 0x0000023B
473 #define ERROR_CONTROL_C_EXIT 0x0000023C
474 #define ERROR_MISSING_SYSTEMFILE 0x0000023D
475 #define ERROR_UNHANDLED_EXCEPTION 0x0000023E
476 #define ERROR_APP_INIT_FAILURE 0x0000023F
477 #define ERROR_PAGEFILE_CREATE_FAILED 0x00000240
478 #define ERROR_INVALID_IMAGE_HASH 0x00000241
479 #define ERROR_NO_PAGEFILE 0x00000242
480 #define ERROR_ILLEGAL_FLOAT_CONTEXT 0x00000243
481 #define ERROR_NO_EVENT_PAIR 0x00000244
482 #define ERROR_DOMAIN_CTRLR_CONFIG_ERROR 0x00000245
483 #define ERROR_ILLEGAL_CHARACTER 0x00000246
484 #define ERROR_UNDEFINED_CHARACTER 0x00000247
485 #define ERROR_FLOPPY_VOLUME 0x00000248
486 #define ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT 0x00000249
487 #define ERROR_BACKUP_CONTROLLER 0x0000024A
488 #define ERROR_MUTANT_LIMIT_EXCEEDED 0x0000024B
489 #define ERROR_FS_DRIVER_REQUIRED 0x0000024C
490 #define ERROR_CANNOT_LOAD_REGISTRY_FILE 0x0000024D
491 #define ERROR_DEBUG_ATTACH_FAILED 0x0000024E
492 #define ERROR_SYSTEM_PROCESS_TERMINATED 0x0000024F
493 #define ERROR_DATA_NOT_ACCEPTED 0x00000250
494 #define ERROR_VDM_HARD_ERROR 0x00000251
495 #define ERROR_DRIVER_CANCEL_TIMEOUT 0x00000252
496 #define ERROR_REPLY_MESSAGE_MISMATCH 0x00000253
497 #define ERROR_LOST_WRITEBEHIND_DATA 0x00000254
498 #define ERROR_CLIENT_SERVER_PARAMETERS_INVALID 0x00000255
499 #define ERROR_NOT_TINY_STREAM 0x00000256
500 #define ERROR_STACK_OVERFLOW_READ 0x00000257
501 #define ERROR_CONVERT_TO_LARGE 0x00000258
502 #define ERROR_FOUND_OUT_OF_SCOPE 0x00000259
503 #define ERROR_ALLOCATE_BUCKET 0x0000025A
504 #define ERROR_MARSHALL_OVERFLOW 0x0000025B
505 #define ERROR_INVALID_VARIANT 0x0000025C
506 #define ERROR_BAD_COMPRESSION_BUFFER 0x0000025D
507 #define ERROR_AUDIT_FAILED 0x0000025E
508 #define ERROR_TIMER_RESOLUTION_NOT_SET 0x0000025F
509 #define ERROR_INSUFFICIENT_LOGON_INFO 0x00000260
510 #define ERROR_BAD_DLL_ENTRYPOINT 0x00000261
511 #define ERROR_BAD_SERVICE_ENTRYPOINT 0x00000262
512 #define ERROR_IP_ADDRESS_CONFLICT1 0x00000263
513 #define ERROR_IP_ADDRESS_CONFLICT2 0x00000264
514 #define ERROR_REGISTRY_QUOTA_LIMIT 0x00000265
515 #define ERROR_NO_CALLBACK_ACTIVE 0x00000266
516 #define ERROR_PWD_TOO_SHORT 0x00000267
517 #define ERROR_PWD_TOO_RECENT 0x00000268
518 #define ERROR_PWD_HISTORY_CONFLICT 0x00000269
519 #define ERROR_UNSUPPORTED_COMPRESSION 0x0000026A
520 #define ERROR_INVALID_HW_PROFILE 0x0000026B
521 #define ERROR_INVALID_PLUGPLAY_DEVICE_PATH 0x0000026C
522 #define ERROR_QUOTA_LIST_INCONSISTENT 0x0000026D
523 #define ERROR_EVALUATION_EXPIRATION 0x0000026E
524 #define ERROR_ILLEGAL_DLL_RELOCATION 0x0000026F
525 #define ERROR_DLL_INIT_FAILED_LOGOFF 0x00000270
526 #define ERROR_VALIDATE_CONTINUE 0x00000271
527 #define ERROR_NO_MORE_MATCHES 0x00000272
528 #define ERROR_RANGE_LIST_CONFLICT 0x00000273
529 #define ERROR_SERVER_SID_MISMATCH 0x00000274
530 #define ERROR_CANT_ENABLE_DENY_ONLY 0x00000275
531 #define ERROR_FLOAT_MULTIPLE_FAULTS 0x00000276
532 #define ERROR_FLOAT_MULTIPLE_TRAPS 0x00000277
533 #define ERROR_NOINTERFACE 0x00000278
534 #define ERROR_DRIVER_FAILED_SLEEP 0x00000279
535 #define ERROR_CORRUPT_SYSTEM_FILE 0x0000027A
536 #define ERROR_COMMITMENT_MINIMUM 0x0000027B
537 #define ERROR_PNP_RESTART_ENUMERATION 0x0000027C
538 #define ERROR_SYSTEM_IMAGE_BAD_SIGNATURE 0x0000027D
539 #define ERROR_PNP_REBOOT_REQUIRED 0x0000027E
540 #define ERROR_INSUFFICIENT_POWER 0x0000027F
541 #define ERROR_MULTIPLE_FAULT_VIOLATION 0x00000280
542 #define ERROR_SYSTEM_SHUTDOWN 0x00000281
543 #define ERROR_PORT_NOT_SET 0x00000282
544 #define ERROR_DS_VERSION_CHECK_FAILURE 0x00000283
545 #define ERROR_RANGE_NOT_FOUND 0x00000284
546 #define ERROR_NOT_SAFE_MODE_DRIVER 0x00000286
547 #define ERROR_FAILED_DRIVER_ENTRY 0x00000287
548 #define ERROR_DEVICE_ENUMERATION_ERROR 0x00000288
549 #define ERROR_MOUNT_POINT_NOT_RESOLVED 0x00000289
550 #define ERROR_INVALID_DEVICE_OBJECT_PARAMETER 0x0000028A
551 /* The following is not a typo. It's the same spelling as in the Microsoft headers */
552 #define ERROR_MCA_OCCURED 0x0000028B
553 #define ERROR_DRIVER_DATABASE_ERROR 0x0000028C
554 #define ERROR_SYSTEM_HIVE_TOO_LARGE 0x0000028D
555 #define ERROR_DRIVER_FAILED_PRIOR_UNLOAD 0x0000028E
556 #define ERROR_VOLSNAP_PREPARE_HIBERNATE 0x0000028F
557 #define ERROR_HIBERNATION_FAILURE 0x00000290
558 #define ERROR_PWD_TOO_LONG 0x00000291
559 #define ERROR_FILE_SYSTEM_LIMITATION 0x00000299
560 #define ERROR_ASSERTION_FAILURE 0x0000029C
561 #define ERROR_ACPI_ERROR 0x0000029D
562 #define ERROR_WOW_ASSERTION 0x0000029E
563 #define ERROR_PNP_BAD_MPS_TABLE 0x0000029F
564 #define ERROR_PNP_TRANSLATION_FAILED 0x000002A0
565 #define ERROR_PNP_IRQ_TRANSLATION_FAILED 0x000002A1
566 #define ERROR_PNP_INVALID_ID 0x000002A2
567 #define ERROR_WAKE_SYSTEM_DEBUGGER 0x000002A3
568 #define ERROR_HANDLES_CLOSED 0x000002A4
569 #define ERROR_EXTRANEOUS_INFORMATION 0x000002A5
570 #define ERROR_RXACT_COMMIT_NECESSARY 0x000002A6
571 #define ERROR_MEDIA_CHECK 0x000002A7
572 #define ERROR_GUID_SUBSTITUTION_MADE 0x000002A8
573 #define ERROR_STOPPED_ON_SYMLINK 0x000002A9
574 #define ERROR_LONGJUMP 0x000002AA
575 #define ERROR_PLUGPLAY_QUERY_VETOED 0x000002AB
576 #define ERROR_UNWIND_CONSOLIDATE 0x000002AC
577 #define ERROR_REGISTRY_HIVE_RECOVERED 0x000002AD
578 #define ERROR_DLL_MIGHT_BE_INSECURE 0x000002AE
579 #define ERROR_DLL_MIGHT_BE_INCOMPATIBLE 0x000002AF
580 #define ERROR_DBG_EXCEPTION_NOT_HANDLED 0x000002B0
581 #define ERROR_DBG_REPLY_LATER 0x000002B1
582 #define ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE 0x000002B2
583 #define ERROR_DBG_TERMINATE_THREAD 0x000002B3
584 #define ERROR_DBG_TERMINATE_PROCESS 0x000002B4
585 #define ERROR_DBG_CONTROL_C 0x000002B5
586 #define ERROR_DBG_PRINTEXCEPTION_C 0x000002B6
587 #define ERROR_DBG_RIPEXCEPTION 0x000002B7
588 #define ERROR_DBG_CONTROL_BREAK 0x000002B8
589 #define ERROR_DBG_COMMAND_EXCEPTION 0x000002B9
590 #define ERROR_OBJECT_NAME_EXISTS 0x000002BA
591 #define ERROR_THREAD_WAS_SUSPENDED 0x000002BB
592 #define ERROR_IMAGE_NOT_AT_BASE 0x000002BC
593 #define ERROR_RXACT_STATE_CREATED 0x000002BD
594 #define ERROR_SEGMENT_NOTIFICATION 0x000002BE
595 #define ERROR_BAD_CURRENT_DIRECTORY 0x000002BF
596 #define ERROR_FT_READ_RECOVERY_FROM_BACKUP 0x000002C0
597 #define ERROR_FT_WRITE_RECOVERY 0x000002C1
598 #define ERROR_IMAGE_MACHINE_TYPE_MISMATCH 0x000002C2
599 #define ERROR_RECEIVE_PARTIAL 0x000002C3
600 #define ERROR_RECEIVE_EXPEDITED 0x000002C4
601 #define ERROR_RECEIVE_PARTIAL_EXPEDITED 0x000002C5
602 #define ERROR_EVENT_DONE 0x000002C6
603 #define ERROR_EVENT_PENDING 0x000002C7
604 #define ERROR_CHECKING_FILE_SYSTEM 0x000002C8
605 #define ERROR_FATAL_APP_EXIT 0x000002C9
606 #define ERROR_PREDEFINED_HANDLE 0x000002CA
607 #define ERROR_WAS_UNLOCKED 0x000002CB
608 #define ERROR_SERVICE_NOTIFICATION 0x000002CC
609 #define ERROR_WAS_LOCKED 0x000002CD
610 #define ERROR_LOG_HARD_ERROR 0x000002CE
611 #define ERROR_ALREADY_WIN32 0x000002CF
612 #define ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE 0x000002D0
613 #define ERROR_NO_YIELD_PERFORMED 0x000002D1
614 #define ERROR_TIMER_RESUME_IGNORED 0x000002D2
615 #define ERROR_ARBITRATION_UNHANDLED 0x000002D3
616 #define ERROR_CARDBUS_NOT_SUPPORTED 0x000002D4
617 #define ERROR_MP_PROCESSOR_MISMATCH 0x000002D5
618 #define ERROR_HIBERNATED 0x000002D6
619 #define ERROR_RESUME_HIBERNATION 0x000002D7
620 #define ERROR_FIRMWARE_UPDATED 0x000002D8
621 #define ERROR_DRIVERS_LEAKING_LOCKED_PAGES 0x000002D9
622 #define ERROR_WAKE_SYSTEM 0x000002DA
623 #define ERROR_WAIT_1 0x000002DB
624 #define ERROR_WAIT_2 0x000002DC
625 #define ERROR_WAIT_3 0x000002DD
626 #define ERROR_WAIT_63 0x000002DE
627 #define ERROR_ABANDONED_WAIT_0 0x000002DF
628 #define ERROR_ABANDONED_WAIT_63 0x000002E0
629 #define ERROR_USER_APC 0x000002E1
630 #define ERROR_KERNEL_APC 0x000002E2
631 #define ERROR_ALERTED 0x000002E3
632 #define ERROR_ELEVATION_REQUIRED 0x000002E4
633 #define ERROR_REPARSE 0x000002E5
634 #define ERROR_OPLOCK_BREAK_IN_PROGRESS 0x000002E6
635 #define ERROR_VOLUME_MOUNTED 0x000002E7
636 #define ERROR_RXACT_COMMITTED 0x000002E8
637 #define ERROR_NOTIFY_CLEANUP 0x000002E9
638 #define ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED 0x000002EA
639 #define ERROR_PAGE_FAULT_TRANSITION 0x000002EB
640 #define ERROR_PAGE_FAULT_DEMAND_ZERO 0x000002EC
641 #define ERROR_PAGE_FAULT_COPY_ON_WRITE 0x000002ED
642 #define ERROR_PAGE_FAULT_GUARD_PAGE 0x000002EE
643 #define ERROR_PAGE_FAULT_PAGING_FILE 0x000002EF
644 #define ERROR_CACHE_PAGE_LOCKED 0x000002F0
645 #define ERROR_CRASH_DUMP 0x000002F1
646 #define ERROR_BUFFER_ALL_ZEROS 0x000002F2
647 #define ERROR_REPARSE_OBJECT 0x000002F3
648 #define ERROR_RESOURCE_REQUIREMENTS_CHANGED 0x000002F4
649 #define ERROR_TRANSLATION_COMPLETE 0x000002F5
650 #define ERROR_NOTHING_TO_TERMINATE 0x000002F6
651 #define ERROR_PROCESS_NOT_IN_JOB 0x000002F7
652 #define ERROR_PROCESS_IN_JOB 0x000002F8
653 #define ERROR_VOLSNAP_HIBERNATE_READY 0x000002F9
654 #define ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY 0x000002FA
655 #define ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED 0x000002FB
656 #define ERROR_INTERRUPT_STILL_CONNECTED 0x000002FC
657 #define ERROR_WAIT_FOR_OPLOCK 0x000002FD
658 #define ERROR_DBG_EXCEPTION_HANDLED 0x000002FE
659 #define ERROR_DBG_CONTINUE 0x000002FF
660 #define ERROR_CALLBACK_POP_STACK 0x00000300
661 #define ERROR_COMPRESSION_DISABLED 0x00000301
662 #define ERROR_CANTFETCHBACKWARDS 0x00000302
663 #define ERROR_CANTSCROLLBACKWARDS 0x00000303
664 #define ERROR_ROWSNOTRELEASED 0x00000304
665 #define ERROR_BAD_ACCESSOR_FLAGS 0x00000305
666 #define ERROR_ERRORS_ENCOUNTERED 0x00000306
667 #define ERROR_NOT_CAPABLE 0x00000307
668 #define ERROR_REQUEST_OUT_OF_SEQUENCE 0x00000308
669 #define ERROR_VERSION_PARSE_ERROR 0x00000309
670 #define ERROR_BADSTARTPOSITION 0x0000030A
671 #define ERROR_MEMORY_HARDWARE 0x0000030B
672 #define ERROR_DISK_REPAIR_DISABLED 0x0000030C
673 #define ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE 0x0000030D
674 #define ERROR_SYSTEM_POWERSTATE_TRANSITION 0x0000030E
675 #define ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION 0x0000030F
676 #define ERROR_MCA_EXCEPTION 0x00000310
677 #define ERROR_ACCESS_AUDIT_BY_POLICY 0x00000311
678 #define ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY 0x00000312
679 #define ERROR_ABANDON_HIBERFILE 0x00000313
680 #define ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED 0x00000314
681 #define ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR 0x00000315
682 #define ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR 0x00000316
683 #define ERROR_BAD_MCFG_TABLE 0x00000317
684 #define ERROR_DISK_REPAIR_REDIRECTED 0x00000318
685 #define ERROR_DISK_REPAIR_UNSUCCESSFUL 0x00000319
686 #define ERROR_CORRUPT_LOG_OVERFULL 0x0000031A
687 #define ERROR_CORRUPT_LOG_CORRUPTED 0x0000031B
688 #define ERROR_CORRUPT_LOG_UNAVAILABLE 0x0000031C
689 #define ERROR_CORRUPT_LOG_DELETED_FULL 0x0000031D
690 #define ERROR_CORRUPT_LOG_CLEARED 0x0000031E
691 #define ERROR_ORPHAN_NAME_EXHAUSTED 0x0000031F
692 #define ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE 0x00000320
693 #define ERROR_CANNOT_GRANT_REQUESTED_OPLOCK 0x00000321
694 #define ERROR_CANNOT_BREAK_OPLOCK 0x00000322
695 #define ERROR_OPLOCK_HANDLE_CLOSED 0x00000323
696 #define ERROR_NO_ACE_CONDITION 0x00000324
697 #define ERROR_INVALID_ACE_CONDITION 0x00000325
698 #define ERROR_FILE_HANDLE_REVOKED 0x00000326
699 #define ERROR_IMAGE_AT_DIFFERENT_BASE 0x00000327
700 #define ERROR_EA_ACCESS_DENIED 0x000003E2
701 #define ERROR_OPERATION_ABORTED 0x000003E3
702 #define ERROR_IO_INCOMPLETE 0x000003E4
703 #define ERROR_IO_PENDING 0x000003E5
704 #define ERROR_NOACCESS 0x000003E6
705 #define ERROR_SWAPERROR 0x000003E7
706 
707 /* System Error Codes (1000-1299) */
708 
709 #define ERROR_STACK_OVERFLOW 0x000003E9
710 #define ERROR_INVALID_MESSAGE 0x000003EA
711 #define ERROR_CAN_NOT_COMPLETE 0x000003EB
712 #define ERROR_INVALID_FLAGS 0x000003EC
713 #define ERROR_UNRECOGNIZED_VOLUME 0x000003ED
714 #define ERROR_FILE_INVALID 0x000003EE
715 #define ERROR_FULLSCREEN_MODE 0x000003EF
716 #define ERROR_NO_TOKEN 0x000003F0
717 #define ERROR_BADDB 0x000003F1
718 #define ERROR_BADKEY 0x000003F2
719 #define ERROR_CANTOPEN 0x000003F3
720 #define ERROR_CANTREAD 0x000003F4
721 #define ERROR_CANTWRITE 0x000003F5
722 #define ERROR_REGISTRY_RECOVERED 0x000003F6
723 #define ERROR_REGISTRY_CORRUPT 0x000003F7
724 #define ERROR_REGISTRY_IO_FAILED 0x000003F8
725 #define ERROR_NOT_REGISTRY_FILE 0x000003F9
726 #define ERROR_KEY_DELETED 0x000003FA
727 #define ERROR_NO_LOG_SPACE 0x000003FB
728 #define ERROR_KEY_HAS_CHILDREN 0x000003FC
729 #define ERROR_CHILD_MUST_BE_VOLATILE 0x000003FD
730 #define ERROR_NOTIFY_ENUM_DIR 0x000003FE
731 #define ERROR_DEPENDENT_SERVICES_RUNNING 0x0000041B
732 #define ERROR_INVALID_SERVICE_CONTROL 0x0000041C
733 #define ERROR_SERVICE_REQUEST_TIMEOUT 0x0000041D
734 #define ERROR_SERVICE_NO_THREAD 0x0000041E
735 #define ERROR_SERVICE_DATABASE_LOCKED 0x0000041F
736 #define ERROR_SERVICE_ALREADY_RUNNING 0x00000420
737 #define ERROR_INVALID_SERVICE_ACCOUNT 0x00000421
738 #define ERROR_SERVICE_DISABLED 0x00000422
739 #define ERROR_CIRCULAR_DEPENDENCY 0x00000423
740 #define ERROR_SERVICE_DOES_NOT_EXIST 0x00000424
741 #define ERROR_SERVICE_CANNOT_ACCEPT_CTRL 0x00000425
742 #define ERROR_SERVICE_NOT_ACTIVE 0x00000426
743 #define ERROR_FAILED_SERVICE_CONTROLLER_CONNECT 0x00000427
744 #define ERROR_EXCEPTION_IN_SERVICE 0x00000428
745 #define ERROR_DATABASE_DOES_NOT_EXIST 0x00000429
746 #define ERROR_SERVICE_SPECIFIC_ERROR 0x0000042A
747 #define ERROR_PROCESS_ABORTED 0x0000042B
748 #define ERROR_SERVICE_DEPENDENCY_FAIL 0x0000042C
749 #define ERROR_SERVICE_LOGON_FAILED 0x0000042D
750 #define ERROR_SERVICE_START_HANG 0x0000042E
751 #define ERROR_INVALID_SERVICE_LOCK 0x0000042F
752 #define ERROR_SERVICE_MARKED_FOR_DELETE 0x00000430
753 #define ERROR_SERVICE_EXISTS 0x00000431
754 #define ERROR_ALREADY_RUNNING_LKG 0x00000432
755 #define ERROR_SERVICE_DEPENDENCY_DELETED 0x00000433
756 #define ERROR_BOOT_ALREADY_ACCEPTED 0x00000434
757 #define ERROR_SERVICE_NEVER_STARTED 0x00000435
758 #define ERROR_DUPLICATE_SERVICE_NAME 0x00000436
759 #define ERROR_DIFFERENT_SERVICE_ACCOUNT 0x00000437
760 #define ERROR_CANNOT_DETECT_DRIVER_FAILURE 0x00000438
761 #define ERROR_CANNOT_DETECT_PROCESS_ABORT 0x00000439
762 #define ERROR_NO_RECOVERY_PROGRAM 0x0000043A
763 #define ERROR_SERVICE_NOT_IN_EXE 0x0000043B
764 #define ERROR_NOT_SAFEBOOT_SERVICE 0x0000043C
765 #define ERROR_END_OF_MEDIA 0x0000044C
766 #define ERROR_FILEMARK_DETECTED 0x0000044D
767 #define ERROR_BEGINNING_OF_MEDIA 0x0000044E
768 #define ERROR_SETMARK_DETECTED 0x0000044F
769 #define ERROR_NO_DATA_DETECTED 0x00000450
770 #define ERROR_PARTITION_FAILURE 0x00000451
771 #define ERROR_INVALID_BLOCK_LENGTH 0x00000452
772 #define ERROR_DEVICE_NOT_PARTITIONED 0x00000453
773 #define ERROR_UNABLE_TO_LOCK_MEDIA 0x00000454
774 #define ERROR_UNABLE_TO_UNLOAD_MEDIA 0x00000455
775 #define ERROR_MEDIA_CHANGED 0x00000456
776 #define ERROR_BUS_RESET 0x00000457
777 #define ERROR_NO_MEDIA_IN_DRIVE 0x00000458
778 #define ERROR_NO_UNICODE_TRANSLATION 0x00000459
779 #define ERROR_DLL_INIT_FAILED 0x0000045A
780 #define ERROR_SHUTDOWN_IN_PROGRESS 0x0000045B
781 #define ERROR_NO_SHUTDOWN_IN_PROGRESS 0x0000045C
782 #define ERROR_IO_DEVICE 0x0000045D
783 #define ERROR_SERIAL_NO_DEVICE 0x0000045E
784 #define ERROR_IRQ_BUSY 0x0000045F
785 #define ERROR_MORE_WRITES 0x00000460
786 #define ERROR_COUNTER_TIMEOUT 0x00000461
787 #define ERROR_FLOPPY_ID_MARK_NOT_FOUND 0x00000462
788 #define ERROR_FLOPPY_WRONG_CYLINDER 0x00000463
789 #define ERROR_FLOPPY_UNKNOWN_ERROR 0x00000464
790 #define ERROR_FLOPPY_BAD_REGISTERS 0x00000465
791 #define ERROR_DISK_RECALIBRATE_FAILED 0x00000466
792 #define ERROR_DISK_OPERATION_FAILED 0x00000467
793 #define ERROR_DISK_RESET_FAILED 0x00000468
794 #define ERROR_EOM_OVERFLOW 0x00000469
795 #define ERROR_NOT_ENOUGH_SERVER_MEMORY 0x0000046A
796 #define ERROR_POSSIBLE_DEADLOCK 0x0000046B
797 #define ERROR_MAPPED_ALIGNMENT 0x0000046C
798 #define ERROR_SET_POWER_STATE_VETOED 0x00000474
799 #define ERROR_SET_POWER_STATE_FAILED 0x00000475
800 #define ERROR_TOO_MANY_LINKS 0x00000476
801 #define ERROR_OLD_WIN_VERSION 0x0000047E
802 #define ERROR_APP_WRONG_OS 0x0000047F
803 #define ERROR_SINGLE_INSTANCE_APP 0x00000480
804 #define ERROR_RMODE_APP 0x00000481
805 #define ERROR_INVALID_DLL 0x00000482
806 #define ERROR_NO_ASSOCIATION 0x00000483
807 #define ERROR_DDE_FAIL 0x00000484
808 #define ERROR_DLL_NOT_FOUND 0x00000485
809 #define ERROR_NO_MORE_USER_HANDLES 0x00000486
810 #define ERROR_MESSAGE_SYNC_ONLY 0x00000487
811 #define ERROR_SOURCE_ELEMENT_EMPTY 0x00000488
812 #define ERROR_DESTINATION_ELEMENT_FULL 0x00000489
813 #define ERROR_ILLEGAL_ELEMENT_ADDRESS 0x0000048A
814 #define ERROR_MAGAZINE_NOT_PRESENT 0x0000048B
815 #define ERROR_DEVICE_REINITIALIZATION_NEEDED 0x0000048C
816 #define ERROR_DEVICE_REQUIRES_CLEANING 0x0000048D
817 #define ERROR_DEVICE_DOOR_OPEN 0x0000048E
818 #define ERROR_DEVICE_NOT_CONNECTED 0x0000048F
819 #define ERROR_NOT_FOUND 0x00000490
820 #define ERROR_NO_MATCH 0x00000491
821 #define ERROR_SET_NOT_FOUND 0x00000492
822 #define ERROR_POINT_NOT_FOUND 0x00000493
823 #define ERROR_NO_TRACKING_SERVICE 0x00000494
824 #define ERROR_NO_VOLUME_ID 0x00000495
825 #define ERROR_UNABLE_TO_REMOVE_REPLACED 0x00000497
826 #define ERROR_UNABLE_TO_MOVE_REPLACEMENT 0x00000498
827 #define ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 0x00000499
828 #define ERROR_JOURNAL_DELETE_IN_PROGRESS 0x0000049A
829 #define ERROR_JOURNAL_NOT_ACTIVE 0x0000049B
830 #define ERROR_POTENTIAL_FILE_FOUND 0x0000049C
831 #define ERROR_JOURNAL_ENTRY_DELETED 0x0000049D
832 #define ERROR_SHUTDOWN_IS_SCHEDULED 0x000004A6
833 #define ERROR_SHUTDOWN_USERS_LOGGED_ON 0x000004A7
834 #define ERROR_BAD_DEVICE 0x000004B0
835 #define ERROR_CONNECTION_UNAVAIL 0x000004B1
836 #define ERROR_DEVICE_ALREADY_REMEMBERED 0x000004B2
837 #define ERROR_NO_NET_OR_BAD_PATH 0x000004B3
838 #define ERROR_BAD_PROVIDER 0x000004B4
839 #define ERROR_CANNOT_OPEN_PROFILE 0x000004B5
840 #define ERROR_BAD_PROFILE 0x000004B6
841 #define ERROR_NOT_CONTAINER 0x000004B7
842 #define ERROR_EXTENDED_ERROR 0x000004B8
843 #define ERROR_INVALID_GROUPNAME 0x000004B9
844 #define ERROR_INVALID_COMPUTERNAME 0x000004BA
845 #define ERROR_INVALID_EVENTNAME 0x000004BB
846 #define ERROR_INVALID_DOMAINNAME 0x000004BC
847 #define ERROR_INVALID_SERVICENAME 0x000004BD
848 #define ERROR_INVALID_NETNAME 0x000004BE
849 #define ERROR_INVALID_SHARENAME 0x000004BF
850 #define ERROR_INVALID_PASSWORDNAME 0x000004C0
851 #define ERROR_INVALID_MESSAGENAME 0x000004C1
852 #define ERROR_INVALID_MESSAGEDEST 0x000004C2
853 #define ERROR_SESSION_CREDENTIAL_CONFLICT 0x000004C3
854 #define ERROR_REMOTE_SESSION_LIMIT_EXCEEDED 0x000004C4
855 #define ERROR_DUP_DOMAINNAME 0x000004C5
856 #define ERROR_NO_NETWORK 0x000004C6
857 #define ERROR_CANCELLED 0x000004C7
858 #define ERROR_USER_MAPPED_FILE 0x000004C8
859 #define ERROR_CONNECTION_REFUSED 0x000004C9
860 #define ERROR_GRACEFUL_DISCONNECT 0x000004CA
861 #define ERROR_ADDRESS_ALREADY_ASSOCIATED 0x000004CB
862 #define ERROR_ADDRESS_NOT_ASSOCIATED 0x000004CC
863 #define ERROR_CONNECTION_INVALID 0x000004CD
864 #define ERROR_CONNECTION_ACTIVE 0x000004CE
865 #define ERROR_NETWORK_UNREACHABLE 0x000004CF
866 #define ERROR_HOST_UNREACHABLE 0x000004D0
867 #define ERROR_PROTOCOL_UNREACHABLE 0x000004D1
868 #define ERROR_PORT_UNREACHABLE 0x000004D2
869 #define ERROR_REQUEST_ABORTED 0x000004D3
870 #define ERROR_CONNECTION_ABORTED 0x000004D4
871 #define ERROR_RETRY 0x000004D5
872 #define ERROR_CONNECTION_COUNT_LIMIT 0x000004D6
873 #define ERROR_LOGIN_TIME_RESTRICTION 0x000004D7
874 #define ERROR_LOGIN_WKSTA_RESTRICTION 0x000004D8
875 #define ERROR_INCORRECT_ADDRESS 0x000004D9
876 #define ERROR_ALREADY_REGISTERED 0x000004DA
877 #define ERROR_SERVICE_NOT_FOUND 0x000004DB
878 #define ERROR_NOT_AUTHENTICATED 0x000004DC
879 #define ERROR_NOT_LOGGED_ON 0x000004DD
880 #define ERROR_CONTINUE 0x000004DE
881 #define ERROR_ALREADY_INITIALIZED 0x000004DF
882 #define ERROR_NO_MORE_DEVICES 0x000004E0
883 #define ERROR_NO_SUCH_SITE 0x000004E1
884 #define ERROR_DOMAIN_CONTROLLER_EXISTS 0x000004E2
885 #define ERROR_ONLY_IF_CONNECTED 0x000004E3
886 #define ERROR_OVERRIDE_NOCHANGES 0x000004E4
887 #define ERROR_BAD_USER_PROFILE 0x000004E5
888 #define ERROR_NOT_SUPPORTED_ON_SBS 0x000004E6
889 #define ERROR_SERVER_SHUTDOWN_IN_PROGRESS 0x000004E7
890 #define ERROR_HOST_DOWN 0x000004E8
891 #define ERROR_NON_ACCOUNT_SID 0x000004E9
892 #define ERROR_NON_DOMAIN_SID 0x000004EA
893 #define ERROR_APPHELP_BLOCK 0x000004EB
894 #define ERROR_ACCESS_DISABLED_BY_POLICY 0x000004EC
895 #define ERROR_REG_NAT_CONSUMPTION 0x000004ED
896 #define ERROR_CSCSHARE_OFFLINE 0x000004EE
897 #define ERROR_PKINIT_FAILURE 0x000004EF
898 #define ERROR_SMARTCARD_SUBSYSTEM_FAILURE 0x000004F0
899 #define ERROR_DOWNGRADE_DETECTED 0x000004F1
900 #define ERROR_MACHINE_LOCKED 0x000004F7
901 #define ERROR_CALLBACK_SUPPLIED_INVALID_DATA 0x000004F9
902 #define ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED 0x000004FA
903 #define ERROR_DRIVER_BLOCKED 0x000004FB
904 #define ERROR_INVALID_IMPORT_OF_NON_DLL 0x000004FC
905 #define ERROR_ACCESS_DISABLED_WEBBLADE 0x000004FD
906 #define ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER 0x000004FE
907 #define ERROR_RECOVERY_FAILURE 0x000004FF
908 #define ERROR_ALREADY_FIBER 0x00000500
909 #define ERROR_ALREADY_THREAD 0x00000501
910 #define ERROR_STACK_BUFFER_OVERRUN 0x00000502
911 #define ERROR_PARAMETER_QUOTA_EXCEEDED 0x00000503
912 #define ERROR_DEBUGGER_INACTIVE 0x00000504
913 #define ERROR_DELAY_LOAD_FAILED 0x00000505
914 #define ERROR_VDM_DISALLOWED 0x00000506
915 #define ERROR_UNIDENTIFIED_ERROR 0x00000507
916 #define ERROR_INVALID_CRUNTIME_PARAMETER 0x00000508
917 #define ERROR_BEYOND_VDL 0x00000509
918 #define ERROR_INCOMPATIBLE_SERVICE_SID_TYPE 0x0000050A
919 #define ERROR_DRIVER_PROCESS_TERMINATED 0x0000050B
920 #define ERROR_IMPLEMENTATION_LIMIT 0x0000050C
921 #define ERROR_PROCESS_IS_PROTECTED 0x0000050D
922 #define ERROR_SERVICE_NOTIFY_CLIENT_LAGGING 0x0000050E
923 #define ERROR_DISK_QUOTA_EXCEEDED 0x0000050F
924 #define ERROR_CONTENT_BLOCKED 0x00000510
925 #define ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE 0x00000511
926 #define ERROR_APP_HANG 0x00000512
927 #define ERROR_INVALID_LABEL 0x00000513
928 
929 /* System Error Codes (1300-1699) */
930 #define ERROR_NOT_ALL_ASSIGNED 0x00000514
931 #define ERROR_SOME_NOT_MAPPED 0x00000515
932 #define ERROR_NO_QUOTAS_FOR_ACCOUNT 0x00000516
933 #define ERROR_LOCAL_USER_SESSION_KEY 0x00000517
934 #define ERROR_NULL_LM_PASSWORD 0x00000518
935 #define ERROR_UNKNOWN_REVISION 0x00000519
936 #define ERROR_REVISION_MISMATCH 0x0000051A
937 #define ERROR_INVALID_OWNER 0x0000051B
938 #define ERROR_INVALID_PRIMARY_GROUP 0x0000051C
939 #define ERROR_NO_IMPERSONATION_TOKEN 0x0000051D
940 #define ERROR_CANT_DISABLE_MANDATORY 0x0000051E
941 #define ERROR_NO_LOGON_SERVERS 0x0000051F
942 #define ERROR_NO_SUCH_LOGON_SESSION 0x00000520
943 #define ERROR_NO_SUCH_PRIVILEGE 0x00000521
944 #define ERROR_PRIVILEGE_NOT_HELD 0x00000522
945 #define ERROR_INVALID_ACCOUNT_NAME 0x00000523
946 #define ERROR_USER_EXISTS 0x00000524
947 #define ERROR_NO_SUCH_USER 0x00000525
948 #define ERROR_GROUP_EXISTS 0x00000526
949 #define ERROR_NO_SUCH_GROUP 0x00000527
950 #define ERROR_MEMBER_IN_GROUP 0x00000528
951 #define ERROR_MEMBER_NOT_IN_GROUP 0x00000529
952 #define ERROR_LAST_ADMIN 0x0000052A
953 #define ERROR_WRONG_PASSWORD 0x0000052B
954 #define ERROR_ILL_FORMED_PASSWORD 0x0000052C
955 #define ERROR_PASSWORD_RESTRICTION 0x0000052D
956 #define ERROR_LOGON_FAILURE 0x0000052E
957 #define ERROR_ACCOUNT_RESTRICTION 0x0000052F
958 #define ERROR_INVALID_LOGON_HOURS 0x00000530
959 #define ERROR_INVALID_WORKSTATION 0x00000531
960 #define ERROR_PASSWORD_EXPIRED 0x00000532
961 #define ERROR_ACCOUNT_DISABLED 0x00000533
962 #define ERROR_NONE_MAPPED 0x00000534
963 #define ERROR_TOO_MANY_LUIDS_REQUESTED 0x00000535
964 #define ERROR_LUIDS_EXHAUSTED 0x00000536
965 #define ERROR_INVALID_SUB_AUTHORITY 0x00000537
966 #define ERROR_INVALID_ACL 0x00000538
967 #define ERROR_INVALID_SID 0x00000539
968 #define ERROR_INVALID_SECURITY_DESCR 0x0000053A
969 #define ERROR_BAD_INHERITANCE_ACL 0x0000053C
970 #define ERROR_SERVER_DISABLED 0x0000053D
971 #define ERROR_SERVER_NOT_DISABLED 0x0000053E
972 #define ERROR_INVALID_ID_AUTHORITY 0x0000053F
973 #define ERROR_ALLOTTED_SPACE_EXCEEDED 0x00000540
974 #define ERROR_INVALID_GROUP_ATTRIBUTES 0x00000541
975 #define ERROR_BAD_IMPERSONATION_LEVEL 0x00000542
976 #define ERROR_CANT_OPEN_ANONYMOUS 0x00000543
977 #define ERROR_BAD_VALIDATION_CLASS 0x00000544
978 #define ERROR_BAD_TOKEN_TYPE 0x00000545
979 #define ERROR_NO_SECURITY_ON_OBJECT 0x00000546
980 #define ERROR_CANT_ACCESS_DOMAIN_INFO 0x00000547
981 #define ERROR_INVALID_SERVER_STATE 0x00000548
982 #define ERROR_INVALID_DOMAIN_STATE 0x00000549
983 #define ERROR_INVALID_DOMAIN_ROLE 0x0000054A
984 #define ERROR_NO_SUCH_DOMAIN 0x0000054B
985 #define ERROR_DOMAIN_EXISTS 0x0000054C
986 #define ERROR_DOMAIN_LIMIT_EXCEEDED 0x0000054D
987 #define ERROR_INTERNAL_DB_CORRUPTION 0x0000054E
988 #define ERROR_INTERNAL_ERROR 0x0000054F
989 #define ERROR_GENERIC_NOT_MAPPED 0x00000550
990 #define ERROR_BAD_DESCRIPTOR_FORMAT 0x00000551
991 #define ERROR_NOT_LOGON_PROCESS 0x00000552
992 #define ERROR_LOGON_SESSION_EXISTS 0x00000553
993 #define ERROR_NO_SUCH_PACKAGE 0x00000554
994 #define ERROR_BAD_LOGON_SESSION_STATE 0x00000555
995 #define ERROR_LOGON_SESSION_COLLISION 0x00000556
996 #define ERROR_INVALID_LOGON_TYPE 0x00000557
997 #define ERROR_CANNOT_IMPERSONATE 0x00000558
998 #define ERROR_RXACT_INVALID_STATE 0x00000559
999 #define ERROR_RXACT_COMMIT_FAILURE 0x0000055A
1000 #define ERROR_SPECIAL_ACCOUNT 0x0000055B
1001 #define ERROR_SPECIAL_GROUP 0x0000055C
1002 #define ERROR_SPECIAL_USER 0x0000055D
1003 #define ERROR_MEMBERS_PRIMARY_GROUP 0x0000055E
1004 #define ERROR_TOKEN_ALREADY_IN_USE 0x0000055F
1005 #define ERROR_NO_SUCH_ALIAS 0x00000560
1006 #define ERROR_MEMBER_NOT_IN_ALIAS 0x00000561
1007 #define ERROR_MEMBER_IN_ALIAS 0x00000562
1008 #define ERROR_ALIAS_EXISTS 0x00000563
1009 #define ERROR_LOGON_NOT_GRANTED 0x00000564
1010 #define ERROR_TOO_MANY_SECRETS 0x00000565
1011 #define ERROR_SECRET_TOO_LONG 0x00000566
1012 #define ERROR_INTERNAL_DB_ERROR 0x00000567
1013 #define ERROR_TOO_MANY_CONTEXT_IDS 0x00000568
1014 #define ERROR_LOGON_TYPE_NOT_GRANTED 0x00000569
1015 #define ERROR_NT_CROSS_ENCRYPTION_REQUIRED 0x0000056A
1016 #define ERROR_NO_SUCH_MEMBER 0x0000056B
1017 #define ERROR_INVALID_MEMBER 0x0000056C
1018 #define ERROR_TOO_MANY_SIDS 0x0000056D
1019 #define ERROR_LM_CROSS_ENCRYPTION_REQUIRED 0x0000056E
1020 #define ERROR_NO_INHERITANCE 0x0000056F
1021 #define ERROR_FILE_CORRUPT 0x00000570
1022 #define ERROR_DISK_CORRUPT 0x00000571
1023 #define ERROR_NO_USER_SESSION_KEY 0x00000572
1024 #define ERROR_LICENSE_QUOTA_EXCEEDED 0x00000573
1025 #define ERROR_WRONG_TARGET_NAME 0x00000574
1026 #define ERROR_MUTUAL_AUTH_FAILED 0x00000575
1027 #define ERROR_TIME_SKEW 0x00000576
1028 #define ERROR_CURRENT_DOMAIN_NOT_ALLOWED 0x00000577
1029 #define ERROR_INVALID_WINDOW_HANDLE 0x00000578
1030 #define ERROR_INVALID_MENU_HANDLE 0x00000579
1031 #define ERROR_INVALID_CURSOR_HANDLE 0x0000057A
1032 #define ERROR_INVALID_ACCEL_HANDLE 0x0000057B
1033 #define ERROR_INVALID_HOOK_HANDLE 0x0000057C
1034 #define ERROR_INVALID_DWP_HANDLE 0x0000057D
1035 #define ERROR_TLW_WITH_WSCHILD 0x0000057E
1036 #define ERROR_CANNOT_FIND_WND_CLASS 0x0000057F
1037 #define ERROR_WINDOW_OF_OTHER_THREAD 0x00000580
1038 #define ERROR_HOTKEY_ALREADY_REGISTERED 0x00000581
1039 #define ERROR_CLASS_ALREADY_EXISTS 0x00000582
1040 #define ERROR_CLASS_DOES_NOT_EXIST 0x00000583
1041 #define ERROR_CLASS_HAS_WINDOWS 0x00000584
1042 #define ERROR_INVALID_INDEX 0x00000585
1043 #define ERROR_INVALID_ICON_HANDLE 0x00000586
1044 #define ERROR_PRIVATE_DIALOG_INDEX 0x00000587
1045 #define ERROR_LISTBOX_ID_NOT_FOUND 0x00000588
1046 #define ERROR_NO_WILDCARD_CHARACTERS 0x00000589
1047 #define ERROR_CLIPBOARD_NOT_OPEN 0x0000058A
1048 #define ERROR_HOTKEY_NOT_REGISTERED 0x0000058B
1049 #define ERROR_WINDOW_NOT_DIALOG 0x0000058C
1050 #define ERROR_CONTROL_ID_NOT_FOUND 0x0000058D
1051 #define ERROR_INVALID_COMBOBOX_MESSAGE 0x0000058E
1052 #define ERROR_WINDOW_NOT_COMBOBOX 0x0000058F
1053 #define ERROR_INVALID_EDIT_HEIGHT 0x00000590
1054 #define ERROR_DC_NOT_FOUND 0x00000591
1055 #define ERROR_INVALID_HOOK_FILTER 0x00000592
1056 #define ERROR_INVALID_FILTER_PROC 0x00000593
1057 #define ERROR_HOOK_NEEDS_HMOD 0x00000594
1058 #define ERROR_GLOBAL_ONLY_HOOK 0x00000595
1059 #define ERROR_JOURNAL_HOOK_SET 0x00000596
1060 #define ERROR_HOOK_NOT_INSTALLED 0x00000597
1061 #define ERROR_INVALID_LB_MESSAGE 0x00000598
1062 #define ERROR_SETCOUNT_ON_BAD_LB 0x00000599
1063 #define ERROR_LB_WITHOUT_TABSTOPS 0x0000059A
1064 #define ERROR_DESTROY_OBJECT_OF_OTHER_THREAD 0x0000059B
1065 #define ERROR_CHILD_WINDOW_MENU 0x0000059C
1066 #define ERROR_NO_SYSTEM_MENU 0x0000059D
1067 #define ERROR_INVALID_MSGBOX_STYLE 0x0000059E
1068 #define ERROR_INVALID_SPI_VALUE 0x0000059F
1069 #define ERROR_SCREEN_ALREADY_LOCKED 0x000005A0
1070 #define ERROR_HWNDS_HAVE_DIFF_PARENT 0x000005A1
1071 #define ERROR_NOT_CHILD_WINDOW 0x000005A2
1072 #define ERROR_INVALID_GW_COMMAND 0x000005A3
1073 #define ERROR_INVALID_THREAD_ID 0x000005A4
1074 #define ERROR_NON_MDICHILD_WINDOW 0x000005A5
1075 #define ERROR_POPUP_ALREADY_ACTIVE 0x000005A6
1076 #define ERROR_NO_SCROLLBARS 0x000005A7
1077 #define ERROR_INVALID_SCROLLBAR_RANGE 0x000005A8
1078 #define ERROR_INVALID_SHOWWIN_COMMAND 0x000005A9
1079 #define ERROR_NO_SYSTEM_RESOURCES 0x000005AA
1080 #define ERROR_NONPAGED_SYSTEM_RESOURCES 0x000005AB
1081 #define ERROR_PAGED_SYSTEM_RESOURCES 0x000005AC
1082 #define ERROR_WORKING_SET_QUOTA 0x000005AD
1083 #define ERROR_PAGEFILE_QUOTA 0x000005AE
1084 #define ERROR_COMMITMENT_LIMIT 0x000005AF
1085 #define ERROR_MENU_ITEM_NOT_FOUND 0x000005B0
1086 #define ERROR_INVALID_KEYBOARD_HANDLE 0x000005B1
1087 #define ERROR_HOOK_TYPE_NOT_ALLOWED 0x000005B2
1088 #define ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION 0x000005B3
1089 #define ERROR_TIMEOUT 0x000005B4
1090 #define ERROR_INVALID_MONITOR_HANDLE 0x000005B5
1091 #define ERROR_INCORRECT_SIZE 0x000005B6
1092 #define ERROR_SYMLINK_CLASS_DISABLED 0x000005B7
1093 #define ERROR_SYMLINK_NOT_SUPPORTED 0x000005B8
1094 #define ERROR_XML_PARSE_ERROR 0x000005B9
1095 #define ERROR_XMLDSIG_ERROR 0x000005BA
1096 #define ERROR_RESTART_APPLICATION 0x000005BB
1097 #define ERROR_WRONG_COMPARTMENT 0x000005BC
1098 #define ERROR_AUTHIP_FAILURE 0x000005BD
1099 #define ERROR_NO_NVRAM_RESOURCES 0x000005BE
1100 #define ERROR_NOT_GUI_PROCESS 0x000005BF
1101 #define ERROR_EVENTLOG_FILE_CORRUPT 0x000005DC
1102 #define ERROR_EVENTLOG_CANT_START 0x000005DD
1103 #define ERROR_LOG_FILE_FULL 0x000005DE
1104 #define ERROR_EVENTLOG_FILE_CHANGED 0x000005DF
1105 #define ERROR_INVALID_TASK_NAME 0x0000060E
1106 #define ERROR_INVALID_TASK_INDEX 0x0000060F
1107 #define ERROR_THREAD_ALREADY_IN_TASK 0x00000610
1108 #define ERROR_INSTALL_SERVICE_FAILURE 0x00000641
1109 #define ERROR_INSTALL_USEREXIT 0x00000642
1110 #define ERROR_INSTALL_FAILURE 0x00000643
1111 #define ERROR_INSTALL_SUSPEND 0x00000644
1112 #define ERROR_UNKNOWN_PRODUCT 0x00000645
1113 #define ERROR_UNKNOWN_FEATURE 0x00000646
1114 #define ERROR_UNKNOWN_COMPONENT 0x00000647
1115 #define ERROR_UNKNOWN_PROPERTY 0x00000648
1116 #define ERROR_INVALID_HANDLE_STATE 0x00000649
1117 #define ERROR_BAD_CONFIGURATION 0x0000064A
1118 #define ERROR_INDEX_ABSENT 0x0000064B
1119 #define ERROR_INSTALL_SOURCE_ABSENT 0x0000064C
1120 #define ERROR_INSTALL_PACKAGE_VERSION 0x0000064D
1121 #define ERROR_PRODUCT_UNINSTALLED 0x0000064E
1122 #define ERROR_BAD_QUERY_SYNTAX 0x0000064F
1123 #define ERROR_INVALID_FIELD 0x00000650
1124 #define ERROR_DEVICE_REMOVED 0x00000651
1125 #define ERROR_INSTALL_ALREADY_RUNNING 0x00000652
1126 #define ERROR_INSTALL_PACKAGE_OPEN_FAILED 0x00000653
1127 #define ERROR_INSTALL_PACKAGE_INVALID 0x00000654
1128 #define ERROR_INSTALL_UI_FAILURE 0x00000655
1129 #define ERROR_INSTALL_LOG_FAILURE 0x00000656
1130 #define ERROR_INSTALL_LANGUAGE_UNSUPPORTED 0x00000657
1131 #define ERROR_INSTALL_TRANSFORM_FAILURE 0x00000658
1132 #define ERROR_INSTALL_PACKAGE_REJECTED 0x00000659
1133 #define ERROR_FUNCTION_NOT_CALLED 0x0000065A
1134 #define ERROR_FUNCTION_FAILED 0x0000065B
1135 #define ERROR_INVALID_TABLE 0x0000065C
1136 #define ERROR_DATATYPE_MISMATCH 0x0000065D
1137 #define ERROR_UNSUPPORTED_TYPE 0x0000065E
1138 #define ERROR_CREATE_FAILED 0x0000065F
1139 #define ERROR_INSTALL_TEMP_UNWRITABLE 0x00000660
1140 #define ERROR_INSTALL_PLATFORM_UNSUPPORTED 0x00000661
1141 #define ERROR_INSTALL_NOTUSED 0x00000662
1142 #define ERROR_PATCH_PACKAGE_OPEN_FAILED 0x00000663
1143 #define ERROR_PATCH_PACKAGE_INVALID 0x00000664
1144 #define ERROR_PATCH_PACKAGE_UNSUPPORTED 0x00000665
1145 #define ERROR_PRODUCT_VERSION 0x00000666
1146 #define ERROR_INVALID_COMMAND_LINE 0x00000667
1147 #define ERROR_INSTALL_REMOTE_DISALLOWED 0x00000668
1148 #define ERROR_SUCCESS_REBOOT_INITIATED 0x00000669
1149 #define ERROR_PATCH_TARGET_NOT_FOUND 0x0000066A
1150 #define ERROR_PATCH_PACKAGE_REJECTED 0x0000066B
1151 #define ERROR_INSTALL_TRANSFORM_REJECTED 0x0000066C
1152 #define ERROR_INSTALL_REMOTE_PROHIBITED 0x0000066D
1153 #define ERROR_PATCH_REMOVAL_UNSUPPORTED 0x0000066E
1154 #define ERROR_UNKNOWN_PATCH 0x0000066F
1155 #define ERROR_PATCH_NO_SEQUENCE 0x00000670
1156 #define ERROR_PATCH_REMOVAL_DISALLOWED 0x00000671
1157 #define ERROR_INVALID_PATCH_XML 0x00000672
1158 #define ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT 0x00000673
1159 #define ERROR_INSTALL_SERVICE_SAFEBOOT 0x00000674
1160 #define ERROR_FAIL_FAST_EXCEPTION 0x00000675
1161 #define ERROR_INSTALL_REJECTED 0x00000676
1162 
1163 /* System Error Codes (1700-3999) */
1164 
1165 #define RPC_S_INVALID_STRING_BINDING 0x000006A4
1166 #define RPC_S_WRONG_KIND_OF_BINDING 0x000006A5
1167 #define RPC_S_INVALID_BINDING 0x000006A6
1168 #define RPC_S_PROTSEQ_NOT_SUPPORTED 0x000006A7
1169 #define RPC_S_INVALID_RPC_PROTSEQ 0x000006A8
1170 #define RPC_S_INVALID_STRING_UUID 0x000006A9
1171 #define RPC_S_INVALID_ENDPOINT_FORMAT 0x000006AA
1172 #define RPC_S_INVALID_NET_ADDR 0x000006AB
1173 #define RPC_S_NO_ENDPOINT_FOUND 0x000006AC
1174 #define RPC_S_INVALID_TIMEOUT 0x000006AD
1175 #define RPC_S_OBJECT_NOT_FOUND 0x000006AE
1176 #define RPC_S_ALREADY_REGISTERED 0x000006AF
1177 #define RPC_S_TYPE_ALREADY_REGISTERED 0x000006B0
1178 #define RPC_S_ALREADY_LISTENING 0x000006B1
1179 #define RPC_S_NO_PROTSEQS_REGISTERED 0x000006B2
1180 #define RPC_S_NOT_LISTENING 0x000006B3
1181 #define RPC_S_UNKNOWN_MGR_TYPE 0x000006B4
1182 #define RPC_S_UNKNOWN_IF 0x000006B5
1183 #define RPC_S_NO_BINDINGS 0x000006B6
1184 #define RPC_S_NO_PROTSEQS 0x000006B7
1185 #define RPC_S_CANT_CREATE_ENDPOINT 0x000006B8
1186 #define RPC_S_OUT_OF_RESOURCES 0x000006B9
1187 #define RPC_S_SERVER_UNAVAILABLE 0x000006BA
1188 #define RPC_S_SERVER_TOO_BUSY 0x000006BB
1189 #define RPC_S_INVALID_NETWORK_OPTIONS 0x000006BC
1190 #define RPC_S_NO_CALL_ACTIVE 0x000006BD
1191 #define RPC_S_CALL_FAILED 0x000006BE
1192 #define RPC_S_CALL_FAILED_DNE 0x000006BF
1193 #define RPC_S_PROTOCOL_ERROR 0x000006C0
1194 #define RPC_S_PROXY_ACCESS_DENIED 0x000006C1
1195 #define RPC_S_UNSUPPORTED_TRANS_SYN 0x000006C2
1196 #define RPC_S_UNSUPPORTED_TYPE 0x000006C4
1197 #define RPC_S_INVALID_TAG 0x000006C5
1198 #define RPC_S_INVALID_BOUND 0x000006C6
1199 #define RPC_S_NO_ENTRY_NAME 0x000006C7
1200 #define RPC_S_INVALID_NAME_SYNTAX 0x000006C8
1201 #define RPC_S_UNSUPPORTED_NAME_SYNTAX 0x000006C9
1202 #define RPC_S_UUID_NO_ADDRESS 0x000006CB
1203 #define RPC_S_DUPLICATE_ENDPOINT 0x000006CC
1204 #define RPC_S_UNKNOWN_AUTHN_TYPE 0x000006CD
1205 #define RPC_S_MAX_CALLS_TOO_SMALL 0x000006CE
1206 #define RPC_S_STRING_TOO_LONG 0x000006CF
1207 #define RPC_S_PROTSEQ_NOT_FOUND 0x000006D0
1208 #define RPC_S_PROCNUM_OUT_OF_RANGE 0x000006D1
1209 #define RPC_S_BINDING_HAS_NO_AUTH 0x000006D2
1210 #define RPC_S_UNKNOWN_AUTHN_SERVICE 0x000006D3
1211 #define RPC_S_UNKNOWN_AUTHN_LEVEL 0x000006D4
1212 #define RPC_S_INVALID_AUTH_IDENTITY 0x000006D5
1213 #define RPC_S_UNKNOWN_AUTHZ_SERVICE 0x000006D6
1214 #define EPT_S_INVALID_ENTRY 0x000006D7
1215 #define EPT_S_CANT_PERFORM_OP 0x000006D8
1216 #define EPT_S_NOT_REGISTERED 0x000006D9
1217 #define RPC_S_NOTHING_TO_EXPORT 0x000006DA
1218 #define RPC_S_INCOMPLETE_NAME 0x000006DB
1219 #define RPC_S_INVALID_VERS_OPTION 0x000006DC
1220 #define RPC_S_NO_MORE_MEMBERS 0x000006DD
1221 #define RPC_S_NOT_ALL_OBJS_UNEXPORTED 0x000006DE
1222 #define RPC_S_INTERFACE_NOT_FOUND 0x000006DF
1223 #define RPC_S_ENTRY_ALREADY_EXISTS 0x000006E0
1224 #define RPC_S_ENTRY_NOT_FOUND 0x000006E1
1225 #define RPC_S_NAME_SERVICE_UNAVAILABLE 0x000006E2
1226 #define RPC_S_INVALID_NAF_ID 0x000006E3
1227 #define RPC_S_CANNOT_SUPPORT 0x000006E4
1228 #define RPC_S_NO_CONTEXT_AVAILABLE 0x000006E5
1229 #define RPC_S_INTERNAL_ERROR 0x000006E6
1230 #define RPC_S_ZERO_DIVIDE 0x000006E7
1231 #define RPC_S_ADDRESS_ERROR 0x000006E8
1232 #define RPC_S_FP_DIV_ZERO 0x000006E9
1233 #define RPC_S_FP_UNDERFLOW 0x000006EA
1234 #define RPC_S_FP_OVERFLOW 0x000006EB
1235 #define RPC_X_NO_MORE_ENTRIES 0x000006EC
1236 #define RPC_X_SS_CHAR_TRANS_OPEN_FAIL 0x000006ED
1237 #define RPC_X_SS_CHAR_TRANS_SHORT_FILE 0x000006EE
1238 #define RPC_X_SS_IN_NULL_CONTEXT 0x000006EF
1239 #define RPC_X_SS_CONTEXT_DAMAGED 0x000006F1
1240 #define RPC_X_SS_HANDLES_MISMATCH 0x000006F2
1241 #define RPC_X_SS_CANNOT_GET_CALL_HANDLE 0x000006F3
1242 #define RPC_X_NULL_REF_POINTER 0x000006F4
1243 #define RPC_X_ENUM_VALUE_OUT_OF_RANGE 0x000006F5
1244 #define RPC_X_BYTE_COUNT_TOO_SMALL 0x000006F6
1245 #define RPC_X_BAD_STUB_DATA 0x000006F7
1246 #define ERROR_INVALID_USER_BUFFER 0x000006F8
1247 #define ERROR_UNRECOGNIZED_MEDIA 0x000006F9
1248 #define ERROR_NO_TRUST_LSA_SECRET 0x000006FA
1249 #define ERROR_NO_TRUST_SAM_ACCOUNT 0x000006FB
1250 #define ERROR_TRUSTED_DOMAIN_FAILURE 0x000006FC
1251 #define ERROR_TRUSTED_RELATIONSHIP_FAILURE 0x000006FD
1252 #define ERROR_TRUST_FAILURE 0x000006FE
1253 #define RPC_S_CALL_IN_PROGRESS 0x000006FF
1254 #define ERROR_NETLOGON_NOT_STARTED 0x00000700
1255 #define ERROR_ACCOUNT_EXPIRED 0x00000701
1256 #define ERROR_REDIRECTOR_HAS_OPEN_HANDLES 0x00000702
1257 #define ERROR_PRINTER_DRIVER_ALREADY_INSTALLED 0x00000703
1258 #define ERROR_UNKNOWN_PORT 0x00000704
1259 #define ERROR_UNKNOWN_PRINTER_DRIVER 0x00000705
1260 #define ERROR_UNKNOWN_PRINTPROCESSOR 0x00000706
1261 #define ERROR_INVALID_SEPARATOR_FILE 0x00000707
1262 #define ERROR_INVALID_PRIORITY 0x00000708
1263 #define ERROR_INVALID_PRINTER_NAME 0x00000709
1264 #define ERROR_PRINTER_ALREADY_EXISTS 0x0000070A
1265 #define ERROR_INVALID_PRINTER_COMMAND 0x0000070B
1266 #define ERROR_INVALID_DATATYPE 0x0000070C
1267 #define ERROR_INVALID_ENVIRONMENT 0x0000070D
1268 #define RPC_S_NO_MORE_BINDINGS 0x0000070E
1269 #define ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT 0x0000070F
1270 #define ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT 0x00000710
1271 #define ERROR_NOLOGON_SERVER_TRUST_ACCOUNT 0x00000711
1272 #define ERROR_DOMAIN_TRUST_INCONSISTENT 0x00000712
1273 #define ERROR_SERVER_HAS_OPEN_HANDLES 0x00000713
1274 #define ERROR_RESOURCE_DATA_NOT_FOUND 0x00000714
1275 #define ERROR_RESOURCE_TYPE_NOT_FOUND 0x00000715
1276 #define ERROR_RESOURCE_NAME_NOT_FOUND 0x00000716
1277 #define ERROR_RESOURCE_LANG_NOT_FOUND 0x00000717
1278 #define ERROR_NOT_ENOUGH_QUOTA 0x00000718
1279 #define RPC_S_NO_INTERFACES 0x00000719
1280 #define RPC_S_CALL_CANCELLED 0x0000071A
1281 #define RPC_S_BINDING_INCOMPLETE 0x0000071B
1282 #define RPC_S_COMM_FAILURE 0x0000071C
1283 #define RPC_S_UNSUPPORTED_AUTHN_LEVEL 0x0000071D
1284 #define RPC_S_NO_PRINC_NAME 0x0000071E
1285 #define RPC_S_NOT_RPC_ERROR 0x0000071F
1286 #define RPC_S_UUID_LOCAL_ONLY 0x00000720
1287 #define RPC_S_SEC_PKG_ERROR 0x00000721
1288 #define RPC_S_NOT_CANCELLED 0x00000722
1289 #define RPC_X_INVALID_ES_ACTION 0x00000723
1290 #define RPC_X_WRONG_ES_VERSION 0x00000724
1291 #define RPC_X_WRONG_STUB_VERSION 0x00000725
1292 #define RPC_X_INVALID_PIPE_OBJECT 0x00000726
1293 #define RPC_X_WRONG_PIPE_ORDER 0x00000727
1294 #define RPC_X_WRONG_PIPE_VERSION 0x00000728
1295 #define RPC_S_COOKIE_AUTH_FAILED 0x00000729
1296 #define RPC_S_GROUP_MEMBER_NOT_FOUND 0x0000076A
1297 #define EPT_S_CANT_CREATE 0x0000076B
1298 #define RPC_S_INVALID_OBJECT 0x0000076C
1299 #define ERROR_INVALID_TIME 0x0000076D
1300 #define ERROR_INVALID_FORM_NAME 0x0000076E
1301 #define ERROR_INVALID_FORM_SIZE 0x0000076F
1302 #define ERROR_ALREADY_WAITING 0x00000770
1303 #define ERROR_PRINTER_DELETED 0x00000771
1304 #define ERROR_INVALID_PRINTER_STATE 0x00000772
1305 #define ERROR_PASSWORD_MUST_CHANGE 0x00000773
1306 #define ERROR_DOMAIN_CONTROLLER_NOT_FOUND 0x00000774
1307 #define ERROR_ACCOUNT_LOCKED_OUT 0x00000775
1308 #define OR_INVALID_OXID 0x00000776
1309 #define OR_INVALID_OID 0x00000777
1310 #define OR_INVALID_SET 0x00000778
1311 #define RPC_S_SEND_INCOMPLETE 0x00000779
1312 #define RPC_S_INVALID_ASYNC_HANDLE 0x0000077A
1313 #define RPC_S_INVALID_ASYNC_CALL 0x0000077B
1314 #define RPC_X_PIPE_CLOSED 0x0000077C
1315 #define RPC_X_PIPE_DISCIPLINE_ERROR 0x0000077D
1316 #define RPC_X_PIPE_EMPTY 0x0000077E
1317 #define ERROR_NO_SITENAME 0x0000077F
1318 #define ERROR_CANT_ACCESS_FILE 0x00000780
1319 #define ERROR_CANT_RESOLVE_FILENAME 0x00000781
1320 #define RPC_S_ENTRY_TYPE_MISMATCH 0x00000782
1321 #define RPC_S_NOT_ALL_OBJS_EXPORTED 0x00000783
1322 #define RPC_S_INTERFACE_NOT_EXPORTED 0x00000784
1323 #define RPC_S_PROFILE_NOT_ADDED 0x00000785
1324 #define RPC_S_PRF_ELT_NOT_ADDED 0x00000786
1325 #define RPC_S_PRF_ELT_NOT_REMOVED 0x00000787
1326 #define RPC_S_GRP_ELT_NOT_ADDED 0x00000788
1327 #define RPC_S_GRP_ELT_NOT_REMOVED 0x00000789
1328 #define ERROR_KM_DRIVER_BLOCKED 0x0000078A
1329 #define ERROR_CONTEXT_EXPIRED 0x0000078B
1330 #define ERROR_PER_USER_TRUST_QUOTA_EXCEEDED 0x0000078C
1331 #define ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED 0x0000078D
1332 #define ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED 0x0000078E
1333 #define ERROR_AUTHENTICATION_FIREWALL_FAILED 0x0000078F
1334 #define ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED 0x00000790
1335 #define ERROR_NTLM_BLOCKED 0x00000791
1336 #define ERROR_PASSWORD_CHANGE_REQUIRED 0x00000792
1337 #define ERROR_INVALID_PIXEL_FORMAT 0x000007D0
1338 #define ERROR_BAD_DRIVER 0x000007D1
1339 #define ERROR_INVALID_WINDOW_STYLE 0x000007D2
1340 #define ERROR_METAFILE_NOT_SUPPORTED 0x000007D3
1341 #define ERROR_TRANSFORM_NOT_SUPPORTED 0x000007D4
1342 #define ERROR_CLIPPING_NOT_SUPPORTED 0x000007D5
1343 #define ERROR_INVALID_CMM 0x000007DA
1344 #define ERROR_INVALID_PROFILE 0x000007DB
1345 #define ERROR_TAG_NOT_FOUND 0x000007DC
1346 #define ERROR_TAG_NOT_PRESENT 0x000007DD
1347 #define ERROR_DUPLICATE_TAG 0x000007DE
1348 #define ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE 0x000007DF
1349 #define ERROR_PROFILE_NOT_FOUND 0x000007E0
1350 #define ERROR_INVALID_COLORSPACE 0x000007E1
1351 #define ERROR_ICM_NOT_ENABLED 0x000007E2
1352 #define ERROR_DELETING_ICM_XFORM 0x000007E3
1353 #define ERROR_INVALID_TRANSFORM 0x000007E4
1354 #define ERROR_COLORSPACE_MISMATCH 0x000007E5
1355 #define ERROR_INVALID_COLORINDEX 0x000007E6
1356 #define ERROR_PROFILE_DOES_NOT_MATCH_DEVICE 0x000007E7
1357 #define ERROR_CONNECTED_OTHER_PASSWORD 0x0000083C
1358 #define ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT 0x0000083D
1359 #define ERROR_BAD_USERNAME 0x0000089A
1360 #define ERROR_NOT_CONNECTED 0x000008CA
1361 #define ERROR_OPEN_FILES 0x00000961
1362 #define ERROR_ACTIVE_CONNECTIONS 0x00000962
1363 #define ERROR_DEVICE_IN_USE 0x00000964
1364 #define ERROR_UNKNOWN_PRINT_MONITOR 0x00000BB8
1365 #define ERROR_PRINTER_DRIVER_IN_USE 0x00000BB9
1366 #define ERROR_SPOOL_FILE_NOT_FOUND 0x00000BBA
1367 #define ERROR_SPL_NO_STARTDOC 0x00000BBB
1368 #define ERROR_SPL_NO_ADDJOB 0x00000BBC
1369 #define ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED 0x00000BBD
1370 #define ERROR_PRINT_MONITOR_ALREADY_INSTALLED 0x00000BBE
1371 #define ERROR_INVALID_PRINT_MONITOR 0x00000BBF
1372 #define ERROR_PRINT_MONITOR_IN_USE 0x00000BC0
1373 #define ERROR_PRINTER_HAS_JOBS_QUEUED 0x00000BC1
1374 #define ERROR_SUCCESS_REBOOT_REQUIRED 0x00000BC2
1375 #define ERROR_SUCCESS_RESTART_REQUIRED 0x00000BC3
1376 #define ERROR_PRINTER_NOT_FOUND 0x00000BC4
1377 #define ERROR_PRINTER_DRIVER_WARNED 0x00000BC5
1378 #define ERROR_PRINTER_DRIVER_BLOCKED 0x00000BC6
1379 #define ERROR_PRINTER_DRIVER_PACKAGE_IN_USE 0x00000BC7
1380 #define ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND 0x00000BC8
1381 #define ERROR_FAIL_REBOOT_REQUIRED 0x00000BC9
1382 #define ERROR_FAIL_REBOOT_INITIATED 0x00000BCA
1383 #define ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED 0x00000BCB
1384 #define ERROR_PRINT_JOB_RESTART_REQUIRED 0x00000BCC
1385 #define ERROR_INVALID_PRINTER_DRIVER_MANIFEST 0x00000BCD
1386 #define ERROR_PRINTER_NOT_SHAREABLE 0x00000BCE
1387 #define ERROR_REQUEST_PAUSED 0x00000BEA
1388 #define ERROR_IO_REISSUE_AS_CACHED 0x00000F6E
1389 
1390 /* System Error Codes (4000-5999) */
1391 
1392 #define ERROR_WINS_INTERNAL 0x00000FA0
1393 #define ERROR_CAN_NOT_DEL_LOCAL_WINS 0x00000FA1
1394 #define ERROR_STATIC_INIT 0x00000FA2
1395 #define ERROR_INC_BACKUP 0x00000FA3
1396 #define ERROR_FULL_BACKUP 0x00000FA4
1397 #define ERROR_REC_NON_EXISTENT 0x00000FA5
1398 #define ERROR_RPL_NOT_ALLOWED 0x00000FA6
1399 #define PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED 0x00000FD2
1400 #define PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO 0x00000FD3
1401 #define PEERDIST_ERROR_MISSING_DATA 0x00000FD4
1402 #define PEERDIST_ERROR_NO_MORE 0x00000FD5
1403 #define PEERDIST_ERROR_NOT_INITIALIZED 0x00000FD6
1404 #define PEERDIST_ERROR_ALREADY_INITIALIZED 0x00000FD7
1405 #define PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS 0x00000FD8
1406 #define PEERDIST_ERROR_INVALIDATED 0x00000FD9
1407 #define PEERDIST_ERROR_ALREADY_EXISTS 0x00000FDA
1408 #define PEERDIST_ERROR_OPERATION_NOTFOUND 0x00000FDB
1409 #define PEERDIST_ERROR_ALREADY_COMPLETED 0x00000FDC
1410 #define PEERDIST_ERROR_OUT_OF_BOUNDS 0x00000FDD
1411 #define PEERDIST_ERROR_VERSION_UNSUPPORTED 0x00000FDE
1412 #define PEERDIST_ERROR_INVALID_CONFIGURATION 0x00000FDF
1413 #define PEERDIST_ERROR_NOT_LICENSED 0x00000FE0
1414 #define PEERDIST_ERROR_SERVICE_UNAVAILABLE 0x00000FE1
1415 #define PEERDIST_ERROR_TRUST_FAILURE 0x00000FE2
1416 #define ERROR_DHCP_ADDRESS_CONFLICT 0x00001004
1417 #define ERROR_WMI_GUID_NOT_FOUND 0x00001068
1418 #define ERROR_WMI_INSTANCE_NOT_FOUND 0x00001069
1419 #define ERROR_WMI_ITEMID_NOT_FOUND 0x0000106A
1420 #define ERROR_WMI_TRY_AGAIN 0x0000106B
1421 #define ERROR_WMI_DP_NOT_FOUND 0x0000106C
1422 #define ERROR_WMI_UNRESOLVED_INSTANCE_REF 0x0000106D
1423 #define ERROR_WMI_ALREADY_ENABLED 0x0000106E
1424 #define ERROR_WMI_GUID_DISCONNECTED 0x0000106F
1425 #define ERROR_WMI_SERVER_UNAVAILABLE 0x00001070
1426 #define ERROR_WMI_DP_FAILED 0x00001071
1427 #define ERROR_WMI_INVALID_MOF 0x00001072
1428 #define ERROR_WMI_INVALID_REGINFO 0x00001073
1429 #define ERROR_WMI_ALREADY_DISABLED 0x00001074
1430 #define ERROR_WMI_READ_ONLY 0x00001075
1431 #define ERROR_WMI_SET_FAILURE 0x00001076
1432 #define ERROR_NOT_APPCONTAINER 0x0000109A
1433 #define ERROR_APPCONTAINER_REQUIRED 0x0000109B
1434 #define ERROR_NOT_SUPPORTED_IN_APPCONTAINER 0x0000109C
1435 #define ERROR_INVALID_PACKAGE_SID_LENGTH 0x0000109D
1436 #define ERROR_INVALID_MEDIA 0x000010CC
1437 #define ERROR_INVALID_LIBRARY 0x000010CD
1438 #define ERROR_INVALID_MEDIA_POOL 0x000010CE
1439 #define ERROR_DRIVE_MEDIA_MISMATCH 0x000010CF
1440 #define ERROR_MEDIA_OFFLINE 0x000010D0
1441 #define ERROR_LIBRARY_OFFLINE 0x000010D1
1442 #define ERROR_EMPTY 0x000010D2
1443 #define ERROR_NOT_EMPTY 0x000010D3
1444 #define ERROR_MEDIA_UNAVAILABLE 0x000010D4
1445 #define ERROR_RESOURCE_DISABLED 0x000010D5
1446 #define ERROR_INVALID_CLEANER 0x000010D6
1447 #define ERROR_UNABLE_TO_CLEAN 0x000010D7
1448 #define ERROR_OBJECT_NOT_FOUND 0x000010D8
1449 #define ERROR_DATABASE_FAILURE 0x000010D9
1450 #define ERROR_DATABASE_FULL 0x000010DA
1451 #define ERROR_MEDIA_INCOMPATIBLE 0x000010DB
1452 #define ERROR_RESOURCE_NOT_PRESENT 0x000010DC
1453 #define ERROR_INVALID_OPERATION 0x000010DD
1454 #define ERROR_MEDIA_NOT_AVAILABLE 0x000010DE
1455 #define ERROR_DEVICE_NOT_AVAILABLE 0x000010DF
1456 #define ERROR_REQUEST_REFUSED 0x000010E0
1457 #define ERROR_INVALID_DRIVE_OBJECT 0x000010E1
1458 #define ERROR_LIBRARY_FULL 0x000010E2
1459 #define ERROR_MEDIUM_NOT_ACCESSIBLE 0x000010E3
1460 #define ERROR_UNABLE_TO_LOAD_MEDIUM 0x000010E4
1461 #define ERROR_UNABLE_TO_INVENTORY_DRIVE 0x000010E5
1462 #define ERROR_UNABLE_TO_INVENTORY_SLOT 0x000010E6
1463 #define ERROR_UNABLE_TO_INVENTORY_TRANSPORT 0x000010E7
1464 #define ERROR_TRANSPORT_FULL 0x000010E8
1465 #define ERROR_CONTROLLING_IEPORT 0x000010E9
1466 #define ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA 0x000010EA
1467 #define ERROR_CLEANER_SLOT_SET 0x000010EB
1468 #define ERROR_CLEANER_SLOT_NOT_SET 0x000010EC
1469 #define ERROR_CLEANER_CARTRIDGE_SPENT 0x000010ED
1470 #define ERROR_UNEXPECTED_OMID 0x000010EE
1471 #define ERROR_CANT_DELETE_LAST_ITEM 0x000010EF
1472 #define ERROR_MESSAGE_EXCEEDS_MAX_SIZE 0x000010F0
1473 #define ERROR_VOLUME_CONTAINS_SYS_FILES 0x000010F1
1474 #define ERROR_INDIGENOUS_TYPE 0x000010F2
1475 #define ERROR_NO_SUPPORTING_DRIVES 0x000010F3
1476 #define ERROR_CLEANER_CARTRIDGE_INSTALLED 0x000010F4
1477 #define ERROR_IEPORT_FULL 0x000010F5
1478 #define ERROR_FILE_OFFLINE 0x000010FE
1479 #define ERROR_REMOTE_STORAGE_NOT_ACTIVE 0x000010FF
1480 #define ERROR_REMOTE_STORAGE_MEDIA_ERROR 0x00001100
1481 #define ERROR_NOT_A_REPARSE_POINT 0x00001126
1482 #define ERROR_REPARSE_ATTRIBUTE_CONFLICT 0x00001127
1483 #define ERROR_INVALID_REPARSE_DATA 0x00001128
1484 #define ERROR_REPARSE_TAG_INVALID 0x00001129
1485 #define ERROR_REPARSE_TAG_MISMATCH 0x0000112A
1486 #define ERROR_APP_DATA_NOT_FOUND 0x00001130
1487 #define ERROR_APP_DATA_EXPIRED 0x00001131
1488 #define ERROR_APP_DATA_CORRUPT 0x00001132
1489 #define ERROR_APP_DATA_LIMIT_EXCEEDED 0x00001133
1490 #define ERROR_APP_DATA_REBOOT_REQUIRED 0x00001134
1491 #define ERROR_SECUREBOOT_ROLLBACK_DETECTED 0x00001144
1492 #define ERROR_SECUREBOOT_POLICY_VIOLATION 0x00001145
1493 #define ERROR_SECUREBOOT_INVALID_POLICY 0x00001146
1494 #define ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND 0x00001147
1495 #define ERROR_SECUREBOOT_POLICY_NOT_SIGNED 0x00001148
1496 #define ERROR_SECUREBOOT_NOT_ENABLED 0x00001149
1497 #define ERROR_SECUREBOOT_FILE_REPLACED 0x0000114A
1498 #define ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED 0x00001158
1499 #define ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED 0x00001159
1500 #define ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED 0x0000115A
1501 #define ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED 0x0000115B
1502 #define ERROR_VOLUME_NOT_SIS_ENABLED 0x00001194
1503 #define ERROR_DEPENDENT_RESOURCE_EXISTS 0x00001389
1504 #define ERROR_DEPENDENCY_NOT_FOUND 0x0000138A
1505 #define ERROR_DEPENDENCY_ALREADY_EXISTS 0x0000138B
1506 #define ERROR_RESOURCE_NOT_ONLINE 0x0000138C
1507 #define ERROR_HOST_NODE_NOT_AVAILABLE 0x0000138D
1508 #define ERROR_RESOURCE_NOT_AVAILABLE 0x0000138E
1509 #define ERROR_RESOURCE_NOT_FOUND 0x0000138F
1510 #define ERROR_SHUTDOWN_CLUSTER 0x00001390
1511 #define ERROR_CANT_EVICT_ACTIVE_NODE 0x00001391
1512 #define ERROR_OBJECT_ALREADY_EXISTS 0x00001392
1513 #define ERROR_OBJECT_IN_LIST 0x00001393
1514 #define ERROR_GROUP_NOT_AVAILABLE 0x00001394
1515 #define ERROR_GROUP_NOT_FOUND 0x00001395
1516 #define ERROR_GROUP_NOT_ONLINE 0x00001396
1517 #define ERROR_HOST_NODE_NOT_RESOURCE_OWNER 0x00001397
1518 #define ERROR_HOST_NODE_NOT_GROUP_OWNER 0x00001398
1519 #define ERROR_RESMON_CREATE_FAILED 0x00001399
1520 #define ERROR_RESMON_ONLINE_FAILED 0x0000139A
1521 #define ERROR_RESOURCE_ONLINE 0x0000139B
1522 #define ERROR_QUORUM_RESOURCE 0x0000139C
1523 #define ERROR_NOT_QUORUM_CAPABLE 0x0000139D
1524 #define ERROR_CLUSTER_SHUTTING_DOWN 0x0000139E
1525 #define ERROR_INVALID_STATE 0x0000139F
1526 #define ERROR_RESOURCE_PROPERTIES_STORED 0x000013A0
1527 #define ERROR_NOT_QUORUM_CLASS 0x000013A1
1528 #define ERROR_CORE_RESOURCE 0x000013A2
1529 #define ERROR_QUORUM_RESOURCE_ONLINE_FAILED 0x000013A3
1530 #define ERROR_QUORUMLOG_OPEN_FAILED 0x000013A4
1531 #define ERROR_CLUSTERLOG_CORRUPT 0x000013A5
1532 #define ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE 0x000013A6
1533 #define ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE 0x000013A7
1534 #define ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND 0x000013A8
1535 #define ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE 0x000013A9
1536 #define ERROR_QUORUM_OWNER_ALIVE 0x000013AA
1537 #define ERROR_NETWORK_NOT_AVAILABLE 0x000013AB
1538 #define ERROR_NODE_NOT_AVAILABLE 0x000013AC
1539 #define ERROR_ALL_NODES_NOT_AVAILABLE 0x000013AD
1540 #define ERROR_RESOURCE_FAILED 0x000013AE
1541 #define ERROR_CLUSTER_INVALID_NODE 0x000013AF
1542 #define ERROR_CLUSTER_NODE_EXISTS 0x000013B0
1543 #define ERROR_CLUSTER_JOIN_IN_PROGRESS 0x000013B1
1544 #define ERROR_CLUSTER_NODE_NOT_FOUND 0x000013B2
1545 #define ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND 0x000013B3
1546 #define ERROR_CLUSTER_NETWORK_EXISTS 0x000013B4
1547 #define ERROR_CLUSTER_NETWORK_NOT_FOUND 0x000013B5
1548 #define ERROR_CLUSTER_NETINTERFACE_EXISTS 0x000013B6
1549 #define ERROR_CLUSTER_NETINTERFACE_NOT_FOUND 0x000013B7
1550 #define ERROR_CLUSTER_INVALID_REQUEST 0x000013B8
1551 #define ERROR_CLUSTER_INVALID_NETWORK_PROVIDER 0x000013B9
1552 #define ERROR_CLUSTER_NODE_DOWN 0x000013BA
1553 #define ERROR_CLUSTER_NODE_UNREACHABLE 0x000013BB
1554 #define ERROR_CLUSTER_NODE_NOT_MEMBER 0x000013BC
1555 #define ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS 0x000013BD
1556 #define ERROR_CLUSTER_INVALID_NETWORK 0x000013BE
1557 #define ERROR_CLUSTER_NODE_UP 0x000013C0
1558 #define ERROR_CLUSTER_IPADDR_IN_USE 0x000013C1
1559 #define ERROR_CLUSTER_NODE_NOT_PAUSED 0x000013C2
1560 #define ERROR_CLUSTER_NO_SECURITY_CONTEXT 0x000013C3
1561 #define ERROR_CLUSTER_NETWORK_NOT_INTERNAL 0x000013C4
1562 #define ERROR_CLUSTER_NODE_ALREADY_UP 0x000013C5
1563 #define ERROR_CLUSTER_NODE_ALREADY_DOWN 0x000013C6
1564 #define ERROR_CLUSTER_NETWORK_ALREADY_ONLINE 0x000013C7
1565 #define ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE 0x000013C8
1566 #define ERROR_CLUSTER_NODE_ALREADY_MEMBER 0x000013C9
1567 #define ERROR_CLUSTER_LAST_INTERNAL_NETWORK 0x000013CA
1568 #define ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS 0x000013CB
1569 #define ERROR_INVALID_OPERATION_ON_QUORUM 0x000013CC
1570 #define ERROR_DEPENDENCY_NOT_ALLOWED 0x000013CD
1571 #define ERROR_CLUSTER_NODE_PAUSED 0x000013CE
1572 #define ERROR_NODE_CANT_HOST_RESOURCE 0x000013CF
1573 #define ERROR_CLUSTER_NODE_NOT_READY 0x000013D0
1574 #define ERROR_CLUSTER_NODE_SHUTTING_DOWN 0x000013D1
1575 #define ERROR_CLUSTER_JOIN_ABORTED 0x000013D2
1576 #define ERROR_CLUSTER_INCOMPATIBLE_VERSIONS 0x000013D3
1577 #define ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED 0x000013D4
1578 #define ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED 0x000013D5
1579 #define ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND 0x000013D6
1580 #define ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED 0x000013D7
1581 #define ERROR_CLUSTER_RESNAME_NOT_FOUND 0x000013D8
1582 #define ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED 0x000013D9
1583 #define ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST 0x000013DA
1584 #define ERROR_CLUSTER_DATABASE_SEQMISMATCH 0x000013DB
1585 #define ERROR_RESMON_INVALID_STATE 0x000013DC
1586 #define ERROR_CLUSTER_GUM_NOT_LOCKER 0x000013DD
1587 #define ERROR_QUORUM_DISK_NOT_FOUND 0x000013DE
1588 #define ERROR_DATABASE_BACKUP_CORRUPT 0x000013DF
1589 #define ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT 0x000013E0
1590 #define ERROR_RESOURCE_PROPERTY_UNCHANGEABLE 0x000013E1
1591 #define ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE 0x00001702
1592 #define ERROR_CLUSTER_QUORUMLOG_NOT_FOUND 0x00001703
1593 #define ERROR_CLUSTER_MEMBERSHIP_HALT 0x00001704
1594 #define ERROR_CLUSTER_INSTANCE_ID_MISMATCH 0x00001705
1595 #define ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP 0x00001706
1596 #define ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH 0x00001707
1597 #define ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP 0x00001708
1598 #define ERROR_CLUSTER_PARAMETER_MISMATCH 0x00001709
1599 #define ERROR_NODE_CANNOT_BE_CLUSTERED 0x0000170A
1600 #define ERROR_CLUSTER_WRONG_OS_VERSION 0x0000170B
1601 #define ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME 0x0000170C
1602 #define ERROR_CLUSCFG_ALREADY_COMMITTED 0x0000170D
1603 #define ERROR_CLUSCFG_ROLLBACK_FAILED 0x0000170E
1604 #define ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT 0x0000170F
1605 #define ERROR_CLUSTER_OLD_VERSION 0x00001710
1606 #define ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME 0x00001711
1607 #define ERROR_CLUSTER_NO_NET_ADAPTERS 0x00001712
1608 #define ERROR_CLUSTER_POISONED 0x00001713
1609 #define ERROR_CLUSTER_GROUP_MOVING 0x00001714
1610 #define ERROR_CLUSTER_RESOURCE_TYPE_BUSY 0x00001715
1611 #define ERROR_RESOURCE_CALL_TIMED_OUT 0x00001716
1612 #define ERROR_INVALID_CLUSTER_IPV6_ADDRESS 0x00001717
1613 #define ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION 0x00001718
1614 #define ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS 0x00001719
1615 #define ERROR_CLUSTER_PARTIAL_SEND 0x0000171A
1616 #define ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION 0x0000171B
1617 #define ERROR_CLUSTER_INVALID_STRING_TERMINATION 0x0000171C
1618 #define ERROR_CLUSTER_INVALID_STRING_FORMAT 0x0000171D
1619 #define ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS 0x0000171E
1620 #define ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS 0x0000171F
1621 #define ERROR_CLUSTER_NULL_DATA 0x00001720
1622 #define ERROR_CLUSTER_PARTIAL_READ 0x00001721
1623 #define ERROR_CLUSTER_PARTIAL_WRITE 0x00001722
1624 #define ERROR_CLUSTER_CANT_DESERIALIZE_DATA 0x00001723
1625 #define ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT 0x00001724
1626 #define ERROR_CLUSTER_NO_QUORUM 0x00001725
1627 #define ERROR_CLUSTER_INVALID_IPV6_NETWORK 0x00001726
1628 #define ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK 0x00001727
1629 #define ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP 0x00001728
1630 #define ERROR_DEPENDENCY_TREE_TOO_COMPLEX 0x00001729
1631 #define ERROR_EXCEPTION_IN_RESOURCE_CALL 0x0000172A
1632 #define ERROR_CLUSTER_RHS_FAILED_INITIALIZATION 0x0000172B
1633 #define ERROR_CLUSTER_NOT_INSTALLED 0x0000172C
1634 #define ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE 0x0000172D
1635 #define ERROR_CLUSTER_MAX_NODES_IN_CLUSTER 0x0000172E
1636 #define ERROR_CLUSTER_TOO_MANY_NODES 0x0000172F
1637 #define ERROR_CLUSTER_OBJECT_ALREADY_USED 0x00001730
1638 #define ERROR_NONCORE_GROUPS_FOUND 0x00001731
1639 #define ERROR_FILE_SHARE_RESOURCE_CONFLICT 0x00001732
1640 #define ERROR_CLUSTER_EVICT_INVALID_REQUEST 0x00001733
1641 #define ERROR_CLUSTER_SINGLETON_RESOURCE 0x00001734
1642 #define ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE 0x00001735
1643 #define ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED 0x00001736
1644 #define ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR 0x00001737
1645 #define ERROR_CLUSTER_GROUP_BUSY 0x00001738
1646 #define ERROR_CLUSTER_NOT_SHARED_VOLUME 0x00001739
1647 #define ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR 0x0000173A
1648 #define ERROR_CLUSTER_SHARED_VOLUMES_IN_USE 0x0000173B
1649 #define ERROR_CLUSTER_USE_SHARED_VOLUMES_API 0x0000173C
1650 #define ERROR_CLUSTER_BACKUP_IN_PROGRESS 0x0000173D
1651 #define ERROR_NON_CSV_PATH 0x0000173E
1652 #define ERROR_CSV_VOLUME_NOT_LOCAL 0x0000173F
1653 #define ERROR_CLUSTER_WATCHDOG_TERMINATING 0x00001740
1654 #define ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES 0x00001741
1655 #define ERROR_CLUSTER_INVALID_NODE_WEIGHT 0x00001742
1656 #define ERROR_CLUSTER_RESOURCE_VETOED_CALL 0x00001743
1657 #define ERROR_RESMON_SYSTEM_RESOURCES_LACKING 0x00001744
1658 #define ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION 0x00001745
1659 #define ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE 0x00001746
1660 #define ERROR_CLUSTER_GROUP_QUEUED 0x00001747
1661 #define ERROR_CLUSTER_RESOURCE_LOCKED_STATUS 0x00001748
1662 #define ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED 0x00001749
1663 #define ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS 0x0000174A
1664 #define ERROR_CLUSTER_DISK_NOT_CONNECTED 0x0000174B
1665 #define ERROR_DISK_NOT_CSV_CAPABLE 0x0000174C
1666 #define ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE 0x0000174D
1667 #define ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED 0x0000174E
1668 #define ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED 0x0000174F
1669 #define ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES 0x00001750
1670 #define ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES 0x00001751
1671 #define ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE 0x00001752
1672 #define ERROR_CLUSTER_AFFINITY_CONFLICT 0x00001753
1673 #define ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE 0x00001754
1674 
1675 /* System Error Codes (6000-8199) */
1676 
1677 #define ERROR_ENCRYPTION_FAILED 0x00001770
1678 #define ERROR_DECRYPTION_FAILED 0x00001771
1679 #define ERROR_FILE_ENCRYPTED 0x00001772
1680 #define ERROR_NO_RECOVERY_POLICY 0x00001773
1681 #define ERROR_NO_EFS 0x00001774
1682 #define ERROR_WRONG_EFS 0x00001775
1683 #define ERROR_NO_USER_KEYS 0x00001776
1684 #define ERROR_FILE_NOT_ENCRYPTED 0x00001777
1685 #define ERROR_NOT_EXPORT_FORMAT 0x00001778
1686 #define ERROR_FILE_READ_ONLY 0x00001779
1687 #define ERROR_DIR_EFS_DISALLOWED 0x0000177A
1688 #define ERROR_EFS_SERVER_NOT_TRUSTED 0x0000177B
1689 #define ERROR_BAD_RECOVERY_POLICY 0x0000177C
1690 #define ERROR_EFS_ALG_BLOB_TOO_BIG 0x0000177D
1691 #define ERROR_VOLUME_NOT_SUPPORT_EFS 0x0000177E
1692 #define ERROR_EFS_DISABLED 0x0000177F
1693 #define ERROR_EFS_VERSION_NOT_SUPPORT 0x00001780
1694 #define ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE 0x00001781
1695 #define ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER 0x00001782
1696 #define ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE 0x00001783
1697 #define ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE 0x00001784
1698 #define ERROR_CS_ENCRYPTION_FILE_NOT_CSE 0x00001785
1699 #define ERROR_ENCRYPTION_POLICY_DENIES_OPERATION 0x00001786
1700 #define ERROR_NO_BROWSER_SERVERS_FOUND 0x000017E6
1701 #define SCHED_E_SERVICE_NOT_LOCALSYSTEM 0x00001838
1702 #define ERROR_LOG_SECTOR_INVALID 0x000019C8
1703 #define ERROR_LOG_SECTOR_PARITY_INVALID 0x000019C9
1704 #define ERROR_LOG_SECTOR_REMAPPED 0x000019CA
1705 #define ERROR_LOG_BLOCK_INCOMPLETE 0x000019CB
1706 #define ERROR_LOG_INVALID_RANGE 0x000019CC
1707 #define ERROR_LOG_BLOCKS_EXHAUSTED 0x000019CD
1708 #define ERROR_LOG_READ_CONTEXT_INVALID 0x000019CE
1709 #define ERROR_LOG_RESTART_INVALID 0x000019CF
1710 #define ERROR_LOG_BLOCK_VERSION 0x000019D0
1711 #define ERROR_LOG_BLOCK_INVALID 0x000019D1
1712 #define ERROR_LOG_READ_MODE_INVALID 0x000019D2
1713 #define ERROR_LOG_NO_RESTART 0x000019D3
1714 #define ERROR_LOG_METADATA_CORRUPT 0x000019D4
1715 #define ERROR_LOG_METADATA_INVALID 0x000019D5
1716 #define ERROR_LOG_METADATA_INCONSISTENT 0x000019D6
1717 #define ERROR_LOG_RESERVATION_INVALID 0x000019D7
1718 #define ERROR_LOG_CANT_DELETE 0x000019D8
1719 #define ERROR_LOG_CONTAINER_LIMIT_EXCEEDED 0x000019D9
1720 #define ERROR_LOG_START_OF_LOG 0x000019DA
1721 #define ERROR_LOG_POLICY_ALREADY_INSTALLED 0x000019DB
1722 #define ERROR_LOG_POLICY_NOT_INSTALLED 0x000019DC
1723 #define ERROR_LOG_POLICY_INVALID 0x000019DD
1724 #define ERROR_LOG_POLICY_CONFLICT 0x000019DE
1725 #define ERROR_LOG_PINNED_ARCHIVE_TAIL 0x000019DF
1726 #define ERROR_LOG_RECORD_NONEXISTENT 0x000019E0
1727 #define ERROR_LOG_RECORDS_RESERVED_INVALID 0x000019E1
1728 #define ERROR_LOG_SPACE_RESERVED_INVALID 0x000019E2
1729 #define ERROR_LOG_TAIL_INVALID 0x000019E3
1730 #define ERROR_LOG_FULL 0x000019E4
1731 #define ERROR_COULD_NOT_RESIZE_LOG 0x000019E5
1732 #define ERROR_LOG_MULTIPLEXED 0x000019E6
1733 #define ERROR_LOG_DEDICATED 0x000019E7
1734 #define ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS 0x000019E8
1735 #define ERROR_LOG_ARCHIVE_IN_PROGRESS 0x000019E9
1736 #define ERROR_LOG_EPHEMERAL 0x000019EA
1737 #define ERROR_LOG_NOT_ENOUGH_CONTAINERS 0x000019EB
1738 #define ERROR_LOG_CLIENT_ALREADY_REGISTERED 0x000019EC
1739 #define ERROR_LOG_CLIENT_NOT_REGISTERED 0x000019ED
1740 #define ERROR_LOG_FULL_HANDLER_IN_PROGRESS 0x000019EE
1741 #define ERROR_LOG_CONTAINER_READ_FAILED 0x000019EF
1742 #define ERROR_LOG_CONTAINER_WRITE_FAILED 0x000019F0
1743 #define ERROR_LOG_CONTAINER_OPEN_FAILED 0x000019F1
1744 #define ERROR_LOG_CONTAINER_STATE_INVALID 0x000019F2
1745 #define ERROR_LOG_STATE_INVALID 0x000019F3
1746 #define ERROR_LOG_PINNED 0x000019F4
1747 #define ERROR_LOG_METADATA_FLUSH_FAILED 0x000019F5
1748 #define ERROR_LOG_INCONSISTENT_SECURITY 0x000019F6
1749 #define ERROR_LOG_APPENDED_FLUSH_FAILED 0x000019F7
1750 #define ERROR_LOG_PINNED_RESERVATION 0x000019F8
1751 #define ERROR_INVALID_TRANSACTION 0x00001A2C
1752 #define ERROR_TRANSACTION_NOT_ACTIVE 0x00001A2D
1753 #define ERROR_TRANSACTION_REQUEST_NOT_VALID 0x00001A2E
1754 #define ERROR_TRANSACTION_NOT_REQUESTED 0x00001A2F
1755 #define ERROR_TRANSACTION_ALREADY_ABORTED 0x00001A30
1756 #define ERROR_TRANSACTION_ALREADY_COMMITTED 0x00001A31
1757 #define ERROR_TM_INITIALIZATION_FAILED 0x00001A32
1758 #define ERROR_RESOURCEMANAGER_READ_ONLY 0x00001A33
1759 #define ERROR_TRANSACTION_NOT_JOINED 0x00001A34
1760 #define ERROR_TRANSACTION_SUPERIOR_EXISTS 0x00001A35
1761 #define ERROR_CRM_PROTOCOL_ALREADY_EXISTS 0x00001A36
1762 #define ERROR_TRANSACTION_PROPAGATION_FAILED 0x00001A37
1763 #define ERROR_CRM_PROTOCOL_NOT_FOUND 0x00001A38
1764 #define ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER 0x00001A39
1765 #define ERROR_CURRENT_TRANSACTION_NOT_VALID 0x00001A3A
1766 #define ERROR_TRANSACTION_NOT_FOUND 0x00001A3B
1767 #define ERROR_RESOURCEMANAGER_NOT_FOUND 0x00001A3C
1768 #define ERROR_ENLISTMENT_NOT_FOUND 0x00001A3D
1769 #define ERROR_TRANSACTIONMANAGER_NOT_FOUND 0x00001A3E
1770 #define ERROR_TRANSACTIONMANAGER_NOT_ONLINE 0x00001A3F
1771 #define ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION 0x00001A40
1772 #define ERROR_TRANSACTION_NOT_ROOT 0x00001A41
1773 #define ERROR_TRANSACTION_OBJECT_EXPIRED 0x00001A42
1774 #define ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED 0x00001A43
1775 #define ERROR_TRANSACTION_RECORD_TOO_LONG 0x00001A44
1776 #define ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED 0x00001A45
1777 #define ERROR_TRANSACTION_INTEGRITY_VIOLATED 0x00001A46
1778 #define ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH 0x00001A47
1779 #define ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT 0x00001A48
1780 #define ERROR_TRANSACTION_MUST_WRITETHROUGH 0x00001A49
1781 #define ERROR_TRANSACTION_NO_SUPERIOR 0x00001A4A
1782 #define ERROR_HEURISTIC_DAMAGE_POSSIBLE 0x00001A4B
1783 #define ERROR_TRANSACTIONAL_CONFLICT 0x00001A90
1784 #define ERROR_RM_NOT_ACTIVE 0x00001A91
1785 #define ERROR_RM_METADATA_CORRUPT 0x00001A92
1786 #define ERROR_DIRECTORY_NOT_RM 0x00001A93
1787 #define ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE 0x00001A95
1788 #define ERROR_LOG_RESIZE_INVALID_SIZE 0x00001A96
1789 #define ERROR_OBJECT_NO_LONGER_EXISTS 0x00001A97
1790 #define ERROR_STREAM_MINIVERSION_NOT_FOUND 0x00001A98
1791 #define ERROR_STREAM_MINIVERSION_NOT_VALID 0x00001A99
1792 #define ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION 0x00001A9A
1793 #define ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT 0x00001A9B
1794 #define ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS 0x00001A9C
1795 #define ERROR_REMOTE_FILE_VERSION_MISMATCH 0x00001A9E
1796 #define ERROR_HANDLE_NO_LONGER_VALID 0x00001A9F
1797 #define ERROR_NO_TXF_METADATA 0x00001AA0
1798 #define ERROR_LOG_CORRUPTION_DETECTED 0x00001AA1
1799 #define ERROR_CANT_RECOVER_WITH_HANDLE_OPEN 0x00001AA2
1800 #define ERROR_RM_DISCONNECTED 0x00001AA3
1801 #define ERROR_ENLISTMENT_NOT_SUPERIOR 0x00001AA4
1802 #define ERROR_RECOVERY_NOT_NEEDED 0x00001AA5
1803 #define ERROR_RM_ALREADY_STARTED 0x00001AA6
1804 #define ERROR_FILE_IDENTITY_NOT_PERSISTENT 0x00001AA7
1805 #define ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY 0x00001AA8
1806 #define ERROR_CANT_CROSS_RM_BOUNDARY 0x00001AA9
1807 #define ERROR_TXF_DIR_NOT_EMPTY 0x00001AAA
1808 #define ERROR_INDOUBT_TRANSACTIONS_EXIST 0x00001AAB
1809 #define ERROR_TM_VOLATILE 0x00001AAC
1810 #define ERROR_ROLLBACK_TIMER_EXPIRED 0x00001AAD
1811 #define ERROR_TXF_ATTRIBUTE_CORRUPT 0x00001AAE
1812 #define ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION 0x00001AAF
1813 #define ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED 0x00001AB0
1814 #define ERROR_LOG_GROWTH_FAILED 0x00001AB1
1815 #define ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE 0x00001AB2
1816 #define ERROR_TXF_METADATA_ALREADY_PRESENT 0x00001AB3
1817 #define ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET 0x00001AB4
1818 #define ERROR_TRANSACTION_REQUIRED_PROMOTION 0x00001AB5
1819 #define ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION 0x00001AB6
1820 #define ERROR_TRANSACTIONS_NOT_FROZEN 0x00001AB7
1821 #define ERROR_TRANSACTION_FREEZE_IN_PROGRESS 0x00001AB8
1822 #define ERROR_NOT_SNAPSHOT_VOLUME 0x00001AB9
1823 #define ERROR_NO_SAVEPOINT_WITH_OPEN_FILES 0x00001ABA
1824 #define ERROR_DATA_LOST_REPAIR 0x00001ABB
1825 #define ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION 0x00001ABC
1826 #define ERROR_TM_IDENTITY_MISMATCH 0x00001ABD
1827 #define ERROR_FLOATED_SECTION 0x00001ABE
1828 #define ERROR_CANNOT_ACCEPT_TRANSACTED_WORK 0x00001ABF
1829 #define ERROR_CANNOT_ABORT_TRANSACTIONS 0x00001AC0
1830 #define ERROR_BAD_CLUSTERS 0x00001AC1
1831 #define ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION 0x00001AC2
1832 #define ERROR_VOLUME_DIRTY 0x00001AC3
1833 #define ERROR_NO_LINK_TRACKING_IN_TRANSACTION 0x00001AC4
1834 #define ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION 0x00001AC5
1835 #define ERROR_EXPIRED_HANDLE 0x00001AC6
1836 #define ERROR_TRANSACTION_NOT_ENLISTED 0x00001AC7
1837 #define ERROR_CTX_WINSTATION_NAME_INVALID 0x00001B59
1838 #define ERROR_CTX_INVALID_PD 0x00001B5A
1839 #define ERROR_CTX_PD_NOT_FOUND 0x00001B5B
1840 #define ERROR_CTX_WD_NOT_FOUND 0x00001B5C
1841 #define ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY 0x00001B5D
1842 #define ERROR_CTX_SERVICE_NAME_COLLISION 0x00001B5E
1843 #define ERROR_CTX_CLOSE_PENDING 0x00001B5F
1844 #define ERROR_CTX_NO_OUTBUF 0x00001B60
1845 #define ERROR_CTX_MODEM_INF_NOT_FOUND 0x00001B61
1846 #define ERROR_CTX_INVALID_MODEMNAME 0x00001B62
1847 #define ERROR_CTX_MODEM_RESPONSE_ERROR 0x00001B63
1848 #define ERROR_CTX_MODEM_RESPONSE_TIMEOUT 0x00001B64
1849 #define ERROR_CTX_MODEM_RESPONSE_NO_CARRIER 0x00001B65
1850 #define ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE 0x00001B66
1851 #define ERROR_CTX_MODEM_RESPONSE_BUSY 0x00001B67
1852 #define ERROR_CTX_MODEM_RESPONSE_VOICE 0x00001B68
1853 #define ERROR_CTX_TD_ERROR 0x00001B69
1854 #define ERROR_CTX_WINSTATION_NOT_FOUND 0x00001B6E
1855 #define ERROR_CTX_WINSTATION_ALREADY_EXISTS 0x00001B6F
1856 #define ERROR_CTX_WINSTATION_BUSY 0x00001B70
1857 #define ERROR_CTX_BAD_VIDEO_MODE 0x00001B71
1858 #define ERROR_CTX_GRAPHICS_INVALID 0x00001B7B
1859 #define ERROR_CTX_LOGON_DISABLED 0x00001B7D
1860 #define ERROR_CTX_NOT_CONSOLE 0x00001B7E
1861 #define ERROR_CTX_CLIENT_QUERY_TIMEOUT 0x00001B80
1862 #define ERROR_CTX_CONSOLE_DISCONNECT 0x00001B81
1863 #define ERROR_CTX_CONSOLE_CONNECT 0x00001B82
1864 #define ERROR_CTX_SHADOW_DENIED 0x00001B84
1865 #define ERROR_CTX_WINSTATION_ACCESS_DENIED 0x00001B85
1866 #define ERROR_CTX_INVALID_WD 0x00001B89
1867 #define ERROR_CTX_SHADOW_INVALID 0x00001B8A
1868 #define ERROR_CTX_SHADOW_DISABLED 0x00001B8B
1869 #define ERROR_CTX_CLIENT_LICENSE_IN_USE 0x00001B8C
1870 #define ERROR_CTX_CLIENT_LICENSE_NOT_SET 0x00001B8D
1871 #define ERROR_CTX_LICENSE_NOT_AVAILABLE 0x00001B8E
1872 #define ERROR_CTX_LICENSE_CLIENT_INVALID 0x00001B8F
1873 #define ERROR_CTX_LICENSE_EXPIRED 0x00001B90
1874 #define ERROR_CTX_SHADOW_NOT_RUNNING 0x00001B91
1875 #define ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE 0x00001B92
1876 #define ERROR_ACTIVATION_COUNT_EXCEEDED 0x00001B93
1877 #define ERROR_CTX_WINSTATIONS_DISABLED 0x00001B94
1878 #define ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED 0x00001B95
1879 #define ERROR_CTX_SESSION_IN_USE 0x00001B96
1880 #define ERROR_CTX_NO_FORCE_LOGOFF 0x00001B97
1881 #define ERROR_CTX_ACCOUNT_RESTRICTION 0x00001B98
1882 #define ERROR_RDP_PROTOCOL_ERROR 0x00001B99
1883 #define ERROR_CTX_CDM_CONNECT 0x00001B9A
1884 #define ERROR_CTX_CDM_DISCONNECT 0x00001B9B
1885 #define ERROR_CTX_SECURITY_LAYER_ERROR 0x00001B9C
1886 #define ERROR_TS_INCOMPATIBLE_SESSIONS 0x00001B9D
1887 #define ERROR_TS_VIDEO_SUBSYSTEM_ERROR 0x00001B9E
1888 #define FRS_ERR_INVALID_API_SEQUENCE 0x00001F41
1889 #define FRS_ERR_STARTING_SERVICE 0x00001F42
1890 #define FRS_ERR_STOPPING_SERVICE 0x00001F43
1891 #define FRS_ERR_INTERNAL_API 0x00001F44
1892 #define FRS_ERR_INTERNAL 0x00001F45
1893 #define FRS_ERR_SERVICE_COMM 0x00001F46
1894 #define FRS_ERR_INSUFFICIENT_PRIV 0x00001F47
1895 #define FRS_ERR_AUTHENTICATION 0x00001F48
1896 #define FRS_ERR_PARENT_INSUFFICIENT_PRIV 0x00001F49
1897 #define FRS_ERR_PARENT_AUTHENTICATION 0x00001F4A
1898 #define FRS_ERR_CHILD_TO_PARENT_COMM 0x00001F4B
1899 #define FRS_ERR_PARENT_TO_CHILD_COMM 0x00001F4C
1900 #define FRS_ERR_SYSVOL_POPULATE 0x00001F4D
1901 #define FRS_ERR_SYSVOL_POPULATE_TIMEOUT 0x00001F4E
1902 #define FRS_ERR_SYSVOL_IS_BUSY 0x00001F4F
1903 #define FRS_ERR_SYSVOL_DEMOTE 0x00001F50
1904 #define FRS_ERR_INVALID_SERVICE_PARAMETER 0x00001F51
1905 
1906 /* System Error Codes (8200-8999) */
1907 
1908 #define ERROR_DS_NOT_INSTALLED 0x00002008
1909 #define ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY 0x00002009
1910 #define ERROR_DS_NO_ATTRIBUTE_OR_VALUE 0x0000200A
1911 #define ERROR_DS_INVALID_ATTRIBUTE_SYNTAX 0x0000200B
1912 #define ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED 0x0000200C
1913 #define ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS 0x0000200D
1914 #define ERROR_DS_BUSY 0x0000200E
1915 #define ERROR_DS_UNAVAILABLE 0x0000200F
1916 #define ERROR_DS_NO_RIDS_ALLOCATED 0x00002010
1917 #define ERROR_DS_NO_MORE_RIDS 0x00002011
1918 #define ERROR_DS_INCORRECT_ROLE_OWNER 0x00002012
1919 #define ERROR_DS_RIDMGR_INIT_ERROR 0x00002013
1920 #define ERROR_DS_OBJ_CLASS_VIOLATION 0x00002014
1921 #define ERROR_DS_CANT_ON_NON_LEAF 0x00002015
1922 #define ERROR_DS_CANT_ON_RDN 0x00002016
1923 #define ERROR_DS_CANT_MOD_OBJ_CLASS 0x00002017
1924 #define ERROR_DS_CROSS_DOM_MOVE_ERROR 0x00002018
1925 #define ERROR_DS_GC_NOT_AVAILABLE 0x00002019
1926 #define ERROR_SHARED_POLICY 0x0000201A
1927 #define ERROR_POLICY_OBJECT_NOT_FOUND 0x0000201B
1928 #define ERROR_POLICY_ONLY_IN_DS 0x0000201C
1929 #define ERROR_PROMOTION_ACTIVE 0x0000201D
1930 #define ERROR_NO_PROMOTION_ACTIVE 0x0000201E
1931 #define ERROR_DS_OPERATIONS_ERROR 0x00002020
1932 #define ERROR_DS_PROTOCOL_ERROR 0x00002021
1933 #define ERROR_DS_TIMELIMIT_EXCEEDED 0x00002022
1934 #define ERROR_DS_SIZELIMIT_EXCEEDED 0x00002023
1935 #define ERROR_DS_ADMIN_LIMIT_EXCEEDED 0x00002024
1936 #define ERROR_DS_COMPARE_FALSE 0x00002025
1937 #define ERROR_DS_COMPARE_TRUE 0x00002026
1938 #define ERROR_DS_AUTH_METHOD_NOT_SUPPORTED 0x00002027
1939 #define ERROR_DS_STRONG_AUTH_REQUIRED 0x00002028
1940 #define ERROR_DS_INAPPROPRIATE_AUTH 0x00002029
1941 #define ERROR_DS_AUTH_UNKNOWN 0x0000202A
1942 #define ERROR_DS_REFERRAL 0x0000202B
1943 #define ERROR_DS_UNAVAILABLE_CRIT_EXTENSION 0x0000202C
1944 #define ERROR_DS_CONFIDENTIALITY_REQUIRED 0x0000202D
1945 #define ERROR_DS_INAPPROPRIATE_MATCHING 0x0000202E
1946 #define ERROR_DS_CONSTRAINT_VIOLATION 0x0000202F
1947 #define ERROR_DS_NO_SUCH_OBJECT 0x00002030
1948 #define ERROR_DS_ALIAS_PROBLEM 0x00002031
1949 #define ERROR_DS_INVALID_DN_SYNTAX 0x00002032
1950 #define ERROR_DS_IS_LEAF 0x00002033
1951 #define ERROR_DS_ALIAS_DEREF_PROBLEM 0x00002034
1952 #define ERROR_DS_UNWILLING_TO_PERFORM 0x00002035
1953 #define ERROR_DS_LOOP_DETECT 0x00002036
1954 #define ERROR_DS_NAMING_VIOLATION 0x00002037
1955 #define ERROR_DS_OBJECT_RESULTS_TOO_LARGE 0x00002038
1956 #define ERROR_DS_AFFECTS_MULTIPLE_DSAS 0x00002039
1957 #define ERROR_DS_SERVER_DOWN 0x0000203A
1958 #define ERROR_DS_LOCAL_ERROR 0x0000203B
1959 #define ERROR_DS_ENCODING_ERROR 0x0000203C
1960 #define ERROR_DS_DECODING_ERROR 0x0000203D
1961 #define ERROR_DS_FILTER_UNKNOWN 0x0000203E
1962 #define ERROR_DS_PARAM_ERROR 0x0000203F
1963 #define ERROR_DS_NOT_SUPPORTED 0x00002040
1964 #define ERROR_DS_NO_RESULTS_RETURNED 0x00002041
1965 #define ERROR_DS_CONTROL_NOT_FOUND 0x00002042
1966 #define ERROR_DS_CLIENT_LOOP 0x00002043
1967 #define ERROR_DS_REFERRAL_LIMIT_EXCEEDED 0x00002044
1968 #define ERROR_DS_SORT_CONTROL_MISSING 0x00002045
1969 #define ERROR_DS_OFFSET_RANGE_ERROR 0x00002046
1970 #define ERROR_DS_RIDMGR_DISABLED 0x00002047
1971 #define ERROR_DS_ROOT_MUST_BE_NC 0x0000206D
1972 #define ERROR_DS_ADD_REPLICA_INHIBITED 0x0000206E
1973 #define ERROR_DS_ATT_NOT_DEF_IN_SCHEMA 0x0000206F
1974 #define ERROR_DS_MAX_OBJ_SIZE_EXCEEDED 0x00002070
1975 #define ERROR_DS_OBJ_STRING_NAME_EXISTS 0x00002071
1976 #define ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA 0x00002072
1977 #define ERROR_DS_RDN_DOESNT_MATCH_SCHEMA 0x00002073
1978 #define ERROR_DS_NO_REQUESTED_ATTS_FOUND 0x00002074
1979 #define ERROR_DS_USER_BUFFER_TO_SMALL 0x00002075
1980 #define ERROR_DS_ATT_IS_NOT_ON_OBJ 0x00002076
1981 #define ERROR_DS_ILLEGAL_MOD_OPERATION 0x00002077
1982 #define ERROR_DS_OBJ_TOO_LARGE 0x00002078
1983 #define ERROR_DS_BAD_INSTANCE_TYPE 0x00002079
1984 #define ERROR_DS_MASTERDSA_REQUIRED 0x0000207A
1985 #define ERROR_DS_OBJECT_CLASS_REQUIRED 0x0000207B
1986 #define ERROR_DS_MISSING_REQUIRED_ATT 0x0000207C
1987 #define ERROR_DS_ATT_NOT_DEF_FOR_CLASS 0x0000207D
1988 #define ERROR_DS_ATT_ALREADY_EXISTS 0x0000207E
1989 #define ERROR_DS_CANT_ADD_ATT_VALUES 0x00002080
1990 #define ERROR_DS_SINGLE_VALUE_CONSTRAINT 0x00002081
1991 #define ERROR_DS_RANGE_CONSTRAINT 0x00002082
1992 #define ERROR_DS_ATT_VAL_ALREADY_EXISTS 0x00002083
1993 #define ERROR_DS_CANT_REM_MISSING_ATT 0x00002084
1994 #define ERROR_DS_CANT_REM_MISSING_ATT_VAL 0x00002085
1995 #define ERROR_DS_ROOT_CANT_BE_SUBREF 0x00002086
1996 #define ERROR_DS_NO_CHAINING 0x00002087
1997 #define ERROR_DS_NO_CHAINED_EVAL 0x00002088
1998 #define ERROR_DS_NO_PARENT_OBJECT 0x00002089
1999 #define ERROR_DS_PARENT_IS_AN_ALIAS 0x0000208A
2000 #define ERROR_DS_CANT_MIX_MASTER_AND_REPS 0x0000208B
2001 #define ERROR_DS_CHILDREN_EXIST 0x0000208C
2002 #define ERROR_DS_OBJ_NOT_FOUND 0x0000208D
2003 #define ERROR_DS_ALIASED_OBJ_MISSING 0x0000208E
2004 #define ERROR_DS_BAD_NAME_SYNTAX 0x0000208F
2005 #define ERROR_DS_ALIAS_POINTS_TO_ALIAS 0x00002090
2006 #define ERROR_DS_CANT_DEREF_ALIAS 0x00002091
2007 #define ERROR_DS_OUT_OF_SCOPE 0x00002092
2008 #define ERROR_DS_OBJECT_BEING_REMOVED 0x00002093
2009 #define ERROR_DS_CANT_DELETE_DSA_OBJ 0x00002094
2010 #define ERROR_DS_GENERIC_ERROR 0x00002095
2011 #define ERROR_DS_DSA_MUST_BE_INT_MASTER 0x00002096
2012 #define ERROR_DS_CLASS_NOT_DSA 0x00002097
2013 #define ERROR_DS_INSUFF_ACCESS_RIGHTS 0x00002098
2014 #define ERROR_DS_ILLEGAL_SUPERIOR 0x00002099
2015 #define ERROR_DS_ATTRIBUTE_OWNED_BY_SAM 0x0000209A
2016 #define ERROR_DS_NAME_TOO_MANY_PARTS 0x0000209B
2017 #define ERROR_DS_NAME_TOO_LONG 0x0000209C
2018 #define ERROR_DS_NAME_VALUE_TOO_LONG 0x0000209D
2019 #define ERROR_DS_NAME_UNPARSEABLE 0x0000209E
2020 #define ERROR_DS_NAME_TYPE_UNKNOWN 0x0000209F
2021 #define ERROR_DS_NOT_AN_OBJECT 0x000020A0
2022 #define ERROR_DS_SEC_DESC_TOO_SHORT 0x000020A1
2023 #define ERROR_DS_SEC_DESC_INVALID 0x000020A2
2024 #define ERROR_DS_NO_DELETED_NAME 0x000020A3
2025 #define ERROR_DS_SUBREF_MUST_HAVE_PARENT 0x000020A4
2026 #define ERROR_DS_NCNAME_MUST_BE_NC 0x000020A5
2027 #define ERROR_DS_CANT_ADD_SYSTEM_ONLY 0x000020A6
2028 #define ERROR_DS_CLASS_MUST_BE_CONCRETE 0x000020A7
2029 #define ERROR_DS_INVALID_DMD 0x000020A8
2030 #define ERROR_DS_OBJ_GUID_EXISTS 0x000020A9
2031 #define ERROR_DS_NOT_ON_BACKLINK 0x000020AA
2032 #define ERROR_DS_NO_CROSSREF_FOR_NC 0x000020AB
2033 #define ERROR_DS_SHUTTING_DOWN 0x000020AC
2034 #define ERROR_DS_UNKNOWN_OPERATION 0x000020AD
2035 #define ERROR_DS_INVALID_ROLE_OWNER 0x000020AE
2036 #define ERROR_DS_COULDNT_CONTACT_FSMO 0x000020AF
2037 #define ERROR_DS_CROSS_NC_DN_RENAME 0x000020B0
2038 #define ERROR_DS_CANT_MOD_SYSTEM_ONLY 0x000020B1
2039 #define ERROR_DS_REPLICATOR_ONLY 0x000020B2
2040 #define ERROR_DS_OBJ_CLASS_NOT_DEFINED 0x000020B3
2041 #define ERROR_DS_OBJ_CLASS_NOT_SUBCLASS 0x000020B4
2042 #define ERROR_DS_NAME_REFERENCE_INVALID 0x000020B5
2043 #define ERROR_DS_CROSS_REF_EXISTS 0x000020B6
2044 #define ERROR_DS_CANT_DEL_MASTER_CROSSREF 0x000020B7
2045 #define ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD 0x000020B8
2046 #define ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX 0x000020B9
2047 #define ERROR_DS_DUP_RDN 0x000020BA
2048 #define ERROR_DS_DUP_OID 0x000020BB
2049 #define ERROR_DS_DUP_MAPI_ID 0x000020BC
2050 #define ERROR_DS_DUP_SCHEMA_ID_GUID 0x000020BD
2051 #define ERROR_DS_DUP_LDAP_DISPLAY_NAME 0x000020BE
2052 #define ERROR_DS_SEMANTIC_ATT_TEST 0x000020BF
2053 #define ERROR_DS_SYNTAX_MISMATCH 0x000020C0
2054 #define ERROR_DS_EXISTS_IN_MUST_HAVE 0x000020C1
2055 #define ERROR_DS_EXISTS_IN_MAY_HAVE 0x000020C2
2056 #define ERROR_DS_NONEXISTENT_MAY_HAVE 0x000020C3
2057 #define ERROR_DS_NONEXISTENT_MUST_HAVE 0x000020C4
2058 #define ERROR_DS_AUX_CLS_TEST_FAIL 0x000020C5
2059 #define ERROR_DS_NONEXISTENT_POSS_SUP 0x000020C6
2060 #define ERROR_DS_SUB_CLS_TEST_FAIL 0x000020C7
2061 #define ERROR_DS_BAD_RDN_ATT_ID_SYNTAX 0x000020C8
2062 #define ERROR_DS_EXISTS_IN_AUX_CLS 0x000020C9
2063 #define ERROR_DS_EXISTS_IN_SUB_CLS 0x000020CA
2064 #define ERROR_DS_EXISTS_IN_POSS_SUP 0x000020CB
2065 #define ERROR_DS_RECALCSCHEMA_FAILED 0x000020CC
2066 #define ERROR_DS_TREE_DELETE_NOT_FINISHED 0x000020CD
2067 #define ERROR_DS_CANT_DELETE 0x000020CE
2068 #define ERROR_DS_ATT_SCHEMA_REQ_ID 0x000020CF
2069 #define ERROR_DS_BAD_ATT_SCHEMA_SYNTAX 0x000020D0
2070 #define ERROR_DS_CANT_CACHE_ATT 0x000020D1
2071 #define ERROR_DS_CANT_CACHE_CLASS 0x000020D2
2072 #define ERROR_DS_CANT_REMOVE_ATT_CACHE 0x000020D3
2073 #define ERROR_DS_CANT_REMOVE_CLASS_CACHE 0x000020D4
2074 #define ERROR_DS_CANT_RETRIEVE_DN 0x000020D5
2075 #define ERROR_DS_MISSING_SUPREF 0x000020D6
2076 #define ERROR_DS_CANT_RETRIEVE_INSTANCE 0x000020D7
2077 #define ERROR_DS_CODE_INCONSISTENCY 0x000020D8
2078 #define ERROR_DS_DATABASE_ERROR 0x000020D9
2079 #define ERROR_DS_GOVERNSID_MISSING 0x000020DA
2080 #define ERROR_DS_MISSING_EXPECTED_ATT 0x000020DB
2081 #define ERROR_DS_NCNAME_MISSING_CR_REF 0x000020DC
2082 #define ERROR_DS_SECURITY_CHECKING_ERROR 0x000020DD
2083 #define ERROR_DS_SCHEMA_NOT_LOADED 0x000020DE
2084 #define ERROR_DS_SCHEMA_ALLOC_FAILED 0x000020DF
2085 #define ERROR_DS_ATT_SCHEMA_REQ_SYNTAX 0x000020E0
2086 #define ERROR_DS_GCVERIFY_ERROR 0x000020E1
2087 #define ERROR_DS_DRA_SCHEMA_MISMATCH 0x000020E2
2088 #define ERROR_DS_CANT_FIND_DSA_OBJ 0x000020E3
2089 #define ERROR_DS_CANT_FIND_EXPECTED_NC 0x000020E4
2090 #define ERROR_DS_CANT_FIND_NC_IN_CACHE 0x000020E5
2091 #define ERROR_DS_CANT_RETRIEVE_CHILD 0x000020E6
2092 #define ERROR_DS_SECURITY_ILLEGAL_MODIFY 0x000020E7
2093 #define ERROR_DS_CANT_REPLACE_HIDDEN_REC 0x000020E8
2094 #define ERROR_DS_BAD_HIERARCHY_FILE 0x000020E9
2095 #define ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED 0x000020EA
2096 #define ERROR_DS_CONFIG_PARAM_MISSING 0x000020EB
2097 #define ERROR_DS_COUNTING_AB_INDICES_FAILED 0x000020EC
2098 #define ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED 0x000020ED
2099 #define ERROR_DS_INTERNAL_FAILURE 0x000020EE
2100 #define ERROR_DS_UNKNOWN_ERROR 0x000020EF
2101 #define ERROR_DS_ROOT_REQUIRES_CLASS_TOP 0x000020F0
2102 #define ERROR_DS_REFUSING_FSMO_ROLES 0x000020F1
2103 #define ERROR_DS_MISSING_FSMO_SETTINGS 0x000020F2
2104 #define ERROR_DS_UNABLE_TO_SURRENDER_ROLES 0x000020F3
2105 #define ERROR_DS_DRA_GENERIC 0x000020F4
2106 #define ERROR_DS_DRA_INVALID_PARAMETER 0x000020F5
2107 #define ERROR_DS_DRA_BUSY 0x000020F6
2108 #define ERROR_DS_DRA_BAD_DN 0x000020F7
2109 #define ERROR_DS_DRA_BAD_NC 0x000020F8
2110 #define ERROR_DS_DRA_DN_EXISTS 0x000020F9
2111 #define ERROR_DS_DRA_INTERNAL_ERROR 0x000020FA
2112 #define ERROR_DS_DRA_INCONSISTENT_DIT 0x000020FB
2113 #define ERROR_DS_DRA_CONNECTION_FAILED 0x000020FC
2114 #define ERROR_DS_DRA_BAD_INSTANCE_TYPE 0x000020FD
2115 #define ERROR_DS_DRA_OUT_OF_MEM 0x000020FE
2116 #define ERROR_DS_DRA_MAIL_PROBLEM 0x000020FF
2117 #define ERROR_DS_DRA_REF_ALREADY_EXISTS 0x00002100
2118 #define ERROR_DS_DRA_REF_NOT_FOUND 0x00002101
2119 #define ERROR_DS_DRA_OBJ_IS_REP_SOURCE 0x00002102
2120 #define ERROR_DS_DRA_DB_ERROR 0x00002103
2121 #define ERROR_DS_DRA_NO_REPLICA 0x00002104
2122 #define ERROR_DS_DRA_ACCESS_DENIED 0x00002105
2123 #define ERROR_DS_DRA_NOT_SUPPORTED 0x00002106
2124 #define ERROR_DS_DRA_RPC_CANCELLED 0x00002107
2125 #define ERROR_DS_DRA_SOURCE_DISABLED 0x00002108
2126 #define ERROR_DS_DRA_SINK_DISABLED 0x00002109
2127 #define ERROR_DS_DRA_NAME_COLLISION 0x0000210A
2128 #define ERROR_DS_DRA_SOURCE_REINSTALLED 0x0000210B
2129 #define ERROR_DS_DRA_MISSING_PARENT 0x0000210C
2130 #define ERROR_DS_DRA_PREEMPTED 0x0000210D
2131 #define ERROR_DS_DRA_ABANDON_SYNC 0x0000210E
2132 #define ERROR_DS_DRA_SHUTDOWN 0x0000210F
2133 #define ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET 0x00002110
2134 #define ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA 0x00002111
2135 #define ERROR_DS_DRA_EXTN_CONNECTION_FAILED 0x00002112
2136 #define ERROR_DS_INSTALL_SCHEMA_MISMATCH 0x00002113
2137 #define ERROR_DS_DUP_LINK_ID 0x00002114
2138 #define ERROR_DS_NAME_ERROR_RESOLVING 0x00002115
2139 #define ERROR_DS_NAME_ERROR_NOT_FOUND 0x00002116
2140 #define ERROR_DS_NAME_ERROR_NOT_UNIQUE 0x00002117
2141 #define ERROR_DS_NAME_ERROR_NO_MAPPING 0x00002118
2142 #define ERROR_DS_NAME_ERROR_DOMAIN_ONLY 0x00002119
2143 #define ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING 0x0000211A
2144 #define ERROR_DS_CONSTRUCTED_ATT_MOD 0x0000211B
2145 #define ERROR_DS_WRONG_OM_OBJ_CLASS 0x0000211C
2146 #define ERROR_DS_DRA_REPL_PENDING 0x0000211D
2147 #define ERROR_DS_DS_REQUIRED 0x0000211E
2148 #define ERROR_DS_INVALID_LDAP_DISPLAY_NAME 0x0000211F
2149 #define ERROR_DS_NON_BASE_SEARCH 0x00002120
2150 #define ERROR_DS_CANT_RETRIEVE_ATTS 0x00002121
2151 #define ERROR_DS_BACKLINK_WITHOUT_LINK 0x00002122
2152 #define ERROR_DS_EPOCH_MISMATCH 0x00002123
2153 #define ERROR_DS_SRC_NAME_MISMATCH 0x00002124
2154 #define ERROR_DS_SRC_AND_DST_NC_IDENTICAL 0x00002125
2155 #define ERROR_DS_DST_NC_MISMATCH 0x00002126
2156 #define ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC 0x00002127
2157 #define ERROR_DS_SRC_GUID_MISMATCH 0x00002128
2158 #define ERROR_DS_CANT_MOVE_DELETED_OBJECT 0x00002129
2159 #define ERROR_DS_PDC_OPERATION_IN_PROGRESS 0x0000212A
2160 #define ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD 0x0000212B
2161 #define ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION 0x0000212C
2162 #define ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS 0x0000212D
2163 #define ERROR_DS_NC_MUST_HAVE_NC_PARENT 0x0000212E
2164 #define ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE 0x0000212F
2165 #define ERROR_DS_DST_DOMAIN_NOT_NATIVE 0x00002130
2166 #define ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER 0x00002131
2167 #define ERROR_DS_CANT_MOVE_ACCOUNT_GROUP 0x00002132
2168 #define ERROR_DS_CANT_MOVE_RESOURCE_GROUP 0x00002133
2169 #define ERROR_DS_INVALID_SEARCH_FLAG 0x00002134
2170 #define ERROR_DS_NO_TREE_DELETE_ABOVE_NC 0x00002135
2171 #define ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE 0x00002136
2172 #define ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE 0x00002137
2173 #define ERROR_DS_SAM_INIT_FAILURE 0x00002138
2174 #define ERROR_DS_SENSITIVE_GROUP_VIOLATION 0x00002139
2175 #define ERROR_DS_CANT_MOD_PRIMARYGROUPID 0x0000213A
2176 #define ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD 0x0000213B
2177 #define ERROR_DS_NONSAFE_SCHEMA_CHANGE 0x0000213C
2178 #define ERROR_DS_SCHEMA_UPDATE_DISALLOWED 0x0000213D
2179 #define ERROR_DS_CANT_CREATE_UNDER_SCHEMA 0x0000213E
2180 #define ERROR_DS_INSTALL_NO_SRC_SCH_VERSION 0x0000213F
2181 #define ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE 0x00002140
2182 #define ERROR_DS_INVALID_GROUP_TYPE 0x00002141
2183 #define ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN 0x00002142
2184 #define ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN 0x00002143
2185 #define ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER 0x00002144
2186 #define ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER 0x00002145
2187 #define ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER 0x00002146
2188 #define ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER 0x00002147
2189 #define ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER 0x00002148
2190 #define ERROR_DS_HAVE_PRIMARY_MEMBERS 0x00002149
2191 #define ERROR_DS_STRING_SD_CONVERSION_FAILED 0x0000214A
2192 #define ERROR_DS_NAMING_MASTER_GC 0x0000214B
2193 #define ERROR_DS_DNS_LOOKUP_FAILURE 0x0000214C
2194 #define ERROR_DS_COULDNT_UPDATE_SPNS 0x0000214D
2195 #define ERROR_DS_CANT_RETRIEVE_SD 0x0000214E
2196 #define ERROR_DS_KEY_NOT_UNIQUE 0x0000214F
2197 #define ERROR_DS_WRONG_LINKED_ATT_SYNTAX 0x00002150
2198 #define ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD 0x00002151
2199 #define ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY 0x00002152
2200 #define ERROR_DS_CANT_START 0x00002153
2201 #define ERROR_DS_INIT_FAILURE 0x00002154
2202 #define ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION 0x00002155
2203 #define ERROR_DS_SOURCE_DOMAIN_IN_FOREST 0x00002156
2204 #define ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST 0x00002157
2205 #define ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED 0x00002158
2206 #define ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN 0x00002159
2207 #define ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER 0x0000215A
2208 #define ERROR_DS_SRC_SID_EXISTS_IN_FOREST 0x0000215B
2209 #define ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH 0x0000215C
2210 #define ERROR_SAM_INIT_FAILURE 0x0000215D
2211 #define ERROR_DS_DRA_SCHEMA_INFO_SHIP 0x0000215E
2212 #define ERROR_DS_DRA_SCHEMA_CONFLICT 0x0000215F
2213 #define ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT 0x00002160
2214 #define ERROR_DS_DRA_OBJ_NC_MISMATCH 0x00002161
2215 #define ERROR_DS_NC_STILL_HAS_DSAS 0x00002162
2216 #define ERROR_DS_GC_REQUIRED 0x00002163
2217 #define ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY 0x00002164
2218 #define ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS 0x00002165
2219 #define ERROR_DS_CANT_ADD_TO_GC 0x00002166
2220 #define ERROR_DS_NO_CHECKPOINT_WITH_PDC 0x00002167
2221 #define ERROR_DS_SOURCE_AUDITING_NOT_ENABLED 0x00002168
2222 #define ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC 0x00002169
2223 #define ERROR_DS_INVALID_NAME_FOR_SPN 0x0000216A
2224 #define ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS 0x0000216B
2225 #define ERROR_DS_UNICODEPWD_NOT_IN_QUOTES 0x0000216C
2226 #define ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED 0x0000216D
2227 #define ERROR_DS_MUST_BE_RUN_ON_DST_DC 0x0000216E
2228 #define ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER 0x0000216F
2229 #define ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ 0x00002170
2230 #define ERROR_DS_INIT_FAILURE_CONSOLE 0x00002171
2231 #define ERROR_DS_SAM_INIT_FAILURE_CONSOLE 0x00002172
2232 #define ERROR_DS_FOREST_VERSION_TOO_HIGH 0x00002173
2233 #define ERROR_DS_DOMAIN_VERSION_TOO_HIGH 0x00002174
2234 #define ERROR_DS_FOREST_VERSION_TOO_LOW 0x00002175
2235 #define ERROR_DS_DOMAIN_VERSION_TOO_LOW 0x00002176
2236 #define ERROR_DS_INCOMPATIBLE_VERSION 0x00002177
2237 #define ERROR_DS_LOW_DSA_VERSION 0x00002178
2238 #define ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN 0x00002179
2239 #define ERROR_DS_NOT_SUPPORTED_SORT_ORDER 0x0000217A
2240 #define ERROR_DS_NAME_NOT_UNIQUE 0x0000217B
2241 #define ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 0x0000217C
2242 #define ERROR_DS_OUT_OF_VERSION_STORE 0x0000217D
2243 #define ERROR_DS_INCOMPATIBLE_CONTROLS_USED 0x0000217E
2244 #define ERROR_DS_NO_REF_DOMAIN 0x0000217F
2245 #define ERROR_DS_RESERVED_LINK_ID 0x00002180
2246 #define ERROR_DS_LINK_ID_NOT_AVAILABLE 0x00002181
2247 #define ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER 0x00002182
2248 #define ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE 0x00002183
2249 #define ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC 0x00002184
2250 #define ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG 0x00002185
2251 #define ERROR_DS_MODIFYDN_WRONG_GRANDPARENT 0x00002186
2252 #define ERROR_DS_NAME_ERROR_TRUST_REFERRAL 0x00002187
2253 #define ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER 0x00002188
2254 #define ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD 0x00002189
2255 #define ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 0x0000218A
2256 #define ERROR_DS_THREAD_LIMIT_EXCEEDED 0x0000218B
2257 #define ERROR_DS_NOT_CLOSEST 0x0000218C
2258 #define ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF 0x0000218D
2259 #define ERROR_DS_SINGLE_USER_MODE_FAILED 0x0000218E
2260 #define ERROR_DS_NTDSCRIPT_SYNTAX_ERROR 0x0000218F
2261 #define ERROR_DS_NTDSCRIPT_PROCESS_ERROR 0x00002190
2262 #define ERROR_DS_DIFFERENT_REPL_EPOCHS 0x00002191
2263 #define ERROR_DS_DRS_EXTENSIONS_CHANGED 0x00002192
2264 #define ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR 0x00002193
2265 #define ERROR_DS_NO_MSDS_INTID 0x00002194
2266 #define ERROR_DS_DUP_MSDS_INTID 0x00002195
2267 #define ERROR_DS_EXISTS_IN_RDNATTID 0x00002196
2268 #define ERROR_DS_AUTHORIZATION_FAILED 0x00002197
2269 #define ERROR_DS_INVALID_SCRIPT 0x00002198
2270 #define ERROR_DS_REMOTE_CROSSREF_OP_FAILED 0x00002199
2271 #define ERROR_DS_CROSS_REF_BUSY 0x0000219A
2272 #define ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN 0x0000219B
2273 #define ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC 0x0000219C
2274 #define ERROR_DS_DUPLICATE_ID_FOUND 0x0000219D
2275 #define ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT 0x0000219E
2276 #define ERROR_DS_GROUP_CONVERSION_ERROR 0x0000219F
2277 #define ERROR_DS_CANT_MOVE_APP_BASIC_GROUP 0x000021A0
2278 #define ERROR_DS_CANT_MOVE_APP_QUERY_GROUP 0x000021A1
2279 #define ERROR_DS_ROLE_NOT_VERIFIED 0x000021A2
2280 #define ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL 0x000021A3
2281 #define ERROR_DS_DOMAIN_RENAME_IN_PROGRESS 0x000021A4
2282 #define ERROR_DS_EXISTING_AD_CHILD_NC 0x000021A5
2283 #define ERROR_DS_REPL_LIFETIME_EXCEEDED 0x000021A6
2284 #define ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER 0x000021A7
2285 #define ERROR_DS_LDAP_SEND_QUEUE_FULL 0x000021A8
2286 #define ERROR_DS_DRA_OUT_SCHEDULE_WINDOW 0x000021A9
2287 #define ERROR_DS_POLICY_NOT_KNOWN 0x000021AA
2288 #define ERROR_NO_SITE_SETTINGS_OBJECT 0x000021AB
2289 #define ERROR_NO_SECRETS 0x000021AC
2290 #define ERROR_NO_WRITABLE_DC_FOUND 0x000021AD
2291 #define ERROR_DS_NO_SERVER_OBJECT 0x000021AE
2292 #define ERROR_DS_NO_NTDSA_OBJECT 0x000021AF
2293 #define ERROR_DS_NON_ASQ_SEARCH 0x000021B0
2294 #define ERROR_DS_AUDIT_FAILURE 0x000021B1
2295 #define ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE 0x000021B2
2296 #define ERROR_DS_INVALID_SEARCH_FLAG_TUPLE 0x000021B3
2297 #define ERROR_DS_HIERARCHY_TABLE_TOO_DEEP 0x000021B4
2298 #define ERROR_DS_DRA_CORRUPT_UTD_VECTOR 0x000021B5
2299 #define ERROR_DS_DRA_SECRETS_DENIED 0x000021B6
2300 #define ERROR_DS_RESERVED_MAPI_ID 0x000021B7
2301 #define ERROR_DS_MAPI_ID_NOT_AVAILABLE 0x000021B8
2302 #define ERROR_DS_DRA_MISSING_KRBTGT_SECRET 0x000021B9
2303 #define ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST 0x000021BA
2304 #define ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST 0x000021BB
2305 #define ERROR_INVALID_USER_PRINCIPAL_NAME 0x000021BC
2306 #define ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS 0x000021BD
2307 #define ERROR_DS_OID_NOT_FOUND 0x000021BE
2308 #define ERROR_DS_DRA_RECYCLED_TARGET 0x000021BF
2309 #define ERROR_DS_DISALLOWED_NC_REDIRECT 0x000021C0
2310 #define ERROR_DS_HIGH_ADLDS_FFL 0x000021C1
2311 #define ERROR_DS_HIGH_DSA_VERSION 0x000021C2
2312 #define ERROR_DS_LOW_ADLDS_FFL 0x000021C3
2313 #define ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION 0x000021C4
2314 #define ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED 0x000021C5
2315 #define ERROR_INCORRECT_ACCOUNT_TYPE 0x000021C6
2316 
2317 /* System Error Codes (9000-11999) */
2318 
2319 #define DNS_ERROR_RCODE_FORMAT_ERROR 0x00002329
2320 #define DNS_ERROR_RCODE_SERVER_FAILURE 0x0000232A
2321 #define DNS_ERROR_RCODE_NAME_ERROR 0x0000232B
2322 #define DNS_ERROR_RCODE_NOT_IMPLEMENTED 0x0000232C
2323 #define DNS_ERROR_RCODE_REFUSED 0x0000232D
2324 #define DNS_ERROR_RCODE_YXDOMAIN 0x0000232E
2325 #define DNS_ERROR_RCODE_YXRRSET 0x0000232F
2326 #define DNS_ERROR_RCODE_NXRRSET 0x00002330
2327 #define DNS_ERROR_RCODE_NOTAUTH 0x00002331
2328 #define DNS_ERROR_RCODE_NOTZONE 0x00002332
2329 #define DNS_ERROR_RCODE_BADSIG 0x00002338
2330 #define DNS_ERROR_RCODE_BADKEY 0x00002339
2331 #define DNS_ERROR_RCODE_BADTIME 0x0000233A
2332 #define DNS_ERROR_KEYMASTER_REQUIRED 0x0000238D
2333 #define DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE 0x0000238E
2334 #define DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1 0x0000238F
2335 #define DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS 0x00002390
2336 #define DNS_ERROR_UNSUPPORTED_ALGORITHM 0x00002391
2337 #define DNS_ERROR_INVALID_KEY_SIZE 0x00002392
2338 #define DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE 0x00002393
2339 #define DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION 0x00002394
2340 #define DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR 0x00002395
2341 #define DNS_ERROR_UNEXPECTED_CNG_ERROR 0x00002396
2342 #define DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION 0x00002397
2343 #define DNS_ERROR_KSP_NOT_ACCESSIBLE 0x00002398
2344 #define DNS_ERROR_TOO_MANY_SKDS 0x00002399
2345 #define DNS_ERROR_INVALID_ROLLOVER_PERIOD 0x0000239A
2346 #define DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET 0x0000239B
2347 #define DNS_ERROR_ROLLOVER_IN_PROGRESS 0x0000239C
2348 #define DNS_ERROR_STANDBY_KEY_NOT_PRESENT 0x0000239D
2349 #define DNS_ERROR_NOT_ALLOWED_ON_ZSK 0x0000239E
2350 #define DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD 0x0000239F
2351 #define DNS_ERROR_ROLLOVER_ALREADY_QUEUED 0x000023A0
2352 #define DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE 0x000023A1
2353 #define DNS_ERROR_BAD_KEYMASTER 0x000023A2
2354 #define DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD 0x000023A3
2355 #define DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT 0x000023A4
2356 #define DNS_ERROR_DNSSEC_IS_DISABLED 0x000023A5
2357 #define DNS_ERROR_INVALID_XML 0x000023A6
2358 #define DNS_ERROR_NO_VALID_TRUST_ANCHORS 0x000023A7
2359 #define DNS_ERROR_ROLLOVER_NOT_POKEABLE 0x000023A8
2360 #define DNS_ERROR_NSEC3_NAME_COLLISION 0x000023A9
2361 #define DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1 0x000023AA
2362 #define DNS_INFO_NO_RECORDS 0x0000251D
2363 #define DNS_ERROR_BAD_PACKET 0x0000251E
2364 #define DNS_ERROR_NO_PACKET 0x0000251F
2365 #define DNS_ERROR_RCODE 0x00002520
2366 #define DNS_ERROR_UNSECURE_PACKET 0x00002521
2367 #define DNS_REQUEST_PENDING 0x00002522
2368 #define DNS_ERROR_INVALID_TYPE 0x0000254F
2369 #define DNS_ERROR_INVALID_IP_ADDRESS 0x00002550
2370 #define DNS_ERROR_INVALID_PROPERTY 0x00002551
2371 #define DNS_ERROR_TRY_AGAIN_LATER 0x00002552
2372 #define DNS_ERROR_NOT_UNIQUE 0x00002553
2373 #define DNS_ERROR_NON_RFC_NAME 0x00002554
2374 #define DNS_STATUS_FQDN 0x00002555
2375 #define DNS_STATUS_DOTTED_NAME 0x00002556
2376 #define DNS_STATUS_SINGLE_PART_NAME 0x00002557
2377 #define DNS_ERROR_INVALID_NAME_CHAR 0x00002558
2378 #define DNS_ERROR_NUMERIC_NAME 0x00002559
2379 #define DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER 0x0000255A
2380 #define DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION 0x0000255B
2381 #define DNS_ERROR_CANNOT_FIND_ROOT_HINTS 0x0000255C
2382 #define DNS_ERROR_INCONSISTENT_ROOT_HINTS 0x0000255D
2383 #define DNS_ERROR_DWORD_VALUE_TOO_SMALL 0x0000255E
2384 #define DNS_ERROR_DWORD_VALUE_TOO_LARGE 0x0000255F
2385 #define DNS_ERROR_BACKGROUND_LOADING 0x00002560
2386 #define DNS_ERROR_NOT_ALLOWED_ON_RODC 0x00002561
2387 #define DNS_ERROR_NOT_ALLOWED_UNDER_DNAME 0x00002562
2388 #define DNS_ERROR_DELEGATION_REQUIRED 0x00002563
2389 #define DNS_ERROR_INVALID_POLICY_TABLE 0x00002564
2390 #define DNS_ERROR_ZONE_DOES_NOT_EXIST 0x00002581
2391 #define DNS_ERROR_NO_ZONE_INFO 0x00002582
2392 #define DNS_ERROR_INVALID_ZONE_OPERATION 0x00002583
2393 #define DNS_ERROR_ZONE_CONFIGURATION_ERROR 0x00002584
2394 #define DNS_ERROR_ZONE_HAS_NO_SOA_RECORD 0x00002585
2395 #define DNS_ERROR_ZONE_HAS_NO_NS_RECORDS 0x00002586
2396 #define DNS_ERROR_ZONE_LOCKED 0x00002587
2397 #define DNS_ERROR_ZONE_CREATION_FAILED 0x00002588
2398 #define DNS_ERROR_ZONE_ALREADY_EXISTS 0x00002589
2399 #define DNS_ERROR_AUTOZONE_ALREADY_EXISTS 0x0000258A
2400 #define DNS_ERROR_INVALID_ZONE_TYPE 0x0000258B
2401 #define DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP 0x0000258C
2402 #define DNS_ERROR_ZONE_NOT_SECONDARY 0x0000258D
2403 #define DNS_ERROR_NEED_SECONDARY_ADDRESSES 0x0000258E
2404 #define DNS_ERROR_WINS_INIT_FAILED 0x0000258F
2405 #define DNS_ERROR_NEED_WINS_SERVERS 0x00002590
2406 #define DNS_ERROR_NBSTAT_INIT_FAILED 0x00002591
2407 #define DNS_ERROR_SOA_DELETE_INVALID 0x00002592
2408 #define DNS_ERROR_FORWARDER_ALREADY_EXISTS 0x00002593
2409 #define DNS_ERROR_ZONE_REQUIRES_MASTER_IP 0x00002594
2410 #define DNS_ERROR_ZONE_IS_SHUTDOWN 0x00002595
2411 #define DNS_ERROR_ZONE_LOCKED_FOR_SIGNING 0x00002596
2412 #define DNS_ERROR_PRIMARY_REQUIRES_DATAFILE 0x000025B3
2413 #define DNS_ERROR_INVALID_DATAFILE_NAME 0x000025B4
2414 #define DNS_ERROR_DATAFILE_OPEN_FAILURE 0x000025B5
2415 #define DNS_ERROR_FILE_WRITEBACK_FAILED 0x000025B6
2416 #define DNS_ERROR_DATAFILE_PARSING 0x000025B7
2417 #define DNS_ERROR_RECORD_DOES_NOT_EXIST 0x000025E5
2418 #define DNS_ERROR_RECORD_FORMAT 0x000025E6
2419 #define DNS_ERROR_NODE_CREATION_FAILED 0x000025E7
2420 #define DNS_ERROR_UNKNOWN_RECORD_TYPE 0x000025E8
2421 #define DNS_ERROR_RECORD_TIMED_OUT 0x000025E9
2422 #define DNS_ERROR_NAME_NOT_IN_ZONE 0x000025EA
2423 #define DNS_ERROR_CNAME_LOOP 0x000025EB
2424 #define DNS_ERROR_NODE_IS_CNAME 0x000025EC
2425 #define DNS_ERROR_CNAME_COLLISION 0x000025ED
2426 #define DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT 0x000025EE
2427 #define DNS_ERROR_RECORD_ALREADY_EXISTS 0x000025EF
2428 #define DNS_ERROR_SECONDARY_DATA 0x000025F0
2429 #define DNS_ERROR_NO_CREATE_CACHE_DATA 0x000025F1
2430 #define DNS_ERROR_NAME_DOES_NOT_EXIST 0x000025F2
2431 #define DNS_WARNING_PTR_CREATE_FAILED 0x000025F3
2432 #define DNS_WARNING_DOMAIN_UNDELETED 0x000025F4
2433 #define DNS_ERROR_DS_UNAVAILABLE 0x000025F5
2434 #define DNS_ERROR_DS_ZONE_ALREADY_EXISTS 0x000025F6
2435 #define DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE 0x000025F7
2436 #define DNS_ERROR_NODE_IS_DNAME 0x000025F8
2437 #define DNS_ERROR_DNAME_COLLISION 0x000025F9
2438 #define DNS_ERROR_ALIAS_LOOP 0x000025FA
2439 #define DNS_INFO_AXFR_COMPLETE 0x00002617
2440 #define DNS_ERROR_AXFR 0x00002618
2441 #define DNS_INFO_ADDED_LOCAL_WINS 0x00002619
2442 #define DNS_STATUS_CONTINUE_NEEDED 0x00002649
2443 #define DNS_ERROR_NO_TCPIP 0x0000267B
2444 #define DNS_ERROR_NO_DNS_SERVERS 0x0000267C
2445 #define DNS_ERROR_DP_DOES_NOT_EXIST 0x000026AD
2446 #define DNS_ERROR_DP_ALREADY_EXISTS 0x000026AE
2447 #define DNS_ERROR_DP_NOT_ENLISTED 0x000026AF
2448 #define DNS_ERROR_DP_ALREADY_ENLISTED 0x000026B0
2449 #define DNS_ERROR_DP_NOT_AVAILABLE 0x000026B1
2450 #define DNS_ERROR_DP_FSMO_ERROR 0x000026B2
2451 #define WSAEINTR 0x00002714
2452 #define WSAEBADF 0x00002719
2453 #define WSAEACCES 0x0000271D
2454 #define WSAEFAULT 0x0000271E
2455 #define WSAEINVAL 0x00002726
2456 #define WSAEMFILE 0x00002728
2457 #define WSAEWOULDBLOCK 0x00002733
2458 #define WSAEINPROGRESS 0x00002734
2459 #define WSAEALREADY 0x00002735
2460 #define WSAENOTSOCK 0x00002736
2461 #define WSAEDESTADDRREQ 0x00002737
2462 #define WSAEMSGSIZE 0x00002738
2463 #define WSAEPROTOTYPE 0x00002739
2464 #define WSAENOPROTOOPT 0x0000273A
2465 #define WSAEPROTONOSUPPORT 0x0000273B
2466 #define WSAESOCKTNOSUPPORT 0x0000273C
2467 #define WSAEOPNOTSUPP 0x0000273D
2468 #define WSAEPFNOSUPPORT 0x0000273E
2469 #define WSAEAFNOSUPPORT 0x0000273F
2470 #define WSAEADDRINUSE 0x00002740
2471 #define WSAEADDRNOTAVAIL 0x00002741
2472 #define WSAENETDOWN 0x00002742
2473 #define WSAENETUNREACH 0x00002743
2474 #define WSAENETRESET 0x00002744
2475 #define WSAECONNABORTED 0x00002745
2476 #define WSAECONNRESET 0x00002746
2477 #define WSAENOBUFS 0x00002747
2478 #define WSAEISCONN 0x00002748
2479 #define WSAENOTCONN 0x00002749
2480 #define WSAESHUTDOWN 0x0000274A
2481 #define WSAETOOMANYREFS 0x0000274B
2482 #define WSAETIMEDOUT 0x0000274C
2483 #define WSAECONNREFUSED 0x0000274D
2484 #define WSAELOOP 0x0000274E
2485 #define WSAENAMETOOLONG 0x0000274F
2486 #define WSAEHOSTDOWN 0x00002750
2487 #define WSAEHOSTUNREACH 0x00002751
2488 #define WSAENOTEMPTY 0x00002752
2489 #define WSAEPROCLIM 0x00002753
2490 #define WSAEUSERS 0x00002754
2491 #define WSAEDQUOT 0x00002755
2492 #define WSAESTALE 0x00002756
2493 #define WSAEREMOTE 0x00002757
2494 #define WSASYSNOTREADY 0x0000276B
2495 #define WSAVERNOTSUPPORTED 0x0000276C
2496 #define WSANOTINITIALISED 0x0000276D
2497 #define WSAEDISCON 0x00002775
2498 #define WSAENOMORE 0x00002776
2499 #define WSAECANCELLED 0x00002777
2500 #define WSAEINVALIDPROCTABLE 0x00002778
2501 #define WSAEINVALIDPROVIDER 0x00002779
2502 #define WSAEPROVIDERFAILEDINIT 0x0000277A
2503 #define WSASYSCALLFAILURE 0x0000277B
2504 #define WSASERVICE_NOT_FOUND 0x0000277C
2505 #define WSATYPE_NOT_FOUND 0x0000277D
2506 #define WSA_E_NO_MORE 0x0000277E
2507 #define WSA_E_CANCELLED 0x0000277F
2508 #define WSAEREFUSED 0x00002780
2509 #define WSAHOST_NOT_FOUND 0x00002AF9
2510 #define WSATRY_AGAIN 0x00002AFA
2511 #define WSANO_RECOVERY 0x00002AFB
2512 #define WSANO_DATA 0x00002AFC
2513 #define WSA_QOS_RECEIVERS 0x00002AFD
2514 #define WSA_QOS_SENDERS 0x00002AFE
2515 #define WSA_QOS_NO_SENDERS 0x00002AFF
2516 #define WSA_QOS_NO_RECEIVERS 0x00002B00
2517 #define WSA_QOS_REQUEST_CONFIRMED 0x00002B01
2518 #define WSA_QOS_ADMISSION_FAILURE 0x00002B02
2519 #define WSA_QOS_POLICY_FAILURE 0x00002B03
2520 #define WSA_QOS_BAD_STYLE 0x00002B04
2521 #define WSA_QOS_BAD_OBJECT 0x00002B05
2522 #define WSA_QOS_TRAFFIC_CTRL_ERROR 0x00002B06
2523 #define WSA_QOS_GENERIC_ERROR 0x00002B07
2524 #define WSA_QOS_ESERVICETYPE 0x00002B08
2525 #define WSA_QOS_EFLOWSPEC 0x00002B09
2526 #define WSA_QOS_EPROVSPECBUF 0x00002B0A
2527 #define WSA_QOS_EFILTERSTYLE 0x00002B0B
2528 #define WSA_QOS_EFILTERTYPE 0x00002B0C
2529 #define WSA_QOS_EFILTERCOUNT 0x00002B0D
2530 #define WSA_QOS_EOBJLENGTH 0x00002B0E
2531 #define WSA_QOS_EFLOWCOUNT 0x00002B0F
2532 #define WSA_QOS_EUNKOWNPSOBJ 0x00002B10
2533 #define WSA_QOS_EPOLICYOBJ 0x00002B11
2534 #define WSA_QOS_EFLOWDESC 0x00002B12
2535 #define WSA_QOS_EPSFLOWSPEC 0x00002B13
2536 #define WSA_QOS_EPSFILTERSPEC 0x00002B14
2537 #define WSA_QOS_ESDMODEOBJ 0x00002B15
2538 #define WSA_QOS_ESHAPERATEOBJ 0x00002B16
2539 #define WSA_QOS_RESERVED_PETYPE 0x00002B17
2540 #define WSA_SECURE_HOST_NOT_FOUND 0x00002B18
2541 #define WSA_IPSEC_NAME_POLICY_ERROR 0x00002B19
2542 
2543 /* System Error Codes (12000-15999) */
2544 
2545 /* ERROR_INTERNET_* : (12000 - 12175) defined in WinInet.h */
2546 
2547 #define ERROR_IPSEC_QM_POLICY_EXISTS 0x000032C8
2548 #define ERROR_IPSEC_QM_POLICY_NOT_FOUND 0x000032C9
2549 #define ERROR_IPSEC_QM_POLICY_IN_USE 0x000032CA
2550 #define ERROR_IPSEC_MM_POLICY_EXISTS 0x000032CB
2551 #define ERROR_IPSEC_MM_POLICY_NOT_FOUND 0x000032CC
2552 #define ERROR_IPSEC_MM_POLICY_IN_USE 0x000032CD
2553 #define ERROR_IPSEC_MM_FILTER_EXISTS 0x000032CE
2554 #define ERROR_IPSEC_MM_FILTER_NOT_FOUND 0x000032CF
2555 #define ERROR_IPSEC_TRANSPORT_FILTER_EXISTS 0x000032D0
2556 #define ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND 0x000032D1
2557 #define ERROR_IPSEC_MM_AUTH_EXISTS 0x000032D2
2558 #define ERROR_IPSEC_MM_AUTH_NOT_FOUND 0x000032D3
2559 #define ERROR_IPSEC_MM_AUTH_IN_USE 0x000032D4
2560 #define ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND 0x000032D5
2561 #define ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND 0x000032D6
2562 #define ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND 0x000032D7
2563 #define ERROR_IPSEC_TUNNEL_FILTER_EXISTS 0x000032D8
2564 #define ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND 0x000032D9
2565 #define ERROR_IPSEC_MM_FILTER_PENDING_DELETION 0x000032DA
2566 #define ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION 0x000032DB
2567 #define ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION 0x000032DC
2568 #define ERROR_IPSEC_MM_POLICY_PENDING_DELETION 0x000032DD
2569 #define ERROR_IPSEC_MM_AUTH_PENDING_DELETION 0x000032DE
2570 #define ERROR_IPSEC_QM_POLICY_PENDING_DELETION 0x000032DF
2571 #define WARNING_IPSEC_MM_POLICY_PRUNED 0x000032E0
2572 #define WARNING_IPSEC_QM_POLICY_PRUNED 0x000032E1
2573 #define ERROR_IPSEC_IKE_NEG_STATUS_BEGIN 0x000035E8
2574 #define ERROR_IPSEC_IKE_AUTH_FAIL 0x000035E9
2575 #define ERROR_IPSEC_IKE_ATTRIB_FAIL 0x000035EA
2576 #define ERROR_IPSEC_IKE_NEGOTIATION_PENDING 0x000035EB
2577 #define ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR 0x000035EC
2578 #define ERROR_IPSEC_IKE_TIMED_OUT 0x000035ED
2579 #define ERROR_IPSEC_IKE_NO_CERT 0x000035EE
2580 #define ERROR_IPSEC_IKE_SA_DELETED 0x000035EF
2581 #define ERROR_IPSEC_IKE_SA_REAPED 0x000035F0
2582 #define ERROR_IPSEC_IKE_MM_ACQUIRE_DROP 0x000035F1
2583 #define ERROR_IPSEC_IKE_QM_ACQUIRE_DROP 0x000035F2
2584 #define ERROR_IPSEC_IKE_QUEUE_DROP_MM 0x000035F3
2585 #define ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM 0x000035F4
2586 #define ERROR_IPSEC_IKE_DROP_NO_RESPONSE 0x000035F5
2587 #define ERROR_IPSEC_IKE_MM_DELAY_DROP 0x000035F6
2588 #define ERROR_IPSEC_IKE_QM_DELAY_DROP 0x000035F7
2589 #define ERROR_IPSEC_IKE_ERROR 0x000035F8
2590 #define ERROR_IPSEC_IKE_CRL_FAILED 0x000035F9
2591 #define ERROR_IPSEC_IKE_INVALID_KEY_USAGE 0x000035FA
2592 #define ERROR_IPSEC_IKE_INVALID_CERT_TYPE 0x000035FB
2593 #define ERROR_IPSEC_IKE_NO_PRIVATE_KEY 0x000035FC
2594 #define ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY 0x000035FD
2595 #define ERROR_IPSEC_IKE_DH_FAIL 0x000035FE
2596 #define ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED 0x000035FF
2597 #define ERROR_IPSEC_IKE_INVALID_HEADER 0x00003600
2598 #define ERROR_IPSEC_IKE_NO_POLICY 0x00003601
2599 #define ERROR_IPSEC_IKE_INVALID_SIGNATURE 0x00003602
2600 #define ERROR_IPSEC_IKE_KERBEROS_ERROR 0x00003603
2601 #define ERROR_IPSEC_IKE_NO_PUBLIC_KEY 0x00003604
2602 #define ERROR_IPSEC_IKE_PROCESS_ERR 0x00003605
2603 #define ERROR_IPSEC_IKE_PROCESS_ERR_SA 0x00003606
2604 #define ERROR_IPSEC_IKE_PROCESS_ERR_PROP 0x00003607
2605 #define ERROR_IPSEC_IKE_PROCESS_ERR_TRANS 0x00003608
2606 #define ERROR_IPSEC_IKE_PROCESS_ERR_KE 0x00003609
2607 #define ERROR_IPSEC_IKE_PROCESS_ERR_ID 0x0000360A
2608 #define ERROR_IPSEC_IKE_PROCESS_ERR_CERT 0x0000360B
2609 #define ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ 0x0000360C
2610 #define ERROR_IPSEC_IKE_PROCESS_ERR_HASH 0x0000360D
2611 #define ERROR_IPSEC_IKE_PROCESS_ERR_SIG 0x0000360E
2612 #define ERROR_IPSEC_IKE_PROCESS_ERR_NONCE 0x0000360F
2613 #define ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY 0x00003610
2614 #define ERROR_IPSEC_IKE_PROCESS_ERR_DELETE 0x00003611
2615 #define ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR 0x00003612
2616 #define ERROR_IPSEC_IKE_INVALID_PAYLOAD 0x00003613
2617 #define ERROR_IPSEC_IKE_LOAD_SOFT_SA 0x00003614
2618 #define ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN 0x00003615
2619 #define ERROR_IPSEC_IKE_INVALID_COOKIE 0x00003616
2620 #define ERROR_IPSEC_IKE_NO_PEER_CERT 0x00003617
2621 #define ERROR_IPSEC_IKE_PEER_CRL_FAILED 0x00003618
2622 #define ERROR_IPSEC_IKE_POLICY_CHANGE 0x00003619
2623 #define ERROR_IPSEC_IKE_NO_MM_POLICY 0x0000361A
2624 #define ERROR_IPSEC_IKE_NOTCBPRIV 0x0000361B
2625 #define ERROR_IPSEC_IKE_SECLOADFAIL 0x0000361C
2626 #define ERROR_IPSEC_IKE_FAILSSPINIT 0x0000361D
2627 #define ERROR_IPSEC_IKE_FAILQUERYSSP 0x0000361E
2628 #define ERROR_IPSEC_IKE_SRVACQFAIL 0x0000361F
2629 #define ERROR_IPSEC_IKE_SRVQUERYCRED 0x00003620
2630 #define ERROR_IPSEC_IKE_GETSPIFAIL 0x00003621
2631 #define ERROR_IPSEC_IKE_INVALID_FILTER 0x00003622
2632 #define ERROR_IPSEC_IKE_OUT_OF_MEMORY 0x00003623
2633 #define ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED 0x00003624
2634 #define ERROR_IPSEC_IKE_INVALID_POLICY 0x00003625
2635 #define ERROR_IPSEC_IKE_UNKNOWN_DOI 0x00003626
2636 #define ERROR_IPSEC_IKE_INVALID_SITUATION 0x00003627
2637 #define ERROR_IPSEC_IKE_DH_FAILURE 0x00003628
2638 #define ERROR_IPSEC_IKE_INVALID_GROUP 0x00003629
2639 #define ERROR_IPSEC_IKE_ENCRYPT 0x0000362A
2640 #define ERROR_IPSEC_IKE_DECRYPT 0x0000362B
2641 #define ERROR_IPSEC_IKE_POLICY_MATCH 0x0000362C
2642 #define ERROR_IPSEC_IKE_UNSUPPORTED_ID 0x0000362D
2643 #define ERROR_IPSEC_IKE_INVALID_HASH 0x0000362E
2644 #define ERROR_IPSEC_IKE_INVALID_HASH_ALG 0x0000362F
2645 #define ERROR_IPSEC_IKE_INVALID_HASH_SIZE 0x00003630
2646 #define ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG 0x00003631
2647 #define ERROR_IPSEC_IKE_INVALID_AUTH_ALG 0x00003632
2648 #define ERROR_IPSEC_IKE_INVALID_SIG 0x00003633
2649 #define ERROR_IPSEC_IKE_LOAD_FAILED 0x00003634
2650 #define ERROR_IPSEC_IKE_RPC_DELETE 0x00003635
2651 #define ERROR_IPSEC_IKE_BENIGN_REINIT 0x00003636
2652 #define ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY 0x00003637
2653 #define ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION 0x00003638
2654 #define ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN 0x00003639
2655 #define ERROR_IPSEC_IKE_MM_LIMIT 0x0000363A
2656 #define ERROR_IPSEC_IKE_NEGOTIATION_DISABLED 0x0000363B
2657 #define ERROR_IPSEC_IKE_QM_LIMIT 0x0000363C
2658 #define ERROR_IPSEC_IKE_MM_EXPIRED 0x0000363D
2659 #define ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID 0x0000363E
2660 #define ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH 0x0000363F
2661 #define ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID 0x00003640
2662 #define ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD 0x00003641
2663 #define ERROR_IPSEC_IKE_DOS_COOKIE_SENT 0x00003642
2664 #define ERROR_IPSEC_IKE_SHUTTING_DOWN 0x00003643
2665 #define ERROR_IPSEC_IKE_CGA_AUTH_FAILED 0x00003644
2666 #define ERROR_IPSEC_IKE_PROCESS_ERR_NATOA 0x00003645
2667 #define ERROR_IPSEC_IKE_INVALID_MM_FOR_QM 0x00003646
2668 #define ERROR_IPSEC_IKE_QM_EXPIRED 0x00003647
2669 #define ERROR_IPSEC_IKE_TOO_MANY_FILTERS 0x00003648
2670 #define ERROR_IPSEC_IKE_NEG_STATUS_END 0x00003649
2671 #define ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL 0x0000364A
2672 #define ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE 0x0000364B
2673 #define ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING 0x0000364C
2674 #define ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING 0x0000364D
2675 #define ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS 0x0000364E
2676 #define ERROR_IPSEC_IKE_RATELIMIT_DROP 0x0000364F
2677 #define ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE 0x00003650
2678 #define ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE 0x00003651
2679 #define ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE 0x00003652
2680 #define ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY 0x00003653
2681 #define ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE 0x00003654
2682 #define ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END 0x00003655
2683 #define ERROR_IPSEC_BAD_SPI 0x00003656
2684 #define ERROR_IPSEC_SA_LIFETIME_EXPIRED 0x00003657
2685 #define ERROR_IPSEC_WRONG_SA 0x00003658
2686 #define ERROR_IPSEC_REPLAY_CHECK_FAILED 0x00003659
2687 #define ERROR_IPSEC_INVALID_PACKET 0x0000365A
2688 #define ERROR_IPSEC_INTEGRITY_CHECK_FAILED 0x0000365B
2689 #define ERROR_IPSEC_CLEAR_TEXT_DROP 0x0000365C
2690 #define ERROR_IPSEC_AUTH_FIREWALL_DROP 0x0000365D
2691 #define ERROR_IPSEC_THROTTLE_DROP 0x0000365E
2692 #define ERROR_IPSEC_DOSP_BLOCK 0x00003665
2693 #define ERROR_IPSEC_DOSP_RECEIVED_MULTICAST 0x00003666
2694 #define ERROR_IPSEC_DOSP_INVALID_PACKET 0x00003667
2695 #define ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED 0x00003668
2696 #define ERROR_IPSEC_DOSP_MAX_ENTRIES 0x00003669
2697 #define ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED 0x0000366A
2698 #define ERROR_IPSEC_DOSP_NOT_INSTALLED 0x0000366B
2699 #define ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES 0x0000366C
2700 #define ERROR_SXS_SECTION_NOT_FOUND 0x000036B0
2701 #define ERROR_SXS_CANT_GEN_ACTCTX 0x000036B1
2702 #define ERROR_SXS_INVALID_ACTCTXDATA_FORMAT 0x000036B2
2703 #define ERROR_SXS_ASSEMBLY_NOT_FOUND 0x000036B3
2704 #define ERROR_SXS_MANIFEST_FORMAT_ERROR 0x000036B4
2705 #define ERROR_SXS_MANIFEST_PARSE_ERROR 0x000036B5
2706 #define ERROR_SXS_ACTIVATION_CONTEXT_DISABLED 0x000036B6
2707 #define ERROR_SXS_KEY_NOT_FOUND 0x000036B7
2708 #define ERROR_SXS_VERSION_CONFLICT 0x000036B8
2709 #define ERROR_SXS_WRONG_SECTION_TYPE 0x000036B9
2710 #define ERROR_SXS_THREAD_QUERIES_DISABLED 0x000036BA
2711 #define ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET 0x000036BB
2712 #define ERROR_SXS_UNKNOWN_ENCODING_GROUP 0x000036BC
2713 #define ERROR_SXS_UNKNOWN_ENCODING 0x000036BD
2714 #define ERROR_SXS_INVALID_XML_NAMESPACE_URI 0x000036BE
2715 #define ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED 0x000036BF
2716 #define ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED 0x000036C0
2717 #define ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE 0x000036C1
2718 #define ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE 0x000036C2
2719 #define ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE 0x000036C3
2720 #define ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT 0x000036C4
2721 #define ERROR_SXS_DUPLICATE_DLL_NAME 0x000036C5
2722 #define ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME 0x000036C6
2723 #define ERROR_SXS_DUPLICATE_CLSID 0x000036C7
2724 #define ERROR_SXS_DUPLICATE_IID 0x000036C8
2725 #define ERROR_SXS_DUPLICATE_TLBID 0x000036C9
2726 #define ERROR_SXS_DUPLICATE_PROGID 0x000036CA
2727 #define ERROR_SXS_DUPLICATE_ASSEMBLY_NAME 0x000036CB
2728 #define ERROR_SXS_FILE_HASH_MISMATCH 0x000036CC
2729 #define ERROR_SXS_POLICY_PARSE_ERROR 0x000036CD
2730 #define ERROR_SXS_XML_E_MISSINGQUOTE 0x000036CE
2731 #define ERROR_SXS_XML_E_COMMENTSYNTAX 0x000036CF
2732 #define ERROR_SXS_XML_E_BADSTARTNAMECHAR 0x000036D0
2733 #define ERROR_SXS_XML_E_BADNAMECHAR 0x000036D1
2734 #define ERROR_SXS_XML_E_BADCHARINSTRING 0x000036D2
2735 #define ERROR_SXS_XML_E_XMLDECLSYNTAX 0x000036D3
2736 #define ERROR_SXS_XML_E_BADCHARDATA 0x000036D4
2737 #define ERROR_SXS_XML_E_MISSINGWHITESPACE 0x000036D5
2738 #define ERROR_SXS_XML_E_EXPECTINGTAGEND 0x000036D6
2739 #define ERROR_SXS_XML_E_MISSINGSEMICOLON 0x000036D7
2740 #define ERROR_SXS_XML_E_UNBALANCEDPAREN 0x000036D8
2741 #define ERROR_SXS_XML_E_INTERNALERROR 0x000036D9
2742 #define ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE 0x000036DA
2743 #define ERROR_SXS_XML_E_INCOMPLETE_ENCODING 0x000036DB
2744 #define ERROR_SXS_XML_E_MISSING_PAREN 0x000036DC
2745 #define ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE 0x000036DD
2746 #define ERROR_SXS_XML_E_MULTIPLE_COLONS 0x000036DE
2747 #define ERROR_SXS_XML_E_INVALID_DECIMAL 0x000036DF
2748 #define ERROR_SXS_XML_E_INVALID_HEXIDECIMAL 0x000036E0
2749 #define ERROR_SXS_XML_E_INVALID_UNICODE 0x000036E1
2750 #define ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK 0x000036E2
2751 #define ERROR_SXS_XML_E_UNEXPECTEDENDTAG 0x000036E3
2752 #define ERROR_SXS_XML_E_UNCLOSEDTAG 0x000036E4
2753 #define ERROR_SXS_XML_E_DUPLICATEATTRIBUTE 0x000036E5
2754 #define ERROR_SXS_XML_E_MULTIPLEROOTS 0x000036E6
2755 #define ERROR_SXS_XML_E_INVALIDATROOTLEVEL 0x000036E7
2756 #define ERROR_SXS_XML_E_BADXMLDECL 0x000036E8
2757 #define ERROR_SXS_XML_E_MISSINGROOT 0x000036E9
2758 #define ERROR_SXS_XML_E_UNEXPECTEDEOF 0x000036EA
2759 #define ERROR_SXS_XML_E_BADPEREFINSUBSET 0x000036EB
2760 #define ERROR_SXS_XML_E_UNCLOSEDSTARTTAG 0x000036EC
2761 #define ERROR_SXS_XML_E_UNCLOSEDENDTAG 0x000036ED
2762 #define ERROR_SXS_XML_E_UNCLOSEDSTRING 0x000036EE
2763 #define ERROR_SXS_XML_E_UNCLOSEDCOMMENT 0x000036EF
2764 #define ERROR_SXS_XML_E_UNCLOSEDDECL 0x000036F0
2765 #define ERROR_SXS_XML_E_UNCLOSEDCDATA 0x000036F1
2766 #define ERROR_SXS_XML_E_RESERVEDNAMESPACE 0x000036F2
2767 #define ERROR_SXS_XML_E_INVALIDENCODING 0x000036F3
2768 #define ERROR_SXS_XML_E_INVALIDSWITCH 0x000036F4
2769 #define ERROR_SXS_XML_E_BADXMLCASE 0x000036F5
2770 #define ERROR_SXS_XML_E_INVALID_STANDALONE 0x000036F6
2771 #define ERROR_SXS_XML_E_UNEXPECTED_STANDALONE 0x000036F7
2772 #define ERROR_SXS_XML_E_INVALID_VERSION 0x000036F8
2773 #define ERROR_SXS_XML_E_MISSINGEQUALS 0x000036F9
2774 #define ERROR_SXS_PROTECTION_RECOVERY_FAILED 0x000036FA
2775 #define ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT 0x000036FB
2776 #define ERROR_SXS_PROTECTION_CATALOG_NOT_VALID 0x000036FC
2777 #define ERROR_SXS_UNTRANSLATABLE_HRESULT 0x000036FD
2778 #define ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING 0x000036FE
2779 #define ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE 0x000036FF
2780 #define ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME 0x00003700
2781 #define ERROR_SXS_ASSEMBLY_MISSING 0x00003701
2782 #define ERROR_SXS_CORRUPT_ACTIVATION_STACK 0x00003702
2783 #define ERROR_SXS_CORRUPTION 0x00003703
2784 #define ERROR_SXS_EARLY_DEACTIVATION 0x00003704
2785 #define ERROR_SXS_INVALID_DEACTIVATION 0x00003705
2786 #define ERROR_SXS_MULTIPLE_DEACTIVATION 0x00003706
2787 #define ERROR_SXS_PROCESS_TERMINATION_REQUESTED 0x00003707
2788 #define ERROR_SXS_RELEASE_ACTIVATION_CONTEXT 0x00003708
2789 #define ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY 0x00003709
2790 #define ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE 0x0000370A
2791 #define ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME 0x0000370B
2792 #define ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE 0x0000370C
2793 #define ERROR_SXS_IDENTITY_PARSE_ERROR 0x0000370D
2794 #define ERROR_MALFORMED_SUBSTITUTION_STRING 0x0000370E
2795 #define ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN 0x0000370F
2796 #define ERROR_UNMAPPED_SUBSTITUTION_STRING 0x00003710
2797 #define ERROR_SXS_ASSEMBLY_NOT_LOCKED 0x00003711
2798 #define ERROR_SXS_COMPONENT_STORE_CORRUPT 0x00003712
2799 #define ERROR_ADVANCED_INSTALLER_FAILED 0x00003713
2800 #define ERROR_XML_ENCODING_MISMATCH 0x00003714
2801 #define ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT 0x00003715
2802 #define ERROR_SXS_IDENTITIES_DIFFERENT 0x00003716
2803 #define ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT 0x00003717
2804 #define ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY 0x00003718
2805 #define ERROR_SXS_MANIFEST_TOO_BIG 0x00003719
2806 #define ERROR_SXS_SETTING_NOT_REGISTERED 0x0000371A
2807 #define ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE 0x0000371B
2808 #define ERROR_SMI_PRIMITIVE_INSTALLER_FAILED 0x0000371C
2809 #define ERROR_GENERIC_COMMAND_FAILED 0x0000371D
2810 #define ERROR_SXS_FILE_HASH_MISSING 0x0000371E
2811 #define ERROR_EVT_INVALID_CHANNEL_PATH 0x00003A98
2812 #define ERROR_EVT_INVALID_QUERY 0x00003A99
2813 #define ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND 0x00003A9A
2814 #define ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND 0x00003A9B
2815 #define ERROR_EVT_INVALID_PUBLISHER_NAME 0x00003A9C
2816 #define ERROR_EVT_INVALID_EVENT_DATA 0x00003A9D
2817 #define ERROR_EVT_CHANNEL_NOT_FOUND 0x00003A9F
2818 #define ERROR_EVT_MALFORMED_XML_TEXT 0x00003AA0
2819 #define ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL 0x00003AA1
2820 #define ERROR_EVT_CONFIGURATION_ERROR 0x00003AA2
2821 #define ERROR_EVT_QUERY_RESULT_STALE 0x00003AA3
2822 #define ERROR_EVT_QUERY_RESULT_INVALID_POSITION 0x00003AA4
2823 #define ERROR_EVT_NON_VALIDATING_MSXML 0x00003AA5
2824 #define ERROR_EVT_FILTER_ALREADYSCOPED 0x00003AA6
2825 #define ERROR_EVT_FILTER_NOTELTSET 0x00003AA7
2826 #define ERROR_EVT_FILTER_INVARG 0x00003AA8
2827 #define ERROR_EVT_FILTER_INVTEST 0x00003AA9
2828 #define ERROR_EVT_FILTER_INVTYPE 0x00003AAA
2829 #define ERROR_EVT_FILTER_PARSEERR 0x00003AAB
2830 #define ERROR_EVT_FILTER_UNSUPPORTEDOP 0x00003AAC
2831 #define ERROR_EVT_FILTER_UNEXPECTEDTOKEN 0x00003AAD
2832 #define ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL 0x00003AAE
2833 #define ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE 0x00003AAF
2834 #define ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE 0x00003AB0
2835 #define ERROR_EVT_CHANNEL_CANNOT_ACTIVATE 0x00003AB1
2836 #define ERROR_EVT_FILTER_TOO_COMPLEX 0x00003AB2
2837 #define ERROR_EVT_MESSAGE_NOT_FOUND 0x00003AB3
2838 #define ERROR_EVT_MESSAGE_ID_NOT_FOUND 0x00003AB4
2839 #define ERROR_EVT_UNRESOLVED_VALUE_INSERT 0x00003AB5
2840 #define ERROR_EVT_UNRESOLVED_PARAMETER_INSERT 0x00003AB6
2841 #define ERROR_EVT_MAX_INSERTS_REACHED 0x00003AB7
2842 #define ERROR_EVT_EVENT_DEFINITION_NOT_FOUND 0x00003AB8
2843 #define ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND 0x00003AB9
2844 #define ERROR_EVT_VERSION_TOO_OLD 0x00003ABA
2845 #define ERROR_EVT_VERSION_TOO_NEW 0x00003ABB
2846 #define ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY 0x00003ABC
2847 #define ERROR_EVT_PUBLISHER_DISABLED 0x00003ABD
2848 #define ERROR_EVT_FILTER_OUT_OF_RANGE 0x00003ABE
2849 #define ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE 0x00003AE8
2850 #define ERROR_EC_LOG_DISABLED 0x00003AE9
2851 #define ERROR_EC_CIRCULAR_FORWARDING 0x00003AEA
2852 #define ERROR_EC_CREDSTORE_FULL 0x00003AEB
2853 #define ERROR_EC_CRED_NOT_FOUND 0x00003AEC
2854 #define ERROR_EC_NO_ACTIVE_CHANNEL 0x00003AED
2855 #define ERROR_MUI_FILE_NOT_FOUND 0x00003AFC
2856 #define ERROR_MUI_INVALID_FILE 0x00003AFD
2857 #define ERROR_MUI_INVALID_RC_CONFIG 0x00003AFE
2858 #define ERROR_MUI_INVALID_LOCALE_NAME 0x00003AFF
2859 #define ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME 0x00003B00
2860 #define ERROR_MUI_FILE_NOT_LOADED 0x00003B01
2861 #define ERROR_RESOURCE_ENUM_USER_STOP 0x00003B02
2862 #define ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED 0x00003B03
2863 #define ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME 0x00003B04
2864 #define ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE 0x00003B06
2865 #define ERROR_MRM_INVALID_PRICONFIG 0x00003B07
2866 #define ERROR_MRM_INVALID_FILE_TYPE 0x00003B08
2867 #define ERROR_MRM_UNKNOWN_QUALIFIER 0x00003B09
2868 #define ERROR_MRM_INVALID_QUALIFIER_VALUE 0x00003B0A
2869 #define ERROR_MRM_NO_CANDIDATE 0x00003B0B
2870 #define ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE 0x00003B0C
2871 #define ERROR_MRM_RESOURCE_TYPE_MISMATCH 0x00003B0D
2872 #define ERROR_MRM_DUPLICATE_MAP_NAME 0x00003B0E
2873 #define ERROR_MRM_DUPLICATE_ENTRY 0x00003B0F
2874 #define ERROR_MRM_INVALID_RESOURCE_IDENTIFIER 0x00003B10
2875 #define ERROR_MRM_FILEPATH_TOO_LONG 0x00003B11
2876 #define ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE 0x00003B12
2877 #define ERROR_MRM_INVALID_PRI_FILE 0x00003B16
2878 #define ERROR_MRM_NAMED_RESOURCE_NOT_FOUND 0x00003B17
2879 #define ERROR_MRM_MAP_NOT_FOUND 0x00003B1F
2880 #define ERROR_MRM_UNSUPPORTED_PROFILE_TYPE 0x00003B20
2881 #define ERROR_MRM_INVALID_QUALIFIER_OPERATOR 0x00003B21
2882 #define ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE 0x00003B22
2883 #define ERROR_MRM_AUTOMERGE_ENABLED 0x00003B23
2884 #define ERROR_MRM_TOO_MANY_RESOURCES 0x00003B24
2885 #define ERROR_MCA_INVALID_CAPABILITIES_STRING 0x00003B60
2886 #define ERROR_MCA_INVALID_VCP_VERSION 0x00003B61
2887 #define ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION 0x00003B62
2888 #define ERROR_MCA_MCCS_VERSION_MISMATCH 0x00003B63
2889 #define ERROR_MCA_UNSUPPORTED_MCCS_VERSION 0x00003B64
2890 #define ERROR_MCA_INTERNAL_ERROR 0x00003B65
2891 #define ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED 0x00003B66
2892 #define ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE 0x00003B67
2893 #define ERROR_AMBIGUOUS_SYSTEM_DEVICE 0x00003B92
2894 #define ERROR_SYSTEM_DEVICE_NOT_FOUND 0x00003BC3
2895 #define ERROR_HASH_NOT_SUPPORTED 0x00003BC4
2896 #define ERROR_HASH_NOT_PRESENT 0x00003BC5
2897 #define ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED 0x00003BD9
2898 #define ERROR_GPIO_CLIENT_INFORMATION_INVALID 0x00003BDA
2899 #define ERROR_GPIO_VERSION_NOT_SUPPORTED 0x00003BDB
2900 #define ERROR_GPIO_INVALID_REGISTRATION_PACKET 0x00003BDC
2901 #define ERROR_GPIO_OPERATION_DENIED 0x00003BDD
2902 #define ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE 0x00003BDE
2903 #define ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED 0x00003BDF
2904 #define ERROR_CANNOT_SWITCH_RUNLEVEL 0x00003C28
2905 #define ERROR_INVALID_RUNLEVEL_SETTING 0x00003C29
2906 #define ERROR_RUNLEVEL_SWITCH_TIMEOUT 0x00003C2A
2907 #define ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT 0x00003C2B
2908 #define ERROR_RUNLEVEL_SWITCH_IN_PROGRESS 0x00003C2C
2909 #define ERROR_SERVICES_FAILED_AUTOSTART 0x00003C2D
2910 #define ERROR_COM_TASK_STOP_PENDING 0x00003C8D
2911 #define ERROR_INSTALL_OPEN_PACKAGE_FAILED 0x00003CF0
2912 #define ERROR_INSTALL_PACKAGE_NOT_FOUND 0x00003CF1
2913 #define ERROR_INSTALL_INVALID_PACKAGE 0x00003CF2
2914 #define ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED 0x00003CF3
2915 #define ERROR_INSTALL_OUT_OF_DISK_SPACE 0x00003CF4
2916 #define ERROR_INSTALL_NETWORK_FAILURE 0x00003CF5
2917 #define ERROR_INSTALL_REGISTRATION_FAILURE 0x00003CF6
2918 #define ERROR_INSTALL_DEREGISTRATION_FAILURE 0x00003CF7
2919 #define ERROR_INSTALL_CANCEL 0x00003CF8
2920 #define ERROR_INSTALL_FAILED 0x00003CF9
2921 #define ERROR_REMOVE_FAILED 0x00003CFA
2922 #define ERROR_PACKAGE_ALREADY_EXISTS 0x00003CFB
2923 #define ERROR_NEEDS_REMEDIATION 0x00003CFC
2924 #define ERROR_INSTALL_PREREQUISITE_FAILED 0x00003CFD
2925 #define ERROR_PACKAGE_REPOSITORY_CORRUPTED 0x00003CFE
2926 #define ERROR_INSTALL_POLICY_FAILURE 0x00003CFF
2927 #define ERROR_PACKAGE_UPDATING 0x00003D00
2928 #define ERROR_DEPLOYMENT_BLOCKED_BY_POLICY 0x00003D01
2929 #define ERROR_PACKAGES_IN_USE 0x00003D02
2930 #define ERROR_RECOVERY_FILE_CORRUPT 0x00003D03
2931 #define ERROR_INVALID_STAGED_SIGNATURE 0x00003D04
2932 #define ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED 0x00003D05
2933 #define ERROR_INSTALL_PACKAGE_DOWNGRADE 0x00003D06
2934 #define ERROR_SYSTEM_NEEDS_REMEDIATION 0x00003D07
2935 #define ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN 0x00003D08
2936 #define ERROR_RESILIENCY_FILE_CORRUPT 0x00003D09
2937 #define ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING 0x00003D0A
2938 #define APPMODEL_ERROR_NO_PACKAGE 0x00003D54
2939 #define APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT 0x00003D55
2940 #define APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT 0x00003D56
2941 #define APPMODEL_ERROR_NO_APPLICATION 0x00003D57
2942 #define ERROR_STATE_LOAD_STORE_FAILED 0x00003DB8
2943 #define ERROR_STATE_GET_VERSION_FAILED 0x00003DB9
2944 #define ERROR_STATE_SET_VERSION_FAILED 0x00003DBA
2945 #define ERROR_STATE_STRUCTURED_RESET_FAILED 0x00003DBB
2946 #define ERROR_STATE_OPEN_CONTAINER_FAILED 0x00003DBC
2947 #define ERROR_STATE_CREATE_CONTAINER_FAILED 0x00003DBD
2948 #define ERROR_STATE_DELETE_CONTAINER_FAILED 0x00003DBE
2949 #define ERROR_STATE_READ_SETTING_FAILED 0x00003DBF
2950 #define ERROR_STATE_WRITE_SETTING_FAILED 0x00003DC0
2951 #define ERROR_STATE_DELETE_SETTING_FAILED 0x00003DC1
2952 #define ERROR_STATE_QUERY_SETTING_FAILED 0x00003DC2
2953 #define ERROR_STATE_READ_COMPOSITE_SETTING_FAILED 0x00003DC3
2954 #define ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED 0x00003DC4
2955 #define ERROR_STATE_ENUMERATE_CONTAINER_FAILED 0x00003DC5
2956 #define ERROR_STATE_ENUMERATE_SETTINGS_FAILED 0x00003DC6
2957 #define ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED 0x00003DC7
2958 #define ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED 0x00003DC8
2959 #define ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED 0x00003DC9
2960 #define ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED 0x00003DCA
2961 #define ERROR_API_UNAVAILABLE 0x00003DE1
2962 
2963 #ifndef FACILITY_WEBSERVICES
2964 #define FACILITY_WEBSERVICES 61
2965 #define WS_S_ASYNC 0x003D0000
2966 #define WS_S_END 0x003D0001
2967 #define WS_E_INVALID_FORMAT 0x803D0000
2968 #define WS_E_OBJECT_FAULTED 0x803D0001
2969 #define WS_E_NUMERIC_OVERFLOW 0x803D0002
2970 #define WS_E_INVALID_OPERATION 0x803D0003
2971 #define WS_E_OPERATION_ABORTED 0x803D0004
2972 #define WS_E_ENDPOINT_ACCESS_DENIED 0x803D0005
2973 #define WS_E_OPERATION_TIMED_OUT 0x803D0006
2974 #define WS_E_OPERATION_ABANDONED 0x803D0007
2975 #define WS_E_QUOTA_EXCEEDED 0x803D0008
2976 #define WS_E_NO_TRANSLATION_AVAILABLE 0x803D0009
2977 #define WS_E_SECURITY_VERIFICATION_FAILURE 0x803D000A
2978 #define WS_E_ADDRESS_IN_USE 0x803D000B
2979 #define WS_E_ADDRESS_NOT_AVAILABLE 0x803D000C
2980 #define WS_E_ENDPOINT_NOT_FOUND 0x803D000D
2981 #define WS_E_ENDPOINT_NOT_AVAILABLE 0x803D000E
2982 #define WS_E_ENDPOINT_FAILURE 0x803D000F
2983 #define WS_E_ENDPOINT_UNREACHABLE 0x803D0010
2984 #define WS_E_ENDPOINT_ACTION_NOT_SUPPORTED 0x803D0011
2985 #define WS_E_ENDPOINT_TOO_BUSY 0x803D0012
2986 #define WS_E_ENDPOINT_FAULT_RECEIVED 0x803D0013
2987 #define WS_E_ENDPOINT_DISCONNECTED 0x803D0014
2988 #define WS_E_PROXY_FAILURE 0x803D0015
2989 #define WS_E_PROXY_ACCESS_DENIED 0x803D0016
2990 #define WS_E_NOT_SUPPORTED 0x803D0017
2991 #define WS_E_PROXY_REQUIRES_BASIC_AUTH 0x803D0018
2992 #define WS_E_PROXY_REQUIRES_DIGEST_AUTH 0x803D0019
2993 #define WS_E_PROXY_REQUIRES_NTLM_AUTH 0x803D001A
2994 #define WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH 0x803D001B
2995 #define WS_E_SERVER_REQUIRES_BASIC_AUTH 0x803D001C
2996 #define WS_E_SERVER_REQUIRES_DIGEST_AUTH 0x803D001D
2997 #define WS_E_SERVER_REQUIRES_NTLM_AUTH 0x803D001E
2998 #define WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH 0x803D001F
2999 #define WS_E_INVALID_ENDPOINT_URL 0x803D0020
3000 #define WS_E_OTHER 0x803D0021
3001 #define WS_E_SECURITY_TOKEN_EXPIRED 0x803D0022
3002 #define WS_E_SECURITY_SYSTEM_FAILURE 0x803D0023
3003 #endif
3004 
3005 #define NTE_BAD_UID INT32_C(0x80090001)
3006 #define NTE_BAD_HASH INT32_C(0x80090002)
3007 #define NTE_BAD_KEY INT32_C(0x80090003)
3008 #define NTE_BAD_LEN INT32_C(0x80090004)
3009 #define NTE_BAD_DATA INT32_C(0x80090005)
3010 #define NTE_BAD_SIGNATURE INT32_C(0x80090006)
3011 #define NTE_BAD_VER INT32_C(0x80090007)
3012 #define NTE_BAD_ALGID INT32_C(0x80090008)
3013 #define NTE_BAD_FLAGS INT32_C(0x80090009)
3014 #define NTE_BAD_TYPE INT32_C(0x8009000A)
3015 #define NTE_BAD_KEY_STATE INT32_C(0x8009000B)
3016 #define NTE_BAD_HASH_STATE INT32_C(0x8009000C)
3017 #define NTE_NO_KEY INT32_C(0x8009000D)
3018 #define NTE_NO_MEMORY INT32_C(0x8009000E)
3019 #define NTE_EXISTS INT32_C(0x8009000F)
3020 #define NTE_PERM INT32_C(0x80090010)
3021 #define NTE_NOT_FOUND INT32_C(0x80090011)
3022 #define NTE_DOUBLE_ENCRYPT INT32_C(0x80090012)
3023 #define NTE_BAD_PROVIDER INT32_C(0x80090013)
3024 #define NTE_BAD_PROV_TYPE INT32_C(0x80090014)
3025 #define NTE_BAD_PUBLIC_KEY INT32_C(0x80090015)
3026 #define NTE_BAD_KEYSET INT32_C(0x80090016)
3027 #define NTE_PROV_TYPE_NOT_DEF INT32_C(0x80090017)
3028 #define NTE_PROV_TYPE_ENTRY_BAD INT32_C(0x80090018)
3029 #define NTE_KEYSET_NOT_DEF INT32_C(0x80090019)
3030 #define NTE_KEYSET_ENTRY_BAD INT32_C(0x8009001A)
3031 #define NTE_PROV_TYPE_NO_MATCH INT32_C(0x8009001B)
3032 #define NTE_SIGNATURE_FILE_BAD INT32_C(0x8009001C)
3033 #define NTE_PROVIDER_DLL_FAIL INT32_C(0x8009001D)
3034 #define NTE_PROV_DLL_NOT_FOUND INT32_C(0x8009001E)
3035 #define NTE_BAD_KEYSET_PARAM INT32_C(0x8009001F)
3036 #define NTE_FAIL INT32_C(0x80090020)
3037 #define NTE_SYS_ERR INT32_C(0x80090021)
3038 #define NTE_SILENT_CONTEXT INT32_C(0x80090022)
3039 #define NTE_TOKEN_KEYSET_STORAGE_FULL INT32_C(0x80090023)
3040 #define NTE_TEMPORARY_PROFILE INT32_C(0x80090024)
3041 #define NTE_FIXEDPARAMETER INT32_C(0x80090025)
3042 #define NTE_NO_MORE_ITEMS ERROR_NO_MORE_ITEMS
3043 #define NTE_NOT_SUPPORTED ERROR_NOT_SUPPORTED
3044 #define NTE_INVALID_PARAMETER INT32_C(0x80090027)
3045 
3046 #define EXCEPTION_MAXIMUM_PARAMETERS 15
3047 
3048 typedef struct s_EXCEPTION_RECORD EXCEPTION_RECORD;
3049 typedef struct s_EXCEPTION_RECORD* PEXCEPTION_RECORD;
3050 
3052 {
3053  DWORD ExceptionCode;
3054  DWORD ExceptionFlags;
3055  PEXCEPTION_RECORD ExceptionRecord;
3056  PVOID ExceptionAddress;
3057  DWORD NumberParameters;
3058  ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
3059 };
3060 
3061 typedef void* PCONTEXT;
3062 
3063 typedef struct s_EXCEPTION_POINTERS
3064 {
3065  PEXCEPTION_RECORD ExceptionRecord;
3066  PCONTEXT ContextRecord;
3067 } EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;
3068 
3069 typedef LONG (*PTOP_LEVEL_EXCEPTION_FILTER)(PEXCEPTION_POINTERS ExceptionInfo);
3070 typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER;
3071 
3072 typedef LONG (*PVECTORED_EXCEPTION_HANDLER)(PEXCEPTION_POINTERS ExceptionInfo);
3073 
3074 #ifdef __cplusplus
3075 extern "C"
3076 {
3077 #endif
3078 
3079  WINPR_API UINT GetErrorMode(void);
3080 
3081  WINPR_API UINT SetErrorMode(UINT uMode);
3082 
3083  WINPR_API DWORD GetLastError(void);
3084 
3085  WINPR_API VOID SetLastError(DWORD dwErrCode);
3086 
3087  WINPR_API VOID RestoreLastError(DWORD dwErrCode);
3088 
3089  WINPR_API VOID RaiseException(DWORD dwExceptionCode, DWORD dwExceptionFlags,
3090  DWORD nNumberOfArguments, CONST ULONG_PTR* lpArguments);
3091 
3092  WINPR_API LONG UnhandledExceptionFilter(PEXCEPTION_POINTERS ExceptionInfo);
3093 
3094  WINPR_API LPTOP_LEVEL_EXCEPTION_FILTER
3095  SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter);
3096 
3097  WINPR_API PVOID AddVectoredExceptionHandler(ULONG First, PVECTORED_EXCEPTION_HANDLER Handler);
3098 
3099  WINPR_API ULONG RemoveVectoredExceptionHandler(PVOID Handle);
3100 
3101  WINPR_API PVOID AddVectoredContinueHandler(ULONG First, PVECTORED_EXCEPTION_HANDLER Handler);
3102 
3103  WINPR_API ULONG RemoveVectoredContinueHandler(PVOID Handle);
3104 
3105 #ifdef __cplusplus
3106 }
3107 #endif
3108 
3109 #endif
3110 
3111 #endif /* WINPR_ERROR_H */