62689f21f4315d0ad514c40ac154976336265775
[reactos.git] / reactos / include / ddk / status.h
1 #ifndef __INCLUDE_DDK_STATUS_H
2 #define __INCLUDE_DDK_STATUS_H
3
4 #define NTSTAT_SEVERITY_SHIFT 30
5 #define NTSTAT_SEVERITY_MASK 0x00000003
6 #define NTSTAT_FACILITY_SHIFT 16
7 #define NTSTAT_FACILITY_MASK 0x00000FFF
8 #define NTSTAT_CUSTOMER_MASK 0x20000000
9
10 #define NT_SEVERITY(StatCode) (((StatCode) >> NTSTAT_SEVERITY_SHIFT) & NTSTAT_SEVERITY_MASK)
11 #define NT_FACILITY(StatCode) (((StatCode) >> NTSTAT_FACILITY_SHIFT) & NTSTAT_FACILITY_MASK)
12 #define NT_CUSTOMER(StatCode) ((StatCode) & NTSTAT_CUSTOMER_MASK)
13 #define NT_SUCCESS(StatCode) ((NTSTATUS)(StatCode) >= 0)
14
15 /*
16 * Possible status codes
17 * FIXME: These may not be the actual values used by NT
18 */
19
20 #define STATUS_SUCCESS (0x00000000)
21 #ifndef STATUS_WAIT_0
22 #define STATUS_WAIT_0 (0x00000000)
23 #endif
24 #define STATUS_WAIT_63 (0x0000003F)
25 #define STATUS_ABANDONED (0x00000080)
26 #ifndef STATUS_ABANDONED_WAIT_0
27 #define STATUS_ABANDONED_WAIT_0 (0x00000080)
28 #endif
29 #define STATUS_ABANDONED_WAIT_63 (0x000000BF)
30 #ifndef STATUS_USER_APC
31 #define STATUS_USER_APC (0x000000C0)
32 #endif
33 #define STATUS_KERNEL_APC (0x00000100)
34 #define STATUS_ALERTED (0x00000101)
35 #ifndef STATUS_TIMEOUT
36 #define STATUS_TIMEOUT (0x00000102)
37 #endif
38 #ifndef STATUS_PENDING
39 #define STATUS_PENDING (0x00000103)
40 #endif
41 #define STATUS_REPARSE (0x00000104)
42 #define STATUS_MORE_ENTRIES (0x00000105)
43 #define STATUS_NOT_ALL_ASSIGNED (0x00000106)
44 #define STATUS_SOME_NOT_MAPPED (0x00000107)
45 #define STATUS_OPLOCK_BREAK_IN_PROCESS (0x00000108)
46 #define STATUS_VOLUME_MOUNTED (0x00000109)
47 #define STATUS_RXACT_COMMITTED (0x0000010A)
48 #define STATUS_NOTIFY_CLEANUP (0x0000010B)
49 #define STATUS_NOTIFY_ENUM_DIR (0x0000010C)
50 #define STATUS_NO_QUOTAS_NO_ACCOUNT (0x0000010D)
51 #define STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED (0x0000010E)
52
53 #define STATUS_OBJECT_EXISTS (0x40000000)
54 #define STATUS_THREAD_WAS_SUSPENDED (0x40000001)
55 #define STATUS_WORKING_SET_LIMIT_RANGE (0x40000002)
56 #define STATUS_IMAGE_NOT_AT_BASE (0x40000003)
57 #define STATUS_RXACT_STATE_CREATED (0x40000004)
58 #define STATUS_SEGMENT_NOTIFICATION (0x40000005)
59 #define STATUS_LOCAL_USER_SESSION_KEY (0x40000006)
60 #define STATUS_BAD_CURRENT_DIRECTORY (0x40000007)
61 #define STATUS_SERIAL_MORE_WRITES (0x40000008)
62 #define STATUS_REGISTRY_RECOVERED (0x40000009)
63 #define STATUS_FT_READ_RECOVERING_FROM_BACKUP (0x4000000A)
64 #define STATUS_FT_WRITE_RECOVERY (0x4000000B)
65 #define STATUS_SERIAL_COUNTER_TIMEOUT (0x4000000C)
66 #define STATUS_NULL_LM_PASSWORD (0x4000000D)
67 #define STATUS_IMAGE_MACHINE_TYPE_MISMATCH (0x4000000E)
68 #define STATUS_RECEIVE_PARTIAL (0x4000000F)
69 #define STATUS_RECEIVE_EXPEDITED (0x40000010)
70 #define STATUS_RECEIVE_PARTIAL_EXPEDITED (0x40000011)
71 #define STATUS_EVENT_DONE (0x40000012)
72 #define STATUS_EVENT_PENDING (0x40000013)
73 #define STATUS_CHECKING_FILE_SYSTEM (0x40000014)
74 #define STATUS_FATAL_APP_EXIT (0x40000015)
75 #define STATUS_PREDEFINED_HANDLE (0x40000016)
76 #define STATUS_WAS_UNLOCKED (0x40000017)
77 #define STATUS_SERVICE_NOTIFICATION (0x40000018)
78 #define STATUS_WAS_LOCKED (0x40000019)
79 #define STATUS_LOG_HARD_ERROR (0x4000001A)
80 #define STATUS_ALREADY_WIN32 (0x4000001B)
81 #define STATUS_WX86_UNSIMULATE (0x4000001C)
82 #define STATUS_WX86_CONTINUE (0x4000001D)
83 #define STATUS_WX86_SINGLE_STEP (0x4000001E)
84 #define STATUS_WX86_BREAKPOINT (0x4000001F)
85 #define STATUS_WX86_EXCEPTION_CONTINUE (0x40000020)
86 #define STATUS_WX86_EXCEPTION_LASTCHANCE (0x40000021)
87 #define STATUS_WX86_EXCEPTION_CHAIN (0x40000022)
88 #define STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE (0x40000023)
89 #define STATUS_NO_YIELD_PERFORMED (0x40000024)
90 #define STATUS_TIMER_RESUME_IGNORED (0x40000025)
91 #define STATUS_ARBITRATION_UNHANDLED (0x40000026)
92 #define STATUS_CARDBUS_NOT_SUPPORTED (0x40000027)
93 #define STATUS_WX86_CREATEWX86TIB (0x40000028)
94
95 #define STATUS_GUARD_PAGE_VIOLATION (0x80000001)
96 #define STATUS_DATATYPE_MISALIGNMENT (0x80000002)
97 #define STATUS_BREAKPOINT (0x80000003)
98 #define STATUS_SINGLE_STEP (0x80000004)
99 #define STATUS_BUFFER_OVERFLOW (0x80000005)
100 #define STATUS_NO_MORE_FILES (0x80000006)
101 #define STATUS_WAKE_SYSTEM_DEBUGGER (0x80000007)
102
103 #define STATUS_HANDLES_CLOSED (0x8000000A)
104 #define STATUS_NO_INHERITANCE (0x8000000B)
105 #define STATUS_GUID_SUBSTITUTION_MADE (0x8000000C)
106 #define STATUS_PARTIAL_COPY (0x8000000D)
107 #define STATUS_DEVICE_PAPER_EMPTY (0x8000000E)
108 #define STATUS_DEVICE_POWERED_OFF (0x8000000F)
109 #define STATUS_DEVICE_OFF_LINE (0x80000010)
110 #define STATUS_DEVICE_BUSY (0x80000011)
111 #define STATUS_NO_MORE_EAS (0x80000012)
112 #define STATUS_INVALID_EA_NAME (0x80000013)
113 #define STATUS_EA_LIST_INCONSISTENT (0x80000014)
114 #define STATUS_INVALID_EA_FLAG (0x80000015)
115 #define STATUS_VERIFY_REQUIRED (0x80000016)
116 #define STATUS_EXTRANEOUS_INFORMATION (0x80000017)
117 #define STATUS_RXACT_COMMIT_NECESSARY (0x80000018)
118
119 #define STATUS_NO_MORE_ENTRIES (0x8000001A)
120 #define STATUS_FILEMARK_DETECTED (0x8000001B)
121 #define STATUS_MEDIA_CHANGED (0x8000001C)
122 #define STATUS_BUS_RESET (0x8000001D)
123 #define STATUS_END_OF_MEDIA (0x8000001E)
124 #define STATUS_BEGINNING_OF_MEDIA (0x8000001F)
125 #define STATUS_MEDIA_CHECK (0x80000020)
126 #define STATUS_SETMARK_DETECTED (0x80000021)
127 #define STATUS_NO_DATA_DETECTED (0x80000022)
128 #define STATUS_REDIRECTOR_HAS_OPEN_HANDLES (0x80000023)
129 #define STATUS_SERVER_HAS_OPEN_HANDLES (0x80000024)
130 #define STATUS_ALREADY_DISCONNECTED (0x80000025)
131 #define STATUS_LONGJUMP (0x80000026)
132
133 #define STATUS_UNSUCCESSFUL (0xC0000001)
134 #define STATUS_NOT_IMPLEMENTED (0xC0000002)
135 #define STATUS_INVALID_INFO_CLASS (0xC0000003)
136 #define STATUS_INFO_LENGTH_MISMATCH (0xC0000004)
137 #define STATUS_ACCESS_VIOLATION (0xC0000005)
138 #define STATUS_IN_PAGE_ERROR (0xC0000006)
139 #define STATUS_PAGEFILE_QUOTA (0xC0000007)
140 #define STATUS_INVALID_HANDLE (0xC0000008)
141 #define STATUS_BAD_INITIAL_STACK (0xC0000009)
142 #define STATUS_BAD_INITIAL_PC (0xC000000A)
143 #define STATUS_INVALID_CID (0xC000000B)
144 #define STATUS_TIMER_NOT_CANCELED (0xC000000C)
145 #define STATUS_INVALID_PARAMETER (0xC000000D)
146 #define STATUS_NO_SUCH_DEVICE (0xC000000E)
147 #define STATUS_NO_SUCH_FILE (0xC000000F)
148 #define STATUS_INVALID_DEVICE_REQUEST (0xc0000010)
149 #define STATUS_END_OF_FILE (0xc0000011)
150 #define STATUS_WRONG_VOLUME (0xc0000012)
151 #define STATUS_NO_MEDIA_IN_DEVICE (0xc0000013)
152 #define STATUS_UNRECOGNIZED_MEDIA (0xc0000014)
153 #define STATUS_NONEXISTENT_SECTOR (0xc0000015)
154 #define STATUS_MORE_PROCESSING_REQUIRED (0xc0000016)
155 #define STATUS_NO_MEMORY (0xc0000017)
156 #define STATUS_CONFLICTING_ADDRESSES (0xc0000018)
157 #define STATUS_NOT_MAPPED_VIEW (0xc0000019)
158 #define STATUS_UNABLE_TO_FREE_VM (0xc000001A)
159 #define STATUS_UNABLE_TO_DELETE_SECTION (0xc000001B)
160 #define STATUS_INVALID_SYSTEM_SERVICE (0xc000001C)
161 #define STATUS_ILLEGAL_INSTRUCTION (0xc000001D)
162 #define STATUS_INVALID_LOCK_SEQUENCE (0xc000001E)
163 #define STATUS_INVALID_VIEW_SIZE (0xc000001F)
164 #define STATUS_INVALID_FILE_FOR_SECTION (0xc0000020)
165 #define STATUS_ALREADY_COMMITTED (0xc0000021)
166 #define STATUS_ACCESS_DENIED (0xc0000022)
167 #define STATUS_BUFFER_TOO_SMALL (0xc0000023)
168 #define STATUS_OBJECT_TYPE_MISMATCH (0xc0000024)
169 #define STATUS_NONCONTINUABLE_EXCEPTION (0xc0000025)
170 #define STATUS_INVALID_DISPOSITION (0xc0000026)
171 #define STATUS_UNWIND (0xc0000027)
172 #define STATUS_BAD_STACK (0xc0000028)
173 #define STATUS_INVALID_UNWIND_TARGET (0xc0000029)
174 #define STATUS_NOT_LOCKED (0xc000002A)
175 #define STATUS_PARITY_ERROR (0xc000002B)
176 #define STATUS_UNABLE_TO_DECOMMIT_VM (0xc000002C)
177 #define STATUS_NOT_COMMITTED (0xc000002D)
178 #define STATUS_INVALID_PORT_ATTRIBUTES (0xc000002E)
179 #define STATUS_PORT_MESSAGE_TOO_LONG (0xc000002F)
180 #define STATUS_INVALID_PARAMETER_MIX (0xc0000030)
181 #define STATUS_INVALID_QUOTA_LOWER (0xc0000031)
182 #define STATUS_DISK_CORRUPT_ERROR (0xc0000032)
183 #define STATUS_OBJECT_NAME_INVALID (0xc0000033)
184 #define STATUS_OBJECT_NAME_NOT_FOUND (0xc0000034)
185 #define STATUS_OBJECT_NAME_COLLISION (0xc0000035)
186
187 #define STATUS_PORT_DISCONNECTED (0xc0000037)
188 #define STATUS_DEVICE_ALREADY_ATTACHED (0xc0000038)
189 #define STATUS_OBJECT_PATH_INVALID (0xc0000039)
190 #define STATUS_OBJECT_PATH_NOT_FOUND (0xc000003A)
191 #define STATUS_PATH_SYNTAX_BAD (0xc000003B)
192 #define STATUS_DATA_OVERRUN (0xc000003C)
193 #define STATUS_DATA_LATE_ERROR (0xc000003D)
194 #define STATUS_DATA_ERROR (0xc000003E)
195 #define STATUS_CRC_ERROR (0xc000003F)
196 #define STATUS_SECTION_TOO_BIG (0xc0000040)
197 #define STATUS_PORT_CONNECTION_REFUSED (0xc0000041)
198 #define STATUS_INVALID_PORT_HANDLE (0xc0000042)
199 #define STATUS_SHARING_VIOLATION (0xc0000043)
200 #define STATUS_QUOTA_EXCEEDED (0xc0000044)
201 #define STATUS_INVALID_PAGE_PROTECTION (0xc0000045)
202 #define STATUS_MUTANT_NOT_OWNED (0xc0000046)
203 #define STATUS_SEMAPHORE_LIMIT_EXCEEDED (0xc0000047)
204 #define STATUS_PORT_ALREADY_SET (0xc0000048)
205
206 enum
207 {
208 STATUS_SECTION_NOT_IMAGE,
209 STATUS_SUSPEND_COUNT_EXCEEDED,
210 STATUS_THREAD_IS_TERMINATING,
211 STATUS_BAD_WORKING_SET_LIMIT,
212 STATUS_INCOMPATIBLE_FILE_MAP,
213 STATUS_SECTION_PROTECTION,
214 STATUS_EAS_NOT_SUPPORTED,
215 STATUS_EA_TOO_LARGE,
216 STATUS_NONEXISTENT_EA_ENTRY,
217 STATUS_NO_EAS_ON_FILE,
218 STATUS_EA_CORRUPT_ERROR,
219 STATUS_FILE_LOCK_CONFLICT,
220 STATUS_LOCK_NOT_GRANTED,
221 STATUS_DELETE_PENDING,
222 STATUS_CTL_FILE_NOT_SUPPORTED,
223 STATUS_UNKNOWN_REVISION,
224 STATUS_REVISION_MISMATCH,
225 STATUS_INVALID_OWNER,
226 STATUS_INVALID_PRIMARY_GROUP,
227 STATUS_NO_IMPERSONATION_TOKEN,
228 STATUS_CANT_DISABLE_MANDATORY,
229 STATUS_NO_LOGON_SERVERS,
230 STATUS_NO_SUCH_LOGON_SESSION,
231 STATUS_NO_SUCH_PRIVILEGE,
232 STATUS_PRIVILEGE_NOT_HELD,
233 STATUS_INVALID_ACCOUNT_NAME,
234 STATUS_USER_EXISTS,
235 STATUS_NO_SUCH_USER,
236 STATUS_GROUP_EXISTS,
237 STATUS_NO_SUCH_GROUP,
238 STATUS_MEMBER_IN_GROUP,
239 STATUS_MEMBER_NOT_IN_GROUP,
240 STATUS_LAST_ADMIN,
241 STATUS_WRONG_PASSWORD,
242 STATUS_ILL_FORMED_PASSWORD,
243 STATUS_PASSWORD_RESTRICTION,
244 STATUS_LOGON_FAILURE,
245 STATUS_ACCOUNT_RESTRICTION,
246 STATUS_INVALID_LOGON_HOURS,
247 STATUS_INVALID_WORKSTATION,
248 STATUS_PASSWORD_EXPIRED,
249 STATUS_ACCOUNT_DISABLED,
250 STATUS_NONE_MAPPED,
251 STATUS_TOO_MANY_LUIDS_REQUESTED,
252 STATUS_LUIDS_EXHAUSTED,
253 STATUS_INVALID_SUB_AUTHORITY,
254 STATUS_INVALID_ACL,
255 STATUS_INVALID_SID,
256 STATUS_INVALID_SECURITY_DESCR,
257 STATUS_PROCEDURE_NOT_FOUND,
258 STATUS_INVALID_IMAGE_FORMAT,
259 STATUS_NO_TOKEN,
260 STATUS_BAD_INHERITANCE_ACL,
261 STATUS_RANGE_NOT_LOCKED,
262 STATUS_DISK_FULL,
263 STATUS_SERVER_DISABLED,
264 STATUS_SERVER_NOT_DISABLED,
265 STATUS_TOO_MANY_GUIDS_REQUESTED,
266 STATUS_GUIDS_EXHAUSTED,
267 STATUS_INVALID_ID_AUTHORITY,
268 STATUS_AGENTS_EXHAUSTED,
269 STATUS_INVALID_VOLUME_LABEL,
270 STATUS_SECTION_NOT_EXTENDED,
271 STATUS_NOT_MAPPED_DATA,
272 STATUS_RESOURCE_DATA_NOT_FOUND,
273 STATUS_RESOURCE_TYPE_NOT_FOUND,
274 STATUS_RESOURCE_NAME_NOT_FOUND,
275 STATUS_ARRAY_BOUNDS_EXCEEDED,
276 STATUS_FLOAT_DENORMAL_OPERAND,
277 STATUS_FLOAT_DIVIDE_BY_ZERO,
278 STATUS_FLOAT_INEXACT_RESULT,
279 STATUS_FLOAT_INVALID_OPERATION,
280 STATUS_FLOAT_OVERFLOW,
281 STATUS_FLOAT_STACK_CHECK,
282 STATUS_FLOAT_UNDERFLOW,
283 STATUS_INTEGER_DIVIDE_BY_ZERO,
284 STATUS_INTEGER_OVERFLOW,
285 STATUS_PRIVILEGED_INSTRUCTION,
286 STATUS_TOO_MANY_PAGING_FILES,
287 STATUS_FILE_INVALID,
288 STATUS_ALLOTTED_SPACE_EXCEEDED,
289 STATUS_INSUFFICIENT_RESOURCES,
290 STATUS_DFS_EXIT_PATH_FOUND,
291 STATUS_DEVICE_DATA_ERROR,
292 STATUS_DEVICE_NOT_CONNECTED,
293 STATUS_DEVICE_POWER_FAILURE,
294 STATUS_FREE_VM_NOT_AT_BASE,
295 STATUS_MEMORY_NOT_ALLOCATED,
296 STATUS_WORKING_SET_QUOTA,
297 STATUS_MEDIA_WRITE_PROTECTED,
298 STATUS_DEVICE_NOT_READY,
299 STATUS_INVALID_GROUP_ATTRIBUTES,
300 STATUS_BAD_IMPERSONATION_LEVEL,
301 STATUS_CANT_OPEN_ANONYMOUS,
302 STATUS_BAD_VALIDATION_CLASS,
303 STATUS_BAD_TOKEN_TYPE,
304 STATUS_BAD_MASTER_BOOT_RECORD,
305 STATUS_INSTRUCTION_MISALIGNMENT,
306 STATUS_INSTANCE_NOT_AVAILABLE,
307 STATUS_PIPE_NOT_AVAILABLE,
308 STATUS_INVALID_PIPE_STATE,
309 STATUS_PIPE_BUSY,
310 STATUS_ILLEGAL_FUNCTION,
311 STATUS_PIPE_DISCONNECTED,
312 STATUS_PIPE_CLOSING,
313 STATUS_PIPE_CONNECTED,
314 STATUS_PIPE_LISTENING,
315 STATUS_INVALID_READ_MODE,
316 STATUS_IO_TIMEOUT,
317 STATUS_FILE_FORCED_CLOSED,
318 STATUS_PROFILING_NOT_STARTED,
319 STATUS_PROFILING_NOT_STOPPED,
320 STATUS_COULD_NOT_INTERPRET,
321 STATUS_FILE_IS_A_DIRECTORY,
322 STATUS_NOT_SUPPORTED,
323 STATUS_REMOTE_NOT_LISTENING,
324 STATUS_DUPLICATE_NAME,
325 STATUS_BAD_NETWORK_PATH,
326 STATUS_NETWORK_BUSY,
327 STATUS_DEVICE_DOES_NOT_EXIST,
328 STATUS_TOO_MANY_COMMANDS,
329 STATUS_ADAPTER_HARDWARE_ERROR,
330 STATUS_INVALID_NETWORK_RESPONSE,
331 STATUS_UNEXPECTED_NETWORK_ERROR,
332 STATUS_BAD_REMOTE_ADAPTER,
333 STATUS_PRINT_QUEUE_FULL,
334 STATUS_NO_SPOOL_SPACE,
335 STATUS_PRINT_CANCELLED,
336 STATUS_NETWORK_NAME_DELETED,
337 STATUS_NETWORK_ACCESS_DENIED,
338 STATUS_BAD_DEVICE_TYPE,
339 STATUS_BAD_NETWORK_NAME,
340 STATUS_TOO_MANY_NAMES,
341 STATUS_TOO_MANY_SESSIONS,
342 STATUS_SHARING_PAUSED,
343 STATUS_REQUEST_NOT_ACCEPTED,
344 STATUS_REDIRECTOR_PAUSED,
345 STATUS_NET_WRITE_FAULT,
346 STATUS_PROFILING_AT_LIMIT,
347 STATUS_NOT_SAME_DEVICE,
348 STATUS_FILE_RENAMED,
349 STATUS_VIRTUAL_CIRCUIT_CLOSED,
350 STATUS_NO_SECURITY_ON_OBJECT,
351 STATUS_CANT_WAIT,
352 STATUS_PIPE_EMPTY,
353 STATUS_CANT_ACCESS_DOMAIN_INFO,
354 STATUS_CANT_TERMINATE_SELF,
355 STATUS_INVALID_SERVER_STATE,
356 STATUS_INVALID_DOMAIN_STATE,
357 STATUS_INVALID_DOMAIN_ROLE,
358 STATUS_NO_SUCH_DOMAIN,
359 STATUS_DOMAIN_EXISTS,
360 STATUS_DOMAIN_LIMIT_EXCEEDED,
361 STATUS_OPLOCK_NOT_GRANTED,
362 STATUS_INVALID_OPLOCK_PROTOCOL,
363 STATUS_INTERNAL_DB_CORRUPTION,
364 STATUS_INTERNAL_ERROR,
365 STATUS_GENERIC_NOT_MAPPED,
366 STATUS_BAD_DESCRIPTOR_FORMAT,
367 STATUS_INVALID_USER_BUFFER,
368 STATUS_UNEXPECTED_IO_ERROR,
369 STATUS_UNEXPECTED_MM_CREATE_ERR,
370 STATUS_UNEXPECTED_MM_MAP_ERROR,
371 STATUS_UNEXPECTED_MM_EXTEND_ERR,
372 STATUS_NOT_LOGON_PROCESS,
373 STATUS_LOGON_SESSION_EXISTS,
374 STATUS_INVALID_PARAMETER_1,
375 STATUS_INVALID_PARAMETER_2,
376 STATUS_INVALID_PARAMETER_3,
377 STATUS_INVALID_PARAMETER_4,
378 STATUS_INVALID_PARAMETER_5,
379 STATUS_INVALID_PARAMETER_6,
380 STATUS_INVALID_PARAMETER_7,
381 STATUS_INVALID_PARAMETER_8,
382 STATUS_INVALID_PARAMETER_9,
383 STATUS_INVALID_PARAMETER_10,
384 STATUS_INVALID_PARAMETER_11,
385 STATUS_INVALID_PARAMETER_12,
386 STATUS_REDIRECTOR_NOT_STARTED,
387 STATUS_REDIRECTOR_STARTED,
388 STATUS_STACK_OVERFLOW,
389 STATUS_NO_SUCH_PACKAGE,
390 STATUS_BAD_FUNCTION_TABLE,
391 STATUS_VARIABLE_NOT_FOUND,
392 STATUS_DIRECTORY_NOT_EMPTY,
393 STATUS_FILE_CORRUPT_ERROR,
394 STATUS_NOT_A_DIRECTORY,
395 STATUS_BAD_LOGON_SESSION_STATE,
396 STATUS_LOGON_SESSION_COLLISION,
397 STATUS_NAME_TOO_LONG,
398 STATUS_FILES_OPEN,
399 STATUS_CONNECTION_IN_USE,
400 STATUS_MESSAGE_NOT_FOUND,
401 STATUS_PROCESS_IS_TERMINATING,
402 STATUS_INVALID_LOGON_TYPE,
403 STATUS_NO_GUID_TRANSLATION,
404 STATUS_CANNOT_IMPERSONATE,
405 STATUS_IMAGE_ALREADY_LOADED,
406 STATUS_ABIOS_NOT_PRESENT,
407 STATUS_ABIOS_LID_NOT_EXIST,
408 STATUS_ABIOS_LID_ALREADY_OWNED,
409 STATUS_ABIOS_NOT_LID_OWNER,
410 STATUS_ABIOS_INVALID_COMMAND,
411 STATUS_ABIOS_INVALID_LID,
412 STATUS_ABIOS_SELECTOR_NOT_AVAILABLE,
413 STATUS_ABIOS_INVALID_SELECTOR,
414 STATUS_NO_LDT,
415 STATUS_INVALID_LDT_SIZE,
416 STATUS_INVALID_LDT_OFFSET,
417 STATUS_INVALID_LDT_DESCRIPTOR,
418 STATUS_INVALID_IMAGE_NE_FORMAT,
419 STATUS_RXACT_INVALID_STATE,
420 STATUS_RXACT_COMMIT_FAILURE,
421 STATUS_MAPPED_FILE_SIZE_ZERO,
422 STATUS_TOO_MANY_OPENED_FILES,
423 STATUS_CANCELLED,
424 STATUS_CANNOT_DELETE,
425 STATUS_INVALID_COMPUTER_NAME,
426 STATUS_FILE_DELETED,
427 STATUS_SPECIAL_ACCOUNT,
428 STATUS_SPECIAL_GROUP,
429 STATUS_SPECIAL_USER,
430 STATUS_MEMBERS_PRIMARY_GROUP,
431 STATUS_FILE_CLOSED,
432 STATUS_TOO_MANY_THREADS,
433 STATUS_THREAD_NOT_IN_PROCESS,
434 STATUS_TOKEN_ALREADY_IN_USE,
435 STATUS_PAGEFILE_QUOTA_EXCEEDED,
436 STATUS_COMMITMENT_LIMIT,
437 STATUS_INVALID_IMAGE_LE_FORMAT,
438 STATUS_INVALID_IMAGE_NOT_MZ,
439 STATUS_INVALID_IMAGE_PROTECT,
440 STATUS_INVALID_IMAGE_WIN_16,
441 STATUS_LOGON_SERVER_CONFLICT,
442 STATUS_TIME_DIFFERENCE_AT_DC,
443 STATUS_SYNCHRONIZATION_REQUIRED,
444 STATUS_DLL_NOT_FOUND,
445 STATUS_OPEN_FAILED,
446 STATUS_IO_PRIVILEGE_FAILED,
447 STATUS_ORDINAL_NOT_FOUND,
448 STATUS_ENTRYPOINT_NOT_FOUND,
449 STATUS_CONTROL_C_EXIT,
450 STATUS_LOCAL_DISCONNECT,
451 STATUS_REMOTE_DISCONNECT,
452 STATUS_REMOTE_RESOURCES,
453 STATUS_LINK_FAILED,
454 STATUS_LINK_TIMEOUT,
455 STATUS_INVALID_CONNECTION,
456 STATUS_INVALID_ADDRESS,
457 STATUS_DLL_INIT_FAILED,
458 STATUS_MISSING_SYSTEMFILE,
459 STATUS_UNHANDLED_EXCEPTION,
460 STATUS_APP_INIT_FAILURE,
461 STATUS_PAGEFILE_CREATE_FAILED,
462 STATUS_NO_PAGEFILE,
463 STATUS_INVALID_LEVEL,
464 STATUS_WRONG_PASSWORD_CORE,
465 STATUS_ILLEGAL_FLOAT_CONTEXT,
466 STATUS_PIPE_BROKEN,
467 STATUS_REGISTRY_CORRUPT,
468 STATUS_REGISTRY_IO_FAILED,
469 STATUS_NO_EVENT_PAIR,
470 STATUS_UNRECOGNIZED_VOLUME,
471 STATUS_SERIAL_NO_DEVICE_INITED,
472 STATUS_NO_SUCH_ALIAS,
473 STATUS_MEMBER_NOT_IN_ALIAS,
474 STATUS_MEMBER_IN_ALIAS,
475 STATUS_ALIAS_EXISTS,
476 STATUS_LOGON_NOT_GRANTED,
477 STATUS_TOO_MANY_SECRETS,
478 STATUS_SECRET_TOO_LONG,
479 STATUS_INTERNAL_DB_ERROR,
480 STATUS_FULLSCREEN_MODE,
481 STATUS_TOO_MANY_CONTEXT_IDS,
482 STATUS_LOGON_TYPE_NOT_GRANTED,
483 STATUS_NOT_REGISTRY_FILE,
484 STATUS_NT_CROSS_ENCRYPTION_REQUIRED,
485 STATUS_DOMAIN_CTRLR_CONFIG_ERROR,
486 STATUS_FT_MISSING_MEMBER,
487 STATUS_ILL_FORMED_SERVICE_ENTRY,
488 STATUS_ILLEGAL_CHARACTER,
489 STATUS_UNMAPPABLE_CHARACTER,
490 STATUS_UNDEFINED_CHARACTER,
491 STATUS_FLOPPY_VOLUME,
492 STATUS_FLOPPY_ID_MARK_NOT_FOUND,
493 STATUS_FLOPPY_WRONG_CYLINDER,
494 STATUS_FLOPPY_UNKNOWN_ERROR,
495 STATUS_FLOPPY_BAD_REGISTERS,
496 STATUS_DISK_RECALIBRATE_FAILED,
497 STATUS_DISK_OPERATION_FAILED,
498 STATUS_DISK_RESET_FAILED,
499 STATUS_SHARED_IRQ_BUSY,
500 STATUS_FT_ORPHANING,
501 STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT,
502 };
503
504 #define STATUS_PARTITION_FAILURE (0xC0000172)
505 #define STATUS_INVALID_BLOCK_LENGTH (0xC0000173)
506 #define STATUS_DEVICE_NOT_PARTITIONED (0xC0000174)
507 #define STATUS_UNABLE_TO_LOCK_MEDIA (0xC0000175)
508 #define STATUS_UNABLE_TO_UNLOAD_MEDIA (0xC0000176)
509 #define STATUS_EOM_OVERFLOW (0xC0000177)
510 #define STATUS_NO_MEDIA (0xC0000178)
511
512 #define STATUS_NO_SUCH_MEMBER (0xC000017A)
513 #define STATUS_INVALID_MEMBER (0xC000017B)
514 #define STATUS_KEY_DELETED (0xC000017C)
515 #define STATUS_NO_LOG_SPACE (0xC000017D)
516 #define STATUS_TOO_MANY_SIDS (0xC000017E)
517 #define STATUS_LM_CROSS_ENCRYPTION_REQUIRED (0xC000017F)
518 #define STATUS_KEY_HAS_CHILDREN (0xC0000180)
519 #define STATUS_CHILD_MUST_BE_VOLATILE (0xC0000181)
520 #define STATUS_DEVICE_CONFIGURATION_ERROR (0xC0000182)
521 #define STATUS_DRIVER_INTERNAL_ERROR (0xC0000183)
522 #define STATUS_INVALID_DEVICE_STATE (0xC0000184)
523 #define STATUS_IO_DEVICE_ERROR (0xC0000185)
524 #define STATUS_DEVICE_PROTOCOL_ERROR (0xC0000186)
525 #define STATUS_BACKUP_CONTROLLER (0xC0000187)
526 #define STATUS_LOG_FILE_FULL (0xC0000188)
527 #define STATUS_TOO_LATE (0xC0000189)
528 #define STATUS_NO_TRUST_LSA_SECRET (0xC000018A)
529 #define STATUS_NO_TRUST_SAM_ACCOUNT (0xC000018B)
530 #define STATUS_TRUSTED_DOMAIN_FAILURE (0xC000018C)
531 #define STATUS_TRUSTED_RELATIONSHIP_FAILURE (0xC000018D)
532 #define STATUS_EVENTLOG_FILE_CORRUPT (0xC000018E)
533 #define STATUS_EVENTLOG_CANT_START (0xC000018F)
534 #define STATUS_TRUST_FAILURE (0xC0000190)
535 #define STATUS_MUTANT_LIMIT_EXCEEDED (0xC0000191)
536 #define STATUS_NETLOGON_NOT_STARTED (0xC0000192)
537 #define STATUS_ACCOUNT_EXPIRED (0xC0000193)
538 #define STATUS_POSSIBLE_DEADLOCK (0xC0000194)
539 #define STATUS_NETWORK_CREDENTIAL_CONFLICT (0xC0000195)
540 #define STATUS_REMOTE_SESSION_LIMIT (0xC0000196)
541 #define STATUS_EVENTLOG_FILE_CHANGED (0xC0000197)
542 #define STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT (0xC0000198)
543 #define STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT (0xC0000199)
544 #define STATUS_NOLOGON_SERVER_TRUST_ACCOUNT (0xC000019A)
545 #define STATUS_DOMAIN_TRUST_INCONSISTENT (0xC000019B)
546 #define STATUS_FS_DRIVER_REQUIRED (0xC000019C)
547
548 #define STATUS_RESOURCE_LANG_NOT_FOUND (0xC0000204)
549
550 enum
551 {
552 RPC_NT_INVALID_STRING_BINDING=0xC0020001,
553 RPC_NT_WRONG_KIND_OF_BINDING,
554 RPC_NT_INVALID_BINDING,
555 RPC_NT_PROTSEQ_NOT_SUPPORTED,
556 RPC_NT_INVALID_RPC_PROTSEQ,
557 RPC_NT_INVALID_STRING_UUID,
558 RPC_NT_INVALID_ENDPOINT_FORMAT,
559 RPC_NT_INVALID_NET_ADDR,
560 RPC_NT_NO_ENDPOINT_FOUND,
561 RPC_NT_INVALID_TIMEOUT,
562 RPC_NT_OBJECT_NOT_FOUND,
563 RPC_NT_ALREADY_REGISTERED,
564 RPC_NT_TYPE_ALREADY_REGISTERED,
565 RPC_NT_ALREADY_LISTENING,
566 RPC_NT_NO_PROTSEQS_REGISTERED,
567 RPC_NT_NOT_LISTENING,
568 RPC_NT_UNKNOWN_MGR_TYPE,
569 RPC_NT_UNKNOWN_IF,
570 RPC_NT_NO_BINDINGS,
571 RPC_NT_NO_PROTSEQS,
572 RPC_NT_CANT_CREATE_ENDPOINT,
573 RPC_NT_OUT_OF_RESOURCES,
574 RPC_NT_SERVER_UNAVAILABLE,
575 RPC_NT_SERVER_TOO_BUSY,
576 RPC_NT_INVALID_NETWORK_OPTIONS,
577 RPC_NT_NO_CALL_ACTIVE,
578 RPC_NT_CALL_FAILED,
579 RPC_NT_CALL_FAILED_DNE,
580 RPC_NT_PROTOCOL_ERROR,
581
582
583 RPC_NT_SS_IN_NULL_CONTEXT=0xC0030004,
584
585 /*
586 * Reactos codes
587 */
588 STATUS_FS_QUERY_REQUIRED,
589 STATUS_HANDLE_NOT_WAITABLE,//FIXME
590 STATUS_OBJECT_FILE_MISMATCH,//FIXME
591 STATUS_INVALID_PARAMETER_MAX,//FIXME
592 STATUS_CONFLICTING_ADDRESS,//FIXME : ADDRESSES ?
593 STATUS_NO_MEDIA_IN_DRIVE,//FIXME : no_media or no_media_in_device ?
594 };
595
596 #endif /* __INCLUDE_DDK_STATUS_H */
597
598
599
600
601
602