s3:smbcacls: Add support for DFS path
[samba.git] / libcli / util / ntstatus.h
1 /* 
2    Unix SMB/CIFS implementation.
3    NT error code constants
4    Copyright (C) Andrew Tridgell              1992-2000
5    Copyright (C) John H Terpstra              1996-2000
6    Copyright (C) Luke Kenneth Casson Leighton 1996-2000
7    Copyright (C) Paul Ashton                  1998-2000
8
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 3 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 */
22
23 #ifndef _NTSTATUS_H
24 #define _NTSTATUS_H
25
26 /* the following rather strange looking definitions of NTSTATUS 
27    are there in order to catch common coding errors where different error types
28    are mixed up. This is especially important as we slowly convert Samba
29    from using bool for internal functions 
30 */
31
32 #if defined(HAVE_IMMEDIATE_STRUCTURES)
33 typedef struct {uint32_t v;} NTSTATUS;
34 #define NT_STATUS(x) ((NTSTATUS) { x })
35 #define NT_STATUS_V(x) ((x).v)
36 #else
37 typedef uint32_t NTSTATUS;
38 #define NT_STATUS(x) (x)
39 #define NT_STATUS_V(x) (x)
40 #endif
41
42 /* Win32 Status codes. */
43
44 #define STATUS_BUFFER_OVERFLOW            NT_STATUS(0x80000005)
45 #define STATUS_NO_MORE_FILES              NT_STATUS(0x80000006)
46 #define STATUS_NO_MORE_EAS                NT_STATUS(0x80000012) 
47 #define STATUS_INVALID_EA_NAME            NT_STATUS(0x80000013)
48 #define STATUS_EA_LIST_INCONSISTENT       NT_STATUS(0x80000014)
49 #define STATUS_INVALID_EA_FLAG            NT_STATUS(0x80000015)
50 #define NT_STATUS_NO_MORE_ENTRIES         NT_STATUS(0x8000001a)
51 #define STATUS_STOPPED_ON_SYMLINK         NT_STATUS(0x8000002d)
52
53 #define STATUS_PENDING                    NT_STATUS(0x0103)
54 /* Vista Status codes. */
55 #define NT_STATUS_INACCESSIBLE_SYSTEM_SHORTCUT         NT_STATUS(0x8000002d)
56 #define STATUS_MORE_ENTRIES               NT_STATUS(0x0105)
57 #define STATUS_SOME_UNMAPPED              NT_STATUS(0x0107)
58 #define STATUS_NOTIFY_CLEANUP             NT_STATUS(0x010b)
59 #define STATUS_NOTIFY_ENUM_DIR            NT_STATUS(0x010c)
60 #define ERROR_INVALID_PARAMETER           NT_STATUS(0x0057)
61 #define ERROR_INSUFFICIENT_BUFFER         NT_STATUS(0x007a)
62 #define ERROR_INVALID_DATATYPE            NT_STATUS(0x070c)
63
64 /* Win7 status codes. */
65 #define NT_STATUS_INVALID_LOCK_RANGE      NT_STATUS(0xC0000000 | 0x01a1)
66
67 /* Win32 Error codes extracted using a loop in smbclient then printing a
68    netmon sniff to a file. */
69
70 /*
71                        --------------
72                       /              \
73                      /      REST      \
74                     /        IN        \
75                    /       PEACE        \
76                   /                      \
77                   | NT_STATUS_NOPROBLEMO |
78                   |                      |
79                   |                      |
80                   |      4 September     |
81                   |                      |
82                   |         2001         |
83                  *|     *  *  *          | *
84         _________)/\\_//(\/(/\)/\//\/\///|_)_______
85 */
86
87 #define NT_STATUS_OK NT_STATUS(0x0000)
88 #define NT_STATUS_UNSUCCESSFUL NT_STATUS(0xC0000000 | 0x0001)
89 #define NT_STATUS_NOT_IMPLEMENTED NT_STATUS(0xC0000000 | 0x0002)
90 #define NT_STATUS_INVALID_INFO_CLASS NT_STATUS(0xC0000000 | 0x0003)
91 #define NT_STATUS_INFO_LENGTH_MISMATCH NT_STATUS(0xC0000000 | 0x0004)
92 #define NT_STATUS_ACCESS_VIOLATION NT_STATUS(0xC0000000 | 0x0005)
93 #define NT_STATUS_IN_PAGE_ERROR NT_STATUS(0xC0000000 | 0x0006)
94 #define NT_STATUS_PAGEFILE_QUOTA NT_STATUS(0xC0000000 | 0x0007)
95 #define NT_STATUS_INVALID_HANDLE NT_STATUS(0xC0000000 | 0x0008)
96 #define NT_STATUS_BAD_INITIAL_STACK NT_STATUS(0xC0000000 | 0x0009)
97 #define NT_STATUS_BAD_INITIAL_PC NT_STATUS(0xC0000000 | 0x000a)
98 #define NT_STATUS_INVALID_CID NT_STATUS(0xC0000000 | 0x000b)
99 #define NT_STATUS_TIMER_NOT_CANCELED NT_STATUS(0xC0000000 | 0x000c)
100 #define NT_STATUS_INVALID_PARAMETER NT_STATUS(0xC0000000 | 0x000d)
101 #define NT_STATUS_NO_SUCH_DEVICE NT_STATUS(0xC0000000 | 0x000e)
102 #define NT_STATUS_NO_SUCH_FILE NT_STATUS(0xC0000000 | 0x000f)
103 #define NT_STATUS_INVALID_DEVICE_REQUEST NT_STATUS(0xC0000000 | 0x0010)
104 #define NT_STATUS_END_OF_FILE NT_STATUS(0xC0000000 | 0x0011)
105 #define NT_STATUS_WRONG_VOLUME NT_STATUS(0xC0000000 | 0x0012)
106 #define NT_STATUS_NO_MEDIA_IN_DEVICE NT_STATUS(0xC0000000 | 0x0013)
107 #define NT_STATUS_UNRECOGNIZED_MEDIA NT_STATUS(0xC0000000 | 0x0014)
108 #define NT_STATUS_NONEXISTENT_SECTOR NT_STATUS(0xC0000000 | 0x0015)
109 #define NT_STATUS_MORE_PROCESSING_REQUIRED NT_STATUS(0xC0000000 | 0x0016)
110 #if 0
111 /* this demonstrates a little trick when tracking down error codes */
112 #define NT_STATUS_NO_MEMORY (printf("no memory at %s\n", __location__), NT_STATUS(0xC0000000 | 0x0017))
113 #else
114 #define NT_STATUS_NO_MEMORY NT_STATUS(0xC0000000 | 0x0017)
115 #endif
116 #define NT_STATUS_CONFLICTING_ADDRESSES NT_STATUS(0xC0000000 | 0x0018)
117 #define NT_STATUS_NOT_MAPPED_VIEW NT_STATUS(0xC0000000 | 0x0019)
118 #define NT_STATUS_UNABLE_TO_FREE_VM NT_STATUS(0xC0000000 | 0x001a)
119 #define NT_STATUS_UNABLE_TO_DELETE_SECTION NT_STATUS(0xC0000000 | 0x001b)
120 #define NT_STATUS_INVALID_SYSTEM_SERVICE NT_STATUS(0xC0000000 | 0x001c)
121 #define NT_STATUS_ILLEGAL_INSTRUCTION NT_STATUS(0xC0000000 | 0x001d)
122 #define NT_STATUS_INVALID_LOCK_SEQUENCE NT_STATUS(0xC0000000 | 0x001e)
123 #define NT_STATUS_INVALID_VIEW_SIZE NT_STATUS(0xC0000000 | 0x001f)
124 #define NT_STATUS_INVALID_FILE_FOR_SECTION NT_STATUS(0xC0000000 | 0x0020)
125 #define NT_STATUS_ALREADY_COMMITTED NT_STATUS(0xC0000000 | 0x0021)
126 #if 0
127 /* this demonstrates a little trick when tracking down error codes */
128 #define NT_STATUS_ACCESS_DENIED (printf("access denied at %s\n", __location__), NT_STATUS(0xC0000000 | 0x0022))
129 #else
130 #define NT_STATUS_ACCESS_DENIED NT_STATUS(0xC0000000 | 0x0022)
131 #endif
132 #define NT_STATUS_BUFFER_TOO_SMALL NT_STATUS(0xC0000000 | 0x0023)
133 #define NT_STATUS_OBJECT_TYPE_MISMATCH NT_STATUS(0xC0000000 | 0x0024)
134 #define NT_STATUS_NONCONTINUABLE_EXCEPTION NT_STATUS(0xC0000000 | 0x0025)
135 #define NT_STATUS_INVALID_DISPOSITION NT_STATUS(0xC0000000 | 0x0026)
136 #define NT_STATUS_UNWIND NT_STATUS(0xC0000000 | 0x0027)
137 #define NT_STATUS_BAD_STACK NT_STATUS(0xC0000000 | 0x0028)
138 #define NT_STATUS_INVALID_UNWIND_TARGET NT_STATUS(0xC0000000 | 0x0029)
139 #define NT_STATUS_NOT_LOCKED NT_STATUS(0xC0000000 | 0x002a)
140 #define NT_STATUS_PARITY_ERROR NT_STATUS(0xC0000000 | 0x002b)
141 #define NT_STATUS_UNABLE_TO_DECOMMIT_VM NT_STATUS(0xC0000000 | 0x002c)
142 #define NT_STATUS_NOT_COMMITTED NT_STATUS(0xC0000000 | 0x002d)
143 #define NT_STATUS_INVALID_PORT_ATTRIBUTES NT_STATUS(0xC0000000 | 0x002e)
144 #define NT_STATUS_PORT_MESSAGE_TOO_LONG NT_STATUS(0xC0000000 | 0x002f)
145 #define NT_STATUS_INVALID_PARAMETER_MIX NT_STATUS(0xC0000000 | 0x0030)
146 #define NT_STATUS_INVALID_QUOTA_LOWER NT_STATUS(0xC0000000 | 0x0031)
147 #define NT_STATUS_DISK_CORRUPT_ERROR NT_STATUS(0xC0000000 | 0x0032)
148 #define NT_STATUS_OBJECT_NAME_INVALID NT_STATUS(0xC0000000 | 0x0033)
149 #define NT_STATUS_OBJECT_NAME_NOT_FOUND NT_STATUS(0xC0000000 | 0x0034)
150 #define NT_STATUS_OBJECT_NAME_COLLISION NT_STATUS(0xC0000000 | 0x0035)
151 #define NT_STATUS_HANDLE_NOT_WAITABLE NT_STATUS(0xC0000000 | 0x0036)
152 #define NT_STATUS_PORT_DISCONNECTED NT_STATUS(0xC0000000 | 0x0037)
153 #define NT_STATUS_DEVICE_ALREADY_ATTACHED NT_STATUS(0xC0000000 | 0x0038)
154 #define NT_STATUS_OBJECT_PATH_INVALID NT_STATUS(0xC0000000 | 0x0039)
155 #define NT_STATUS_OBJECT_PATH_NOT_FOUND NT_STATUS(0xC0000000 | 0x003a)
156 #define NT_STATUS_OBJECT_PATH_SYNTAX_BAD NT_STATUS(0xC0000000 | 0x003b)
157 #define NT_STATUS_DATA_OVERRUN NT_STATUS(0xC0000000 | 0x003c)
158 #define NT_STATUS_DATA_LATE_ERROR NT_STATUS(0xC0000000 | 0x003d)
159 #define NT_STATUS_DATA_ERROR NT_STATUS(0xC0000000 | 0x003e)
160 #define NT_STATUS_CRC_ERROR NT_STATUS(0xC0000000 | 0x003f)
161 #define NT_STATUS_SECTION_TOO_BIG NT_STATUS(0xC0000000 | 0x0040)
162 #define NT_STATUS_PORT_CONNECTION_REFUSED NT_STATUS(0xC0000000 | 0x0041)
163 #define NT_STATUS_INVALID_PORT_HANDLE NT_STATUS(0xC0000000 | 0x0042)
164 #define NT_STATUS_SHARING_VIOLATION NT_STATUS(0xC0000000 | 0x0043)
165 #define NT_STATUS_QUOTA_EXCEEDED NT_STATUS(0xC0000000 | 0x0044)
166 #define NT_STATUS_INVALID_PAGE_PROTECTION NT_STATUS(0xC0000000 | 0x0045)
167 #define NT_STATUS_MUTANT_NOT_OWNED NT_STATUS(0xC0000000 | 0x0046)
168 #define NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED NT_STATUS(0xC0000000 | 0x0047)
169 #define NT_STATUS_PORT_ALREADY_SET NT_STATUS(0xC0000000 | 0x0048)
170 #define NT_STATUS_SECTION_NOT_IMAGE NT_STATUS(0xC0000000 | 0x0049)
171 #define NT_STATUS_SUSPEND_COUNT_EXCEEDED NT_STATUS(0xC0000000 | 0x004a)
172 #define NT_STATUS_THREAD_IS_TERMINATING NT_STATUS(0xC0000000 | 0x004b)
173 #define NT_STATUS_BAD_WORKING_SET_LIMIT NT_STATUS(0xC0000000 | 0x004c)
174 #define NT_STATUS_INCOMPATIBLE_FILE_MAP NT_STATUS(0xC0000000 | 0x004d)
175 #define NT_STATUS_SECTION_PROTECTION NT_STATUS(0xC0000000 | 0x004e)
176 #define NT_STATUS_EAS_NOT_SUPPORTED NT_STATUS(0xC0000000 | 0x004f)
177 #define NT_STATUS_EA_TOO_LARGE NT_STATUS(0xC0000000 | 0x0050)
178 #define NT_STATUS_NONEXISTENT_EA_ENTRY NT_STATUS(0xC0000000 | 0x0051)
179 #define NT_STATUS_NO_EAS_ON_FILE NT_STATUS(0xC0000000 | 0x0052)
180 #define NT_STATUS_EA_CORRUPT_ERROR NT_STATUS(0xC0000000 | 0x0053)
181 #define NT_STATUS_FILE_LOCK_CONFLICT NT_STATUS(0xC0000000 | 0x0054)
182 #define NT_STATUS_LOCK_NOT_GRANTED NT_STATUS(0xC0000000 | 0x0055)
183 #define NT_STATUS_DELETE_PENDING NT_STATUS(0xC0000000 | 0x0056)
184 #define NT_STATUS_CTL_FILE_NOT_SUPPORTED NT_STATUS(0xC0000000 | 0x0057)
185 #define NT_STATUS_UNKNOWN_REVISION NT_STATUS(0xC0000000 | 0x0058)
186 #define NT_STATUS_REVISION_MISMATCH NT_STATUS(0xC0000000 | 0x0059)
187 #define NT_STATUS_INVALID_OWNER NT_STATUS(0xC0000000 | 0x005a)
188 #define NT_STATUS_INVALID_PRIMARY_GROUP NT_STATUS(0xC0000000 | 0x005b)
189 #define NT_STATUS_NO_IMPERSONATION_TOKEN NT_STATUS(0xC0000000 | 0x005c)
190 #define NT_STATUS_CANT_DISABLE_MANDATORY NT_STATUS(0xC0000000 | 0x005d)
191 #define NT_STATUS_NO_LOGON_SERVERS NT_STATUS(0xC0000000 | 0x005e)
192 #define NT_STATUS_NO_SUCH_LOGON_SESSION NT_STATUS(0xC0000000 | 0x005f)
193 #define NT_STATUS_NO_SUCH_PRIVILEGE NT_STATUS(0xC0000000 | 0x0060)
194 #define NT_STATUS_PRIVILEGE_NOT_HELD NT_STATUS(0xC0000000 | 0x0061)
195 #define NT_STATUS_INVALID_ACCOUNT_NAME NT_STATUS(0xC0000000 | 0x0062)
196 #define NT_STATUS_USER_EXISTS NT_STATUS(0xC0000000 | 0x0063)
197 #define NT_STATUS_NO_SUCH_USER NT_STATUS(0xC0000000 | 0x0064)
198 #define NT_STATUS_GROUP_EXISTS NT_STATUS(0xC0000000 | 0x0065)
199 #define NT_STATUS_NO_SUCH_GROUP NT_STATUS(0xC0000000 | 0x0066)
200 #define NT_STATUS_MEMBER_IN_GROUP NT_STATUS(0xC0000000 | 0x0067)
201 #define NT_STATUS_MEMBER_NOT_IN_GROUP NT_STATUS(0xC0000000 | 0x0068)
202 #define NT_STATUS_LAST_ADMIN NT_STATUS(0xC0000000 | 0x0069)
203 #define NT_STATUS_WRONG_PASSWORD NT_STATUS(0xC0000000 | 0x006a)
204 #define NT_STATUS_ILL_FORMED_PASSWORD NT_STATUS(0xC0000000 | 0x006b)
205 #define NT_STATUS_PASSWORD_RESTRICTION NT_STATUS(0xC0000000 | 0x006c)
206 #define NT_STATUS_LOGON_FAILURE NT_STATUS(0xC0000000 | 0x006d)
207 #define NT_STATUS_ACCOUNT_RESTRICTION NT_STATUS(0xC0000000 | 0x006e)
208 #define NT_STATUS_INVALID_LOGON_HOURS NT_STATUS(0xC0000000 | 0x006f)
209 #define NT_STATUS_INVALID_WORKSTATION NT_STATUS(0xC0000000 | 0x0070)
210 #define NT_STATUS_PASSWORD_EXPIRED NT_STATUS(0xC0000000 | 0x0071)
211 #define NT_STATUS_ACCOUNT_DISABLED NT_STATUS(0xC0000000 | 0x0072)
212 #define NT_STATUS_NONE_MAPPED NT_STATUS(0xC0000000 | 0x0073)
213 #define NT_STATUS_TOO_MANY_LUIDS_REQUESTED NT_STATUS(0xC0000000 | 0x0074)
214 #define NT_STATUS_LUIDS_EXHAUSTED NT_STATUS(0xC0000000 | 0x0075)
215 #define NT_STATUS_INVALID_SUB_AUTHORITY NT_STATUS(0xC0000000 | 0x0076)
216 #define NT_STATUS_INVALID_ACL NT_STATUS(0xC0000000 | 0x0077)
217 #define NT_STATUS_INVALID_SID NT_STATUS(0xC0000000 | 0x0078)
218 #define NT_STATUS_INVALID_SECURITY_DESCR NT_STATUS(0xC0000000 | 0x0079)
219 #define NT_STATUS_PROCEDURE_NOT_FOUND NT_STATUS(0xC0000000 | 0x007a)
220 #define NT_STATUS_INVALID_IMAGE_FORMAT NT_STATUS(0xC0000000 | 0x007b)
221 #define NT_STATUS_NO_TOKEN NT_STATUS(0xC0000000 | 0x007c)
222 #define NT_STATUS_BAD_INHERITANCE_ACL NT_STATUS(0xC0000000 | 0x007d)
223 #define NT_STATUS_RANGE_NOT_LOCKED NT_STATUS(0xC0000000 | 0x007e)
224 #define NT_STATUS_DISK_FULL NT_STATUS(0xC0000000 | 0x007f)
225 #define NT_STATUS_SERVER_DISABLED NT_STATUS(0xC0000000 | 0x0080)
226 #define NT_STATUS_SERVER_NOT_DISABLED NT_STATUS(0xC0000000 | 0x0081)
227 #define NT_STATUS_TOO_MANY_GUIDS_REQUESTED NT_STATUS(0xC0000000 | 0x0082)
228 #define NT_STATUS_GUIDS_EXHAUSTED NT_STATUS(0xC0000000 | 0x0083)
229 #define NT_STATUS_INVALID_ID_AUTHORITY NT_STATUS(0xC0000000 | 0x0084)
230 #define NT_STATUS_AGENTS_EXHAUSTED NT_STATUS(0xC0000000 | 0x0085)
231 #define NT_STATUS_INVALID_VOLUME_LABEL NT_STATUS(0xC0000000 | 0x0086)
232 #define NT_STATUS_SECTION_NOT_EXTENDED NT_STATUS(0xC0000000 | 0x0087)
233 #define NT_STATUS_NOT_MAPPED_DATA NT_STATUS(0xC0000000 | 0x0088)
234 #define NT_STATUS_RESOURCE_DATA_NOT_FOUND NT_STATUS(0xC0000000 | 0x0089)
235 #define NT_STATUS_RESOURCE_TYPE_NOT_FOUND NT_STATUS(0xC0000000 | 0x008a)
236 #define NT_STATUS_RESOURCE_NAME_NOT_FOUND NT_STATUS(0xC0000000 | 0x008b)
237 #define NT_STATUS_ARRAY_BOUNDS_EXCEEDED NT_STATUS(0xC0000000 | 0x008c)
238 #define NT_STATUS_FLOAT_DENORMAL_OPERAND NT_STATUS(0xC0000000 | 0x008d)
239 #define NT_STATUS_FLOAT_DIVIDE_BY_ZERO NT_STATUS(0xC0000000 | 0x008e)
240 #define NT_STATUS_FLOAT_INEXACT_RESULT NT_STATUS(0xC0000000 | 0x008f)
241 #define NT_STATUS_FLOAT_INVALID_OPERATION NT_STATUS(0xC0000000 | 0x0090)
242 #define NT_STATUS_FLOAT_OVERFLOW NT_STATUS(0xC0000000 | 0x0091)
243 #define NT_STATUS_FLOAT_STACK_CHECK NT_STATUS(0xC0000000 | 0x0092)
244 #define NT_STATUS_FLOAT_UNDERFLOW NT_STATUS(0xC0000000 | 0x0093)
245 #define NT_STATUS_INTEGER_DIVIDE_BY_ZERO NT_STATUS(0xC0000000 | 0x0094)
246 #define NT_STATUS_INTEGER_OVERFLOW NT_STATUS(0xC0000000 | 0x0095)
247 #define NT_STATUS_PRIVILEGED_INSTRUCTION NT_STATUS(0xC0000000 | 0x0096)
248 #define NT_STATUS_TOO_MANY_PAGING_FILES NT_STATUS(0xC0000000 | 0x0097)
249 #define NT_STATUS_FILE_INVALID NT_STATUS(0xC0000000 | 0x0098)
250 #define NT_STATUS_ALLOTTED_SPACE_EXCEEDED NT_STATUS(0xC0000000 | 0x0099)
251 #define NT_STATUS_INSUFFICIENT_RESOURCES NT_STATUS(0xC0000000 | 0x009a)
252 #define NT_STATUS_DFS_EXIT_PATH_FOUND NT_STATUS(0xC0000000 | 0x009b)
253 #define NT_STATUS_DEVICE_DATA_ERROR NT_STATUS(0xC0000000 | 0x009c)
254 #define NT_STATUS_DEVICE_NOT_CONNECTED NT_STATUS(0xC0000000 | 0x009d)
255 #define NT_STATUS_DEVICE_POWER_FAILURE NT_STATUS(0xC0000000 | 0x009e)
256 #define NT_STATUS_FREE_VM_NOT_AT_BASE NT_STATUS(0xC0000000 | 0x009f)
257 #define NT_STATUS_MEMORY_NOT_ALLOCATED NT_STATUS(0xC0000000 | 0x00a0)
258 #define NT_STATUS_WORKING_SET_QUOTA NT_STATUS(0xC0000000 | 0x00a1)
259 #define NT_STATUS_MEDIA_WRITE_PROTECTED NT_STATUS(0xC0000000 | 0x00a2)
260 #define NT_STATUS_DEVICE_NOT_READY NT_STATUS(0xC0000000 | 0x00a3)
261 #define NT_STATUS_INVALID_GROUP_ATTRIBUTES NT_STATUS(0xC0000000 | 0x00a4)
262 #define NT_STATUS_BAD_IMPERSONATION_LEVEL NT_STATUS(0xC0000000 | 0x00a5)
263 #define NT_STATUS_CANT_OPEN_ANONYMOUS NT_STATUS(0xC0000000 | 0x00a6)
264 #define NT_STATUS_BAD_VALIDATION_CLASS NT_STATUS(0xC0000000 | 0x00a7)
265 #define NT_STATUS_BAD_TOKEN_TYPE NT_STATUS(0xC0000000 | 0x00a8)
266 #define NT_STATUS_BAD_MASTER_BOOT_RECORD NT_STATUS(0xC0000000 | 0x00a9)
267 #define NT_STATUS_INSTRUCTION_MISALIGNMENT NT_STATUS(0xC0000000 | 0x00aa)
268 #define NT_STATUS_INSTANCE_NOT_AVAILABLE NT_STATUS(0xC0000000 | 0x00ab)
269 #define NT_STATUS_PIPE_NOT_AVAILABLE NT_STATUS(0xC0000000 | 0x00ac)
270 #define NT_STATUS_INVALID_PIPE_STATE NT_STATUS(0xC0000000 | 0x00ad)
271 #define NT_STATUS_PIPE_BUSY NT_STATUS(0xC0000000 | 0x00ae)
272 #define NT_STATUS_ILLEGAL_FUNCTION NT_STATUS(0xC0000000 | 0x00af)
273 #define NT_STATUS_PIPE_DISCONNECTED NT_STATUS(0xC0000000 | 0x00b0)
274 #define NT_STATUS_PIPE_CLOSING NT_STATUS(0xC0000000 | 0x00b1)
275 #define NT_STATUS_PIPE_CONNECTED NT_STATUS(0xC0000000 | 0x00b2)
276 #define NT_STATUS_PIPE_LISTENING NT_STATUS(0xC0000000 | 0x00b3)
277 #define NT_STATUS_INVALID_READ_MODE NT_STATUS(0xC0000000 | 0x00b4)
278 #define NT_STATUS_IO_TIMEOUT NT_STATUS(0xC0000000 | 0x00b5)
279 #define NT_STATUS_FILE_FORCED_CLOSED NT_STATUS(0xC0000000 | 0x00b6)
280 #define NT_STATUS_PROFILING_NOT_STARTED NT_STATUS(0xC0000000 | 0x00b7)
281 #define NT_STATUS_PROFILING_NOT_STOPPED NT_STATUS(0xC0000000 | 0x00b8)
282 #define NT_STATUS_COULD_NOT_INTERPRET NT_STATUS(0xC0000000 | 0x00b9)
283 #define NT_STATUS_FILE_IS_A_DIRECTORY NT_STATUS(0xC0000000 | 0x00ba)
284 #define NT_STATUS_NOT_SUPPORTED NT_STATUS(0xC0000000 | 0x00bb)
285 #define NT_STATUS_REMOTE_NOT_LISTENING NT_STATUS(0xC0000000 | 0x00bc)
286 #define NT_STATUS_DUPLICATE_NAME NT_STATUS(0xC0000000 | 0x00bd)
287 #define NT_STATUS_BAD_NETWORK_PATH NT_STATUS(0xC0000000 | 0x00be)
288 #define NT_STATUS_NETWORK_BUSY NT_STATUS(0xC0000000 | 0x00bf)
289 #define NT_STATUS_DEVICE_DOES_NOT_EXIST NT_STATUS(0xC0000000 | 0x00c0)
290 #define NT_STATUS_TOO_MANY_COMMANDS NT_STATUS(0xC0000000 | 0x00c1)
291 #define NT_STATUS_ADAPTER_HARDWARE_ERROR NT_STATUS(0xC0000000 | 0x00c2)
292 #define NT_STATUS_INVALID_NETWORK_RESPONSE NT_STATUS(0xC0000000 | 0x00c3)
293 #define NT_STATUS_UNEXPECTED_NETWORK_ERROR NT_STATUS(0xC0000000 | 0x00c4)
294 #define NT_STATUS_BAD_REMOTE_ADAPTER NT_STATUS(0xC0000000 | 0x00c5)
295 #define NT_STATUS_PRINT_QUEUE_FULL NT_STATUS(0xC0000000 | 0x00c6)
296 #define NT_STATUS_NO_SPOOL_SPACE NT_STATUS(0xC0000000 | 0x00c7)
297 #define NT_STATUS_PRINT_CANCELLED NT_STATUS(0xC0000000 | 0x00c8)
298 #define NT_STATUS_NETWORK_NAME_DELETED NT_STATUS(0xC0000000 | 0x00c9)
299 #define NT_STATUS_NETWORK_ACCESS_DENIED NT_STATUS(0xC0000000 | 0x00ca)
300 #define NT_STATUS_BAD_DEVICE_TYPE NT_STATUS(0xC0000000 | 0x00cb)
301 #define NT_STATUS_BAD_NETWORK_NAME NT_STATUS(0xC0000000 | 0x00cc)
302 #define NT_STATUS_TOO_MANY_NAMES NT_STATUS(0xC0000000 | 0x00cd)
303 #define NT_STATUS_TOO_MANY_SESSIONS NT_STATUS(0xC0000000 | 0x00ce)
304 #define NT_STATUS_SHARING_PAUSED NT_STATUS(0xC0000000 | 0x00cf)
305 #define NT_STATUS_REQUEST_NOT_ACCEPTED NT_STATUS(0xC0000000 | 0x00d0)
306 #define NT_STATUS_REDIRECTOR_PAUSED NT_STATUS(0xC0000000 | 0x00d1)
307 #define NT_STATUS_NET_WRITE_FAULT NT_STATUS(0xC0000000 | 0x00d2)
308 #define NT_STATUS_PROFILING_AT_LIMIT NT_STATUS(0xC0000000 | 0x00d3)
309 #define NT_STATUS_NOT_SAME_DEVICE NT_STATUS(0xC0000000 | 0x00d4)
310 #define NT_STATUS_FILE_RENAMED NT_STATUS(0xC0000000 | 0x00d5)
311 #define NT_STATUS_VIRTUAL_CIRCUIT_CLOSED NT_STATUS(0xC0000000 | 0x00d6)
312 #define NT_STATUS_NO_SECURITY_ON_OBJECT NT_STATUS(0xC0000000 | 0x00d7)
313 #define NT_STATUS_CANT_WAIT NT_STATUS(0xC0000000 | 0x00d8)
314 #define NT_STATUS_PIPE_EMPTY NT_STATUS(0xC0000000 | 0x00d9)
315 #define NT_STATUS_CANT_ACCESS_DOMAIN_INFO NT_STATUS(0xC0000000 | 0x00da)
316 #define NT_STATUS_CANT_TERMINATE_SELF NT_STATUS(0xC0000000 | 0x00db)
317 #define NT_STATUS_INVALID_SERVER_STATE NT_STATUS(0xC0000000 | 0x00dc)
318 #define NT_STATUS_INVALID_DOMAIN_STATE NT_STATUS(0xC0000000 | 0x00dd)
319 #define NT_STATUS_INVALID_DOMAIN_ROLE NT_STATUS(0xC0000000 | 0x00de)
320 #define NT_STATUS_NO_SUCH_DOMAIN NT_STATUS(0xC0000000 | 0x00df)
321 #define NT_STATUS_DOMAIN_EXISTS NT_STATUS(0xC0000000 | 0x00e0)
322 #define NT_STATUS_DOMAIN_LIMIT_EXCEEDED NT_STATUS(0xC0000000 | 0x00e1)
323 #define NT_STATUS_OPLOCK_NOT_GRANTED NT_STATUS(0xC0000000 | 0x00e2)
324 #define NT_STATUS_INVALID_OPLOCK_PROTOCOL NT_STATUS(0xC0000000 | 0x00e3)
325 #define NT_STATUS_INTERNAL_DB_CORRUPTION NT_STATUS(0xC0000000 | 0x00e4)
326 #define NT_STATUS_INTERNAL_ERROR NT_STATUS(0xC0000000 | 0x00e5)
327 #define NT_STATUS_GENERIC_NOT_MAPPED NT_STATUS(0xC0000000 | 0x00e6)
328 #define NT_STATUS_BAD_DESCRIPTOR_FORMAT NT_STATUS(0xC0000000 | 0x00e7)
329 #define NT_STATUS_INVALID_USER_BUFFER NT_STATUS(0xC0000000 | 0x00e8)
330 #define NT_STATUS_UNEXPECTED_IO_ERROR NT_STATUS(0xC0000000 | 0x00e9)
331 #define NT_STATUS_UNEXPECTED_MM_CREATE_ERR NT_STATUS(0xC0000000 | 0x00ea)
332 #define NT_STATUS_UNEXPECTED_MM_MAP_ERROR NT_STATUS(0xC0000000 | 0x00eb)
333 #define NT_STATUS_UNEXPECTED_MM_EXTEND_ERR NT_STATUS(0xC0000000 | 0x00ec)
334 #define NT_STATUS_NOT_LOGON_PROCESS NT_STATUS(0xC0000000 | 0x00ed)
335 #define NT_STATUS_LOGON_SESSION_EXISTS NT_STATUS(0xC0000000 | 0x00ee)
336 #define NT_STATUS_INVALID_PARAMETER_1 NT_STATUS(0xC0000000 | 0x00ef)
337 #define NT_STATUS_INVALID_PARAMETER_2 NT_STATUS(0xC0000000 | 0x00f0)
338 #define NT_STATUS_INVALID_PARAMETER_3 NT_STATUS(0xC0000000 | 0x00f1)
339 #define NT_STATUS_INVALID_PARAMETER_4 NT_STATUS(0xC0000000 | 0x00f2)
340 #define NT_STATUS_INVALID_PARAMETER_5 NT_STATUS(0xC0000000 | 0x00f3)
341 #define NT_STATUS_INVALID_PARAMETER_6 NT_STATUS(0xC0000000 | 0x00f4)
342 #define NT_STATUS_INVALID_PARAMETER_7 NT_STATUS(0xC0000000 | 0x00f5)
343 #define NT_STATUS_INVALID_PARAMETER_8 NT_STATUS(0xC0000000 | 0x00f6)
344 #define NT_STATUS_INVALID_PARAMETER_9 NT_STATUS(0xC0000000 | 0x00f7)
345 #define NT_STATUS_INVALID_PARAMETER_10 NT_STATUS(0xC0000000 | 0x00f8)
346 #define NT_STATUS_INVALID_PARAMETER_11 NT_STATUS(0xC0000000 | 0x00f9)
347 #define NT_STATUS_INVALID_PARAMETER_12 NT_STATUS(0xC0000000 | 0x00fa)
348 #define NT_STATUS_REDIRECTOR_NOT_STARTED NT_STATUS(0xC0000000 | 0x00fb)
349 #define NT_STATUS_REDIRECTOR_STARTED NT_STATUS(0xC0000000 | 0x00fc)
350 #define NT_STATUS_STACK_OVERFLOW NT_STATUS(0xC0000000 | 0x00fd)
351 #define NT_STATUS_NO_SUCH_PACKAGE NT_STATUS(0xC0000000 | 0x00fe)
352 #define NT_STATUS_BAD_FUNCTION_TABLE NT_STATUS(0xC0000000 | 0x00ff)
353 #define NT_STATUS_DIRECTORY_NOT_EMPTY NT_STATUS(0xC0000000 | 0x0101)
354 #define NT_STATUS_FILE_CORRUPT_ERROR NT_STATUS(0xC0000000 | 0x0102)
355 #define NT_STATUS_NOT_A_DIRECTORY NT_STATUS(0xC0000000 | 0x0103)
356 #define NT_STATUS_BAD_LOGON_SESSION_STATE NT_STATUS(0xC0000000 | 0x0104)
357 #define NT_STATUS_LOGON_SESSION_COLLISION NT_STATUS(0xC0000000 | 0x0105)
358 #define NT_STATUS_NAME_TOO_LONG NT_STATUS(0xC0000000 | 0x0106)
359 #define NT_STATUS_FILES_OPEN NT_STATUS(0xC0000000 | 0x0107)
360 #define NT_STATUS_CONNECTION_IN_USE NT_STATUS(0xC0000000 | 0x0108)
361 #define NT_STATUS_MESSAGE_NOT_FOUND NT_STATUS(0xC0000000 | 0x0109)
362 #define NT_STATUS_PROCESS_IS_TERMINATING NT_STATUS(0xC0000000 | 0x010a)
363 #define NT_STATUS_INVALID_LOGON_TYPE NT_STATUS(0xC0000000 | 0x010b)
364 #define NT_STATUS_NO_GUID_TRANSLATION NT_STATUS(0xC0000000 | 0x010c)
365 #define NT_STATUS_CANNOT_IMPERSONATE NT_STATUS(0xC0000000 | 0x010d)
366 #define NT_STATUS_IMAGE_ALREADY_LOADED NT_STATUS(0xC0000000 | 0x010e)
367 #define NT_STATUS_ABIOS_NOT_PRESENT NT_STATUS(0xC0000000 | 0x010f)
368 #define NT_STATUS_ABIOS_LID_NOT_EXIST NT_STATUS(0xC0000000 | 0x0110)
369 #define NT_STATUS_ABIOS_LID_ALREADY_OWNED NT_STATUS(0xC0000000 | 0x0111)
370 #define NT_STATUS_ABIOS_NOT_LID_OWNER NT_STATUS(0xC0000000 | 0x0112)
371 #define NT_STATUS_ABIOS_INVALID_COMMAND NT_STATUS(0xC0000000 | 0x0113)
372 #define NT_STATUS_ABIOS_INVALID_LID NT_STATUS(0xC0000000 | 0x0114)
373 #define NT_STATUS_ABIOS_SELECTOR_NOT_AVAILABLE NT_STATUS(0xC0000000 | 0x0115)
374 #define NT_STATUS_ABIOS_INVALID_SELECTOR NT_STATUS(0xC0000000 | 0x0116)
375 #define NT_STATUS_NO_LDT NT_STATUS(0xC0000000 | 0x0117)
376 #define NT_STATUS_INVALID_LDT_SIZE NT_STATUS(0xC0000000 | 0x0118)
377 #define NT_STATUS_INVALID_LDT_OFFSET NT_STATUS(0xC0000000 | 0x0119)
378 #define NT_STATUS_INVALID_LDT_DESCRIPTOR NT_STATUS(0xC0000000 | 0x011a)
379 #define NT_STATUS_INVALID_IMAGE_NE_FORMAT NT_STATUS(0xC0000000 | 0x011b)
380 #define NT_STATUS_RXACT_INVALID_STATE NT_STATUS(0xC0000000 | 0x011c)
381 #define NT_STATUS_RXACT_COMMIT_FAILURE NT_STATUS(0xC0000000 | 0x011d)
382 #define NT_STATUS_MAPPED_FILE_SIZE_ZERO NT_STATUS(0xC0000000 | 0x011e)
383 #define NT_STATUS_TOO_MANY_OPENED_FILES NT_STATUS(0xC0000000 | 0x011f)
384 #define NT_STATUS_CANCELLED NT_STATUS(0xC0000000 | 0x0120)
385 #define NT_STATUS_CANNOT_DELETE NT_STATUS(0xC0000000 | 0x0121)
386 #define NT_STATUS_INVALID_COMPUTER_NAME NT_STATUS(0xC0000000 | 0x0122)
387 #define NT_STATUS_FILE_DELETED NT_STATUS(0xC0000000 | 0x0123)
388 #define NT_STATUS_SPECIAL_ACCOUNT NT_STATUS(0xC0000000 | 0x0124)
389 #define NT_STATUS_SPECIAL_GROUP NT_STATUS(0xC0000000 | 0x0125)
390 #define NT_STATUS_SPECIAL_USER NT_STATUS(0xC0000000 | 0x0126)
391 #define NT_STATUS_MEMBERS_PRIMARY_GROUP NT_STATUS(0xC0000000 | 0x0127)
392 #define NT_STATUS_FILE_CLOSED NT_STATUS(0xC0000000 | 0x0128)
393 #define NT_STATUS_TOO_MANY_THREADS NT_STATUS(0xC0000000 | 0x0129)
394 #define NT_STATUS_THREAD_NOT_IN_PROCESS NT_STATUS(0xC0000000 | 0x012a)
395 #define NT_STATUS_TOKEN_ALREADY_IN_USE NT_STATUS(0xC0000000 | 0x012b)
396 #define NT_STATUS_PAGEFILE_QUOTA_EXCEEDED NT_STATUS(0xC0000000 | 0x012c)
397 #define NT_STATUS_COMMITMENT_LIMIT NT_STATUS(0xC0000000 | 0x012d)
398 #define NT_STATUS_INVALID_IMAGE_LE_FORMAT NT_STATUS(0xC0000000 | 0x012e)
399 #define NT_STATUS_INVALID_IMAGE_NOT_MZ NT_STATUS(0xC0000000 | 0x012f)
400 #define NT_STATUS_INVALID_IMAGE_PROTECT NT_STATUS(0xC0000000 | 0x0130)
401 #define NT_STATUS_INVALID_IMAGE_WIN_16 NT_STATUS(0xC0000000 | 0x0131)
402 #define NT_STATUS_LOGON_SERVER_CONFLICT NT_STATUS(0xC0000000 | 0x0132)
403 #define NT_STATUS_TIME_DIFFERENCE_AT_DC NT_STATUS(0xC0000000 | 0x0133)
404 #define NT_STATUS_SYNCHRONIZATION_REQUIRED NT_STATUS(0xC0000000 | 0x0134)
405 #define NT_STATUS_DLL_NOT_FOUND NT_STATUS(0xC0000000 | 0x0135)
406 #define NT_STATUS_OPEN_FAILED NT_STATUS(0xC0000000 | 0x0136)
407 #define NT_STATUS_IO_PRIVILEGE_FAILED NT_STATUS(0xC0000000 | 0x0137)
408 #define NT_STATUS_ORDINAL_NOT_FOUND NT_STATUS(0xC0000000 | 0x0138)
409 #define NT_STATUS_ENTRYPOINT_NOT_FOUND NT_STATUS(0xC0000000 | 0x0139)
410 #define NT_STATUS_CONTROL_C_EXIT NT_STATUS(0xC0000000 | 0x013a)
411 #define NT_STATUS_LOCAL_DISCONNECT NT_STATUS(0xC0000000 | 0x013b)
412 #define NT_STATUS_REMOTE_DISCONNECT NT_STATUS(0xC0000000 | 0x013c)
413 #define NT_STATUS_REMOTE_RESOURCES NT_STATUS(0xC0000000 | 0x013d)
414 #define NT_STATUS_LINK_FAILED NT_STATUS(0xC0000000 | 0x013e)
415 #define NT_STATUS_LINK_TIMEOUT NT_STATUS(0xC0000000 | 0x013f)
416 #define NT_STATUS_INVALID_CONNECTION NT_STATUS(0xC0000000 | 0x0140)
417 #define NT_STATUS_INVALID_ADDRESS NT_STATUS(0xC0000000 | 0x0141)
418 #define NT_STATUS_DLL_INIT_FAILED NT_STATUS(0xC0000000 | 0x0142)
419 #define NT_STATUS_MISSING_SYSTEMFILE NT_STATUS(0xC0000000 | 0x0143)
420 #define NT_STATUS_UNHANDLED_EXCEPTION NT_STATUS(0xC0000000 | 0x0144)
421 #define NT_STATUS_APP_INIT_FAILURE NT_STATUS(0xC0000000 | 0x0145)
422 #define NT_STATUS_PAGEFILE_CREATE_FAILED NT_STATUS(0xC0000000 | 0x0146)
423 #define NT_STATUS_NO_PAGEFILE NT_STATUS(0xC0000000 | 0x0147)
424 #define NT_STATUS_INVALID_LEVEL NT_STATUS(0xC0000000 | 0x0148)
425 #define NT_STATUS_WRONG_PASSWORD_CORE NT_STATUS(0xC0000000 | 0x0149)
426 #define NT_STATUS_ILLEGAL_FLOAT_CONTEXT NT_STATUS(0xC0000000 | 0x014a)
427 #define NT_STATUS_PIPE_BROKEN NT_STATUS(0xC0000000 | 0x014b)
428 #define NT_STATUS_REGISTRY_CORRUPT NT_STATUS(0xC0000000 | 0x014c)
429 #define NT_STATUS_REGISTRY_IO_FAILED NT_STATUS(0xC0000000 | 0x014d)
430 #define NT_STATUS_NO_EVENT_PAIR NT_STATUS(0xC0000000 | 0x014e)
431 #define NT_STATUS_UNRECOGNIZED_VOLUME NT_STATUS(0xC0000000 | 0x014f)
432 #define NT_STATUS_SERIAL_NO_DEVICE_INITED NT_STATUS(0xC0000000 | 0x0150)
433 #define NT_STATUS_NO_SUCH_ALIAS NT_STATUS(0xC0000000 | 0x0151)
434 #define NT_STATUS_MEMBER_NOT_IN_ALIAS NT_STATUS(0xC0000000 | 0x0152)
435 #define NT_STATUS_MEMBER_IN_ALIAS NT_STATUS(0xC0000000 | 0x0153)
436 #define NT_STATUS_ALIAS_EXISTS NT_STATUS(0xC0000000 | 0x0154)
437 #define NT_STATUS_LOGON_NOT_GRANTED NT_STATUS(0xC0000000 | 0x0155)
438 #define NT_STATUS_TOO_MANY_SECRETS NT_STATUS(0xC0000000 | 0x0156)
439 #define NT_STATUS_SECRET_TOO_LONG NT_STATUS(0xC0000000 | 0x0157)
440 #define NT_STATUS_INTERNAL_DB_ERROR NT_STATUS(0xC0000000 | 0x0158)
441 #define NT_STATUS_FULLSCREEN_MODE NT_STATUS(0xC0000000 | 0x0159)
442 #define NT_STATUS_TOO_MANY_CONTEXT_IDS NT_STATUS(0xC0000000 | 0x015a)
443 #define NT_STATUS_LOGON_TYPE_NOT_GRANTED NT_STATUS(0xC0000000 | 0x015b)
444 #define NT_STATUS_NOT_REGISTRY_FILE NT_STATUS(0xC0000000 | 0x015c)
445 #define NT_STATUS_NT_CROSS_ENCRYPTION_REQUIRED NT_STATUS(0xC0000000 | 0x015d)
446 #define NT_STATUS_DOMAIN_CTRLR_CONFIG_ERROR NT_STATUS(0xC0000000 | 0x015e)
447 #define NT_STATUS_FT_MISSING_MEMBER NT_STATUS(0xC0000000 | 0x015f)
448 #define NT_STATUS_ILL_FORMED_SERVICE_ENTRY NT_STATUS(0xC0000000 | 0x0160)
449 #define NT_STATUS_ILLEGAL_CHARACTER NT_STATUS(0xC0000000 | 0x0161)
450 #define NT_STATUS_UNMAPPABLE_CHARACTER NT_STATUS(0xC0000000 | 0x0162)
451 #define NT_STATUS_UNDEFINED_CHARACTER NT_STATUS(0xC0000000 | 0x0163)
452 #define NT_STATUS_FLOPPY_VOLUME NT_STATUS(0xC0000000 | 0x0164)
453 #define NT_STATUS_FLOPPY_ID_MARK_NOT_FOUND NT_STATUS(0xC0000000 | 0x0165)
454 #define NT_STATUS_FLOPPY_WRONG_CYLINDER NT_STATUS(0xC0000000 | 0x0166)
455 #define NT_STATUS_FLOPPY_UNKNOWN_ERROR NT_STATUS(0xC0000000 | 0x0167)
456 #define NT_STATUS_FLOPPY_BAD_REGISTERS NT_STATUS(0xC0000000 | 0x0168)
457 #define NT_STATUS_DISK_RECALIBRATE_FAILED NT_STATUS(0xC0000000 | 0x0169)
458 #define NT_STATUS_DISK_OPERATION_FAILED NT_STATUS(0xC0000000 | 0x016a)
459 #define NT_STATUS_DISK_RESET_FAILED NT_STATUS(0xC0000000 | 0x016b)
460 #define NT_STATUS_SHARED_IRQ_BUSY NT_STATUS(0xC0000000 | 0x016c)
461 #define NT_STATUS_FT_ORPHANING NT_STATUS(0xC0000000 | 0x016d)
462 #define NT_STATUS_PARTITION_FAILURE NT_STATUS(0xC0000000 | 0x0172)
463 #define NT_STATUS_INVALID_BLOCK_LENGTH NT_STATUS(0xC0000000 | 0x0173)
464 #define NT_STATUS_DEVICE_NOT_PARTITIONED NT_STATUS(0xC0000000 | 0x0174)
465 #define NT_STATUS_UNABLE_TO_LOCK_MEDIA NT_STATUS(0xC0000000 | 0x0175)
466 #define NT_STATUS_UNABLE_TO_UNLOAD_MEDIA NT_STATUS(0xC0000000 | 0x0176)
467 #define NT_STATUS_EOM_OVERFLOW NT_STATUS(0xC0000000 | 0x0177)
468 #define NT_STATUS_NO_MEDIA NT_STATUS(0xC0000000 | 0x0178)
469 #define NT_STATUS_NO_SUCH_MEMBER NT_STATUS(0xC0000000 | 0x017a)
470 #define NT_STATUS_INVALID_MEMBER NT_STATUS(0xC0000000 | 0x017b)
471 #define NT_STATUS_KEY_DELETED NT_STATUS(0xC0000000 | 0x017c)
472 #define NT_STATUS_NO_LOG_SPACE NT_STATUS(0xC0000000 | 0x017d)
473 #define NT_STATUS_TOO_MANY_SIDS NT_STATUS(0xC0000000 | 0x017e)
474 #define NT_STATUS_LM_CROSS_ENCRYPTION_REQUIRED NT_STATUS(0xC0000000 | 0x017f)
475 #define NT_STATUS_KEY_HAS_CHILDREN NT_STATUS(0xC0000000 | 0x0180)
476 #define NT_STATUS_CHILD_MUST_BE_VOLATILE NT_STATUS(0xC0000000 | 0x0181)
477 #define NT_STATUS_DEVICE_CONFIGURATION_ERROR NT_STATUS(0xC0000000 | 0x0182)
478 #define NT_STATUS_DRIVER_INTERNAL_ERROR NT_STATUS(0xC0000000 | 0x0183)
479 #define NT_STATUS_INVALID_DEVICE_STATE NT_STATUS(0xC0000000 | 0x0184)
480 #define NT_STATUS_IO_DEVICE_ERROR NT_STATUS(0xC0000000 | 0x0185)
481 #define NT_STATUS_DEVICE_PROTOCOL_ERROR NT_STATUS(0xC0000000 | 0x0186)
482 #define NT_STATUS_BACKUP_CONTROLLER NT_STATUS(0xC0000000 | 0x0187)
483 #define NT_STATUS_LOG_FILE_FULL NT_STATUS(0xC0000000 | 0x0188)
484 #define NT_STATUS_TOO_LATE NT_STATUS(0xC0000000 | 0x0189)
485 #define NT_STATUS_NO_TRUST_LSA_SECRET NT_STATUS(0xC0000000 | 0x018a)
486 #define NT_STATUS_NO_TRUST_SAM_ACCOUNT NT_STATUS(0xC0000000 | 0x018b)
487 #define NT_STATUS_TRUSTED_DOMAIN_FAILURE NT_STATUS(0xC0000000 | 0x018c)
488 #define NT_STATUS_TRUSTED_RELATIONSHIP_FAILURE NT_STATUS(0xC0000000 | 0x018d)
489 #define NT_STATUS_EVENTLOG_FILE_CORRUPT NT_STATUS(0xC0000000 | 0x018e)
490 #define NT_STATUS_EVENTLOG_CANT_START NT_STATUS(0xC0000000 | 0x018f)
491 #define NT_STATUS_TRUST_FAILURE NT_STATUS(0xC0000000 | 0x0190)
492 #define NT_STATUS_MUTANT_LIMIT_EXCEEDED NT_STATUS(0xC0000000 | 0x0191)
493 #define NT_STATUS_NETLOGON_NOT_STARTED NT_STATUS(0xC0000000 | 0x0192)
494 #define NT_STATUS_ACCOUNT_EXPIRED NT_STATUS(0xC0000000 | 0x0193)
495 #define NT_STATUS_POSSIBLE_DEADLOCK NT_STATUS(0xC0000000 | 0x0194)
496 #define NT_STATUS_NETWORK_CREDENTIAL_CONFLICT NT_STATUS(0xC0000000 | 0x0195)
497 #define NT_STATUS_REMOTE_SESSION_LIMIT NT_STATUS(0xC0000000 | 0x0196)
498 #define NT_STATUS_EVENTLOG_FILE_CHANGED NT_STATUS(0xC0000000 | 0x0197)
499 #define NT_STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT NT_STATUS(0xC0000000 | 0x0198)
500 #define NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT NT_STATUS(0xC0000000 | 0x0199)
501 #define NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT NT_STATUS(0xC0000000 | 0x019a)
502 #define NT_STATUS_DOMAIN_TRUST_INCONSISTENT NT_STATUS(0xC0000000 | 0x019b)
503 #define NT_STATUS_FS_DRIVER_REQUIRED NT_STATUS(0xC0000000 | 0x019c)
504 #define NT_STATUS_NO_USER_SESSION_KEY NT_STATUS(0xC0000000 | 0x0202)
505 #define NT_STATUS_USER_SESSION_DELETED NT_STATUS(0xC0000000 | 0x0203)
506 #define NT_STATUS_RESOURCE_LANG_NOT_FOUND NT_STATUS(0xC0000000 | 0x0204)
507 #define NT_STATUS_INSUFF_SERVER_RESOURCES NT_STATUS(0xC0000000 | 0x0205)
508 #define NT_STATUS_INVALID_BUFFER_SIZE NT_STATUS(0xC0000000 | 0x0206)
509 #define NT_STATUS_INVALID_ADDRESS_COMPONENT NT_STATUS(0xC0000000 | 0x0207)
510 #define NT_STATUS_INVALID_ADDRESS_WILDCARD NT_STATUS(0xC0000000 | 0x0208)
511 #define NT_STATUS_TOO_MANY_ADDRESSES NT_STATUS(0xC0000000 | 0x0209)
512 #define NT_STATUS_ADDRESS_ALREADY_EXISTS NT_STATUS(0xC0000000 | 0x020a)
513 #define NT_STATUS_ADDRESS_CLOSED NT_STATUS(0xC0000000 | 0x020b)
514 #define NT_STATUS_CONNECTION_DISCONNECTED NT_STATUS(0xC0000000 | 0x020c)
515 #define NT_STATUS_CONNECTION_RESET NT_STATUS(0xC0000000 | 0x020d)
516 #define NT_STATUS_TOO_MANY_NODES NT_STATUS(0xC0000000 | 0x020e)
517 #define NT_STATUS_TRANSACTION_ABORTED NT_STATUS(0xC0000000 | 0x020f)
518 #define NT_STATUS_TRANSACTION_TIMED_OUT NT_STATUS(0xC0000000 | 0x0210)
519 #define NT_STATUS_TRANSACTION_NO_RELEASE NT_STATUS(0xC0000000 | 0x0211)
520 #define NT_STATUS_TRANSACTION_NO_MATCH NT_STATUS(0xC0000000 | 0x0212)
521 #define NT_STATUS_TRANSACTION_RESPONDED NT_STATUS(0xC0000000 | 0x0213)
522 #define NT_STATUS_TRANSACTION_INVALID_ID NT_STATUS(0xC0000000 | 0x0214)
523 #define NT_STATUS_TRANSACTION_INVALID_TYPE NT_STATUS(0xC0000000 | 0x0215)
524 #define NT_STATUS_NOT_SERVER_SESSION NT_STATUS(0xC0000000 | 0x0216)
525 #define NT_STATUS_NOT_CLIENT_SESSION NT_STATUS(0xC0000000 | 0x0217)
526 #define NT_STATUS_CANNOT_LOAD_REGISTRY_FILE NT_STATUS(0xC0000000 | 0x0218)
527 #define NT_STATUS_DEBUG_ATTACH_FAILED NT_STATUS(0xC0000000 | 0x0219)
528 #define NT_STATUS_SYSTEM_PROCESS_TERMINATED NT_STATUS(0xC0000000 | 0x021a)
529 #define NT_STATUS_DATA_NOT_ACCEPTED NT_STATUS(0xC0000000 | 0x021b)
530 #define NT_STATUS_NO_BROWSER_SERVERS_FOUND NT_STATUS(0xC0000000 | 0x021c)
531 #define NT_STATUS_VDM_HARD_ERROR NT_STATUS(0xC0000000 | 0x021d)
532 #define NT_STATUS_DRIVER_CANCEL_TIMEOUT NT_STATUS(0xC0000000 | 0x021e)
533 #define NT_STATUS_REPLY_MESSAGE_MISMATCH NT_STATUS(0xC0000000 | 0x021f)
534 #define NT_STATUS_MAPPED_ALIGNMENT NT_STATUS(0xC0000000 | 0x0220)
535 #define NT_STATUS_IMAGE_CHECKSUM_MISMATCH NT_STATUS(0xC0000000 | 0x0221)
536 #define NT_STATUS_LOST_WRITEBEHIND_DATA NT_STATUS(0xC0000000 | 0x0222)
537 #define NT_STATUS_CLIENT_SERVER_PARAMETERS_INVALID NT_STATUS(0xC0000000 | 0x0223)
538 #define NT_STATUS_PASSWORD_MUST_CHANGE NT_STATUS(0xC0000000 | 0x0224)
539 #define NT_STATUS_NOT_FOUND NT_STATUS(0xC0000000 | 0x0225)
540 #define NT_STATUS_NOT_TINY_STREAM NT_STATUS(0xC0000000 | 0x0226)
541 #define NT_STATUS_RECOVERY_FAILURE NT_STATUS(0xC0000000 | 0x0227)
542 #define NT_STATUS_STACK_OVERFLOW_READ NT_STATUS(0xC0000000 | 0x0228)
543 #define NT_STATUS_FAIL_CHECK NT_STATUS(0xC0000000 | 0x0229)
544 #define NT_STATUS_DUPLICATE_OBJECTID NT_STATUS(0xC0000000 | 0x022a)
545 #define NT_STATUS_OBJECTID_EXISTS NT_STATUS(0xC0000000 | 0x022b)
546 #define NT_STATUS_CONVERT_TO_LARGE NT_STATUS(0xC0000000 | 0x022c)
547 #define NT_STATUS_RETRY NT_STATUS(0xC0000000 | 0x022d)
548 #define NT_STATUS_FOUND_OUT_OF_SCOPE NT_STATUS(0xC0000000 | 0x022e)
549 #define NT_STATUS_ALLOCATE_BUCKET NT_STATUS(0xC0000000 | 0x022f)
550 #define NT_STATUS_PROPSET_NOT_FOUND NT_STATUS(0xC0000000 | 0x0230)
551 #define NT_STATUS_MARSHALL_OVERFLOW NT_STATUS(0xC0000000 | 0x0231)
552 #define NT_STATUS_INVALID_VARIANT NT_STATUS(0xC0000000 | 0x0232)
553 #define NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND NT_STATUS(0xC0000000 | 0x0233)
554 #define NT_STATUS_ACCOUNT_LOCKED_OUT NT_STATUS(0xC0000000 | 0x0234)
555 #define NT_STATUS_HANDLE_NOT_CLOSABLE NT_STATUS(0xC0000000 | 0x0235)
556 #define NT_STATUS_CONNECTION_REFUSED NT_STATUS(0xC0000000 | 0x0236)
557 #define NT_STATUS_GRACEFUL_DISCONNECT NT_STATUS(0xC0000000 | 0x0237)
558 #define NT_STATUS_ADDRESS_ALREADY_ASSOCIATED NT_STATUS(0xC0000000 | 0x0238)
559 #define NT_STATUS_ADDRESS_NOT_ASSOCIATED NT_STATUS(0xC0000000 | 0x0239)
560 #define NT_STATUS_CONNECTION_INVALID NT_STATUS(0xC0000000 | 0x023a)
561 #define NT_STATUS_CONNECTION_ACTIVE NT_STATUS(0xC0000000 | 0x023b)
562 #define NT_STATUS_NETWORK_UNREACHABLE NT_STATUS(0xC0000000 | 0x023c)
563 #define NT_STATUS_HOST_UNREACHABLE NT_STATUS(0xC0000000 | 0x023d)
564 #define NT_STATUS_PROTOCOL_UNREACHABLE NT_STATUS(0xC0000000 | 0x023e)
565 #define NT_STATUS_PORT_UNREACHABLE NT_STATUS(0xC0000000 | 0x023f)
566 #define NT_STATUS_REQUEST_ABORTED NT_STATUS(0xC0000000 | 0x0240)
567 #define NT_STATUS_CONNECTION_ABORTED NT_STATUS(0xC0000000 | 0x0241)
568 #define NT_STATUS_BAD_COMPRESSION_BUFFER NT_STATUS(0xC0000000 | 0x0242)
569 #define NT_STATUS_USER_MAPPED_FILE NT_STATUS(0xC0000000 | 0x0243)
570 #define NT_STATUS_AUDIT_FAILED NT_STATUS(0xC0000000 | 0x0244)
571 #define NT_STATUS_TIMER_RESOLUTION_NOT_SET NT_STATUS(0xC0000000 | 0x0245)
572 #define NT_STATUS_CONNECTION_COUNT_LIMIT NT_STATUS(0xC0000000 | 0x0246)
573 #define NT_STATUS_LOGIN_TIME_RESTRICTION NT_STATUS(0xC0000000 | 0x0247)
574 #define NT_STATUS_LOGIN_WKSTA_RESTRICTION NT_STATUS(0xC0000000 | 0x0248)
575 #define NT_STATUS_IMAGE_MP_UP_MISMATCH NT_STATUS(0xC0000000 | 0x0249)
576 #define NT_STATUS_INSUFFICIENT_LOGON_INFO NT_STATUS(0xC0000000 | 0x0250)
577 #define NT_STATUS_BAD_DLL_ENTRYPOINT NT_STATUS(0xC0000000 | 0x0251)
578 #define NT_STATUS_BAD_SERVICE_ENTRYPOINT NT_STATUS(0xC0000000 | 0x0252)
579 #define NT_STATUS_LPC_REPLY_LOST NT_STATUS(0xC0000000 | 0x0253)
580 #define NT_STATUS_IP_ADDRESS_CONFLICT1 NT_STATUS(0xC0000000 | 0x0254)
581 #define NT_STATUS_IP_ADDRESS_CONFLICT2 NT_STATUS(0xC0000000 | 0x0255)
582 #define NT_STATUS_REGISTRY_QUOTA_LIMIT NT_STATUS(0xC0000000 | 0x0256)
583 #define NT_STATUS_PATH_NOT_COVERED NT_STATUS(0xC0000000 | 0x0257)
584 #define NT_STATUS_NO_CALLBACK_ACTIVE NT_STATUS(0xC0000000 | 0x0258)
585 #define NT_STATUS_LICENSE_QUOTA_EXCEEDED NT_STATUS(0xC0000000 | 0x0259)
586 #define NT_STATUS_PWD_TOO_SHORT NT_STATUS(0xC0000000 | 0x025a)
587 #define NT_STATUS_PWD_TOO_RECENT NT_STATUS(0xC0000000 | 0x025b)
588 #define NT_STATUS_PWD_HISTORY_CONFLICT NT_STATUS(0xC0000000 | 0x025c)
589 #define NT_STATUS_PLUGPLAY_NO_DEVICE NT_STATUS(0xC0000000 | 0x025e)
590 #define NT_STATUS_UNSUPPORTED_COMPRESSION NT_STATUS(0xC0000000 | 0x025f)
591 #define NT_STATUS_INVALID_HW_PROFILE NT_STATUS(0xC0000000 | 0x0260)
592 #define NT_STATUS_INVALID_PLUGPLAY_DEVICE_PATH NT_STATUS(0xC0000000 | 0x0261)
593 #define NT_STATUS_DRIVER_ORDINAL_NOT_FOUND NT_STATUS(0xC0000000 | 0x0262)
594 #define NT_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND NT_STATUS(0xC0000000 | 0x0263)
595 #define NT_STATUS_RESOURCE_NOT_OWNED NT_STATUS(0xC0000000 | 0x0264)
596 #define NT_STATUS_TOO_MANY_LINKS NT_STATUS(0xC0000000 | 0x0265)
597 #define NT_STATUS_QUOTA_LIST_INCONSISTENT NT_STATUS(0xC0000000 | 0x0266)
598 #define NT_STATUS_FILE_IS_OFFLINE NT_STATUS(0xC0000000 | 0x0267)
599 #define NT_STATUS_DS_NO_MORE_RIDS NT_STATUS(0xC0000000 | 0x02A8)
600 #define NT_STATUS_NOT_A_REPARSE_POINT NT_STATUS(0xC0000000 | 0x0275)
601 #define NT_STATUS_IO_REPARSE_DATA_INVALID NT_STATUS(0xC0000000 | 0x0278)
602 #define NT_STATUS_IO_REPARSE_TAG_NOT_HANDLED NT_STATUS(0xC0000000 | 0x0279)
603 #define NT_STATUS_CURRENT_DOMAIN_NOT_ALLOWED NT_STATUS(0xC0000000 | 0x02E9)
604 #define NT_STATUS_OBJECTID_NOT_FOUND NT_STATUS(0xC0000000 | 0x02F0)
605 #define NT_STATUS_NO_SUCH_JOB NT_STATUS(0xC0000000 | 0xEDE) /* scheduler */
606 #define NT_STATUS_NETWORK_SESSION_EXPIRED NT_STATUS(0xC0000000 | 0x035C)
607 #define NT_STATUS_ALL_SIDS_FILTERED NT_STATUS(0xC0000000 | 0x035E)
608 #define NT_STATUS_DOWNGRADE_DETECTED NT_STATUS(0xC0000000 | 0x0388)
609 #define NT_STATUS_NO_S4U_PROT_SUPPORT NT_STATUS(0xC0000000 | 0x040A)
610 #define NT_STATUS_CROSSREALM_DELEGATION_FAILURE NT_STATUS(0xC0000000 | 0x040B)
611 #define NT_STATUS_FILE_NOT_AVAILABLE NT_STATUS(0xC0000000 | 0x0467)
612 #define NT_STATUS_RPC_PROTSEQ_NOT_SUPPORTED NT_STATUS(0xC0000000 | 0x20004)
613 #define NT_STATUS_RPC_UNSUPPORTED_NAME_SYNTAX NT_STATUS(0xC0000000 | 0x20026)
614 #define NT_STATUS_RPC_UNKNOWN_IF NT_STATUS(0xC0000000 | 0x20012)
615 #define NT_STATUS_RPC_CALL_FAILED NT_STATUS(0xC0000000 | 0x2001B)
616 #define NT_STATUS_RPC_PROTOCOL_ERROR NT_STATUS(0xC0000000 | 0x2001D)
617 #define NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE NT_STATUS(0xC0000000 | 0x2002E)
618 #define NT_STATUS_RPC_CANNOT_SUPPORT NT_STATUS(0xC0000000 | 0x20041)
619 #define NT_STATUS_RPC_SEC_PKG_ERROR NT_STATUS(0xC0000000 | 0x20057)
620 #define NT_STATUS_RPC_SS_CONTEXT_MISMATCH NT_STATUS(0xC0000000 | 0x30005)
621 #define NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE NT_STATUS(0xC0000000 | 0x3000A)
622 #define NT_STATUS_RPC_BAD_STUB_DATA NT_STATUS(0xC0000000 | 0x3000C)
623 #define NT_STATUS_RPC_INVALID_PIPE_OBJECT NT_STATUS(0xC0000000 | 0x3005C)
624 #define NT_STATUS_RPC_INVALID_PIPE_OPERATION NT_STATUS(0xC0000000 | 0x3005D)
625 #define NT_STATUS_RPC_WRONG_PIPE_VERSION NT_STATUS(0xC0000000 | 0x3005E)
626 #define NT_STATUS_RPC_PIPE_CLOSED NT_STATUS(0xC0000000 | 0x3005F)
627 #define NT_STATUS_RPC_PIPE_DISCIPLINE_ERROR NT_STATUS(0xC0000000 | 0x30060)
628 #define NT_STATUS_RPC_PIPE_EMPTY NT_STATUS(0xC0000000 | 0x30061)
629 #define NT_STATUS_ERROR_DS_OBJ_STRING_NAME_EXISTS NT_STATUS(0xC0000000 | 0x2071)
630 #define NT_STATUS_ERROR_DS_INCOMPATIBLE_VERSION NT_STATUS(0xC0000000 | 0x00002177)
631
632 /*
633  * New descriptions for new errors generated from
634  * [MS-ERREF] http://msdn.microsoft.com/en-us/library/cc704588.aspx
635  */
636
637 #define NT_STATUS_WAIT_1                                  NT_STATUS(0x00000001)
638 #define NT_STATUS_WAIT_2                                  NT_STATUS(0x00000002)
639 #define NT_STATUS_WAIT_3                                  NT_STATUS(0x00000003)
640 #define NT_STATUS_WAIT_63                                 NT_STATUS(0x0000003F)
641 #define NT_STATUS_ABANDONED                               NT_STATUS(0x00000080)
642 #define NT_STATUS_ABANDONED_WAIT_0                        NT_STATUS(0x00000080)
643 #define NT_STATUS_ABANDONED_WAIT_63                       NT_STATUS(0x000000BF)
644 #define NT_STATUS_USER_APC                                NT_STATUS(0x000000C0)
645 #define NT_STATUS_ALERTED                                 NT_STATUS(0x00000101)
646 #define NT_STATUS_TIMEOUT                                 NT_STATUS(0x00000102)
647 #define NT_STATUS_REPARSE                                 NT_STATUS(0x00000104)
648 #define NT_STATUS_NOT_ALL_ASSIGNED                        NT_STATUS(0x00000106)
649 #define NT_STATUS_OPLOCK_BREAK_IN_PROGRESS                NT_STATUS(0x00000108)
650 #define NT_STATUS_VOLUME_MOUNTED                          NT_STATUS(0x00000109)
651 #define NT_STATUS_RXACT_COMMITTED                         NT_STATUS(0x0000010A)
652 #define NT_STATUS_NO_QUOTAS_FOR_ACCOUNT                   NT_STATUS(0x0000010D)
653 #define NT_STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED        NT_STATUS(0x0000010E)
654 #define NT_STATUS_PAGE_FAULT_TRANSITION                   NT_STATUS(0x00000110)
655 #define NT_STATUS_PAGE_FAULT_DEMAND_ZERO                  NT_STATUS(0x00000111)
656 #define NT_STATUS_PAGE_FAULT_COPY_ON_WRITE                NT_STATUS(0x00000112)
657 #define NT_STATUS_PAGE_FAULT_GUARD_PAGE                   NT_STATUS(0x00000113)
658 #define NT_STATUS_PAGE_FAULT_PAGING_FILE                  NT_STATUS(0x00000114)
659 #define NT_STATUS_CACHE_PAGE_LOCKED                       NT_STATUS(0x00000115)
660 #define NT_STATUS_CRASH_DUMP                              NT_STATUS(0x00000116)
661 #define NT_STATUS_BUFFER_ALL_ZEROS                        NT_STATUS(0x00000117)
662 #define NT_STATUS_REPARSE_OBJECT                          NT_STATUS(0x00000118)
663 #define NT_STATUS_RESOURCE_REQUIREMENTS_CHANGED           NT_STATUS(0x00000119)
664 #define NT_STATUS_TRANSLATION_COMPLETE                    NT_STATUS(0x00000120)
665 #define NT_STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY         NT_STATUS(0x00000121)
666 #define NT_STATUS_NOTHING_TO_TERMINATE                    NT_STATUS(0x00000122)
667 #define NT_STATUS_PROCESS_NOT_IN_JOB                      NT_STATUS(0x00000123)
668 #define NT_STATUS_PROCESS_IN_JOB                          NT_STATUS(0x00000124)
669 #define NT_STATUS_VOLSNAP_HIBERNATE_READY                 NT_STATUS(0x00000125)
670 #define NT_STATUS_FSFILTER_OP_COMPLETED_SUCCESSFULLY      NT_STATUS(0x00000126)
671 #define NT_STATUS_INTERRUPT_VECTOR_ALREADY_CONNECTED      NT_STATUS(0x00000127)
672 #define NT_STATUS_INTERRUPT_STILL_CONNECTED               NT_STATUS(0x00000128)
673 #define NT_STATUS_PROCESS_CLONED                          NT_STATUS(0x00000129)
674 #define NT_STATUS_FILE_LOCKED_WITH_ONLY_READERS           NT_STATUS(0x0000012A)
675 #define NT_STATUS_FILE_LOCKED_WITH_WRITERS                NT_STATUS(0x0000012B)
676 #define NT_STATUS_RESOURCEMANAGER_READ_ONLY               NT_STATUS(0x00000202)
677 #define NT_STATUS_WAIT_FOR_OPLOCK                         NT_STATUS(0x00000367)
678 #define NT_STATUS_DBG_EXCEPTION_HANDLED                   NT_STATUS(0x00010001)
679 #define NT_STATUS_DBG_CONTINUE                            NT_STATUS(0x00010002)
680 #define NT_STATUS_FLT_IO_COMPLETE                         NT_STATUS(0x001C0001)
681 #define NT_STATUS_CALLBACK_RETURNED_THREAD_AFFINITY       NT_STATUS(0xC0000721)
682 #define NT_STATUS_OBJECT_NAME_EXISTS                      NT_STATUS(0x40000000)
683 #define NT_STATUS_THREAD_WAS_SUSPENDED                    NT_STATUS(0x40000001)
684 #define NT_STATUS_WORKING_SET_LIMIT_RANGE                 NT_STATUS(0x40000002)
685 #define NT_STATUS_IMAGE_NOT_AT_BASE                       NT_STATUS(0x40000003)
686 #define NT_STATUS_RXACT_STATE_CREATED                     NT_STATUS(0x40000004)
687 #define NT_STATUS_SEGMENT_NOTIFICATION                    NT_STATUS(0x40000005)
688 #define NT_STATUS_LOCAL_USER_SESSION_KEY                  NT_STATUS(0x40000006)
689 #define NT_STATUS_BAD_CURRENT_DIRECTORY                   NT_STATUS(0x40000007)
690 #define NT_STATUS_SERIAL_MORE_WRITES                      NT_STATUS(0x40000008)
691 #define NT_STATUS_REGISTRY_RECOVERED                      NT_STATUS(0x40000009)
692 #define NT_STATUS_FT_READ_RECOVERY_FROM_BACKUP            NT_STATUS(0x4000000A)
693 #define NT_STATUS_FT_WRITE_RECOVERY                       NT_STATUS(0x4000000B)
694 #define NT_STATUS_SERIAL_COUNTER_TIMEOUT                  NT_STATUS(0x4000000C)
695 #define NT_STATUS_NULL_LM_PASSWORD                        NT_STATUS(0x4000000D)
696 #define NT_STATUS_IMAGE_MACHINE_TYPE_MISMATCH             NT_STATUS(0x4000000E)
697 #define NT_STATUS_RECEIVE_PARTIAL                         NT_STATUS(0x4000000F)
698 #define NT_STATUS_RECEIVE_EXPEDITED                       NT_STATUS(0x40000010)
699 #define NT_STATUS_RECEIVE_PARTIAL_EXPEDITED               NT_STATUS(0x40000011)
700 #define NT_STATUS_EVENT_DONE                              NT_STATUS(0x40000012)
701 #define NT_STATUS_EVENT_PENDING                           NT_STATUS(0x40000013)
702 #define NT_STATUS_CHECKING_FILE_SYSTEM                    NT_STATUS(0x40000014)
703 #define NT_STATUS_FATAL_APP_EXIT                          NT_STATUS(0x40000015)
704 #define NT_STATUS_PREDEFINED_HANDLE                       NT_STATUS(0x40000016)
705 #define NT_STATUS_WAS_UNLOCKED                            NT_STATUS(0x40000017)
706 #define NT_STATUS_SERVICE_NOTIFICATION                    NT_STATUS(0x40000018)
707 #define NT_STATUS_WAS_LOCKED                              NT_STATUS(0x40000019)
708 #define NT_STATUS_LOG_HARD_ERROR                          NT_STATUS(0x4000001A)
709 #define NT_STATUS_ALREADY_WIN32                           NT_STATUS(0x4000001B)
710 #define NT_STATUS_WX86_UNSIMULATE                         NT_STATUS(0x4000001C)
711 #define NT_STATUS_WX86_CONTINUE                           NT_STATUS(0x4000001D)
712 #define NT_STATUS_WX86_SINGLE_STEP                        NT_STATUS(0x4000001E)
713 #define NT_STATUS_WX86_BREAKPOINT                         NT_STATUS(0x4000001F)
714 #define NT_STATUS_WX86_EXCEPTION_CONTINUE                 NT_STATUS(0x40000020)
715 #define NT_STATUS_WX86_EXCEPTION_LASTCHANCE               NT_STATUS(0x40000021)
716 #define NT_STATUS_WX86_EXCEPTION_CHAIN                    NT_STATUS(0x40000022)
717 #define NT_STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE         NT_STATUS(0x40000023)
718 #define NT_STATUS_NO_YIELD_PERFORMED                      NT_STATUS(0x40000024)
719 #define NT_STATUS_TIMER_RESUME_IGNORED                    NT_STATUS(0x40000025)
720 #define NT_STATUS_ARBITRATION_UNHANDLED                   NT_STATUS(0x40000026)
721 #define NT_STATUS_CARDBUS_NOT_SUPPORTED                   NT_STATUS(0x40000027)
722 #define NT_STATUS_WX86_CREATEWX86TIB                      NT_STATUS(0x40000028)
723 #define NT_STATUS_MP_PROCESSOR_MISMATCH                   NT_STATUS(0x40000029)
724 #define NT_STATUS_HIBERNATED                              NT_STATUS(0x4000002A)
725 #define NT_STATUS_RESUME_HIBERNATION                      NT_STATUS(0x4000002B)
726 #define NT_STATUS_FIRMWARE_UPDATED                        NT_STATUS(0x4000002C)
727 #define NT_STATUS_DRIVERS_LEAKING_LOCKED_PAGES            NT_STATUS(0x4000002D)
728 #define NT_STATUS_MESSAGE_RETRIEVED                       NT_STATUS(0x4000002E)
729 #define NT_STATUS_SYSTEM_POWERSTATE_TRANSITION            NT_STATUS(0x4000002F)
730 #define NT_STATUS_ALPC_CHECK_COMPLETION_LIST              NT_STATUS(0x40000030)
731 #define NT_STATUS_SYSTEM_POWERSTATE_COMPLEX_TRANSITION    NT_STATUS(0x40000031)
732 #define NT_STATUS_ACCESS_AUDIT_BY_POLICY                  NT_STATUS(0x40000032)
733 #define NT_STATUS_ABANDON_HIBERFILE                       NT_STATUS(0x40000033)
734 #define NT_STATUS_BIZRULES_NOT_ENABLED                    NT_STATUS(0x40000034)
735 #define NT_STATUS_WAKE_SYSTEM                             NT_STATUS(0x40000294)
736 #define NT_STATUS_DS_SHUTTING_DOWN                        NT_STATUS(0x40000370)
737 #define NT_STATUS_DBG_REPLY_LATER                         NT_STATUS(0x40010001)
738 #define NT_STATUS_DBG_UNABLE_TO_PROVIDE_HANDLE            NT_STATUS(0x40010002)
739 #define NT_STATUS_DBG_TERMINATE_THREAD                    NT_STATUS(0x40010003)
740 #define NT_STATUS_DBG_TERMINATE_PROCESS                   NT_STATUS(0x40010004)
741 #define NT_STATUS_DBG_CONTROL_C                           NT_STATUS(0x40010005)
742 #define NT_STATUS_DBG_PRINTEXCEPTION_C                    NT_STATUS(0x40010006)
743 #define NT_STATUS_DBG_RIPEXCEPTION                        NT_STATUS(0x40010007)
744 #define NT_STATUS_DBG_CONTROL_BREAK                       NT_STATUS(0x40010008)
745 #define NT_STATUS_DBG_COMMAND_EXCEPTION                   NT_STATUS(0x40010009)
746 #define NT_STATUS_RPC_UUID_LOCAL_ONLY                     NT_STATUS(0x40020056)
747 #define NT_STATUS_RPC_SEND_INCOMPLETE                     NT_STATUS(0x400200AF)
748 #define NT_STATUS_CTX_CDM_CONNECT                         NT_STATUS(0x400A0004)
749 #define NT_STATUS_CTX_CDM_DISCONNECT                      NT_STATUS(0x400A0005)
750 #define NT_STATUS_SXS_RELEASE_ACTIVATION_CONTEXT          NT_STATUS(0x4015000D)
751 #define NT_STATUS_RECOVERY_NOT_NEEDED                     NT_STATUS(0x40190034)
752 #define NT_STATUS_RM_ALREADY_STARTED                      NT_STATUS(0x40190035)
753 #define NT_STATUS_LOG_NO_RESTART                          NT_STATUS(0x401A000C)
754 #define NT_STATUS_VIDEO_DRIVER_DEBUG_REPORT_REQUEST       NT_STATUS(0x401B00EC)
755 #define NT_STATUS_GRAPHICS_PARTIAL_DATA_POPULATED         NT_STATUS(0x401E000A)
756 #define NT_STATUS_GRAPHICS_DRIVER_MISMATCH                NT_STATUS(0x401E0117)
757 #define NT_STATUS_GRAPHICS_MODE_NOT_PINNED                NT_STATUS(0x401E0307)
758 #define NT_STATUS_GRAPHICS_NO_PREFERRED_MODE              NT_STATUS(0x401E031E)
759 #define NT_STATUS_GRAPHICS_DATASET_IS_EMPTY               NT_STATUS(0x401E034B)
760 #define NT_STATUS_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET    NT_STATUS(0x401E034C)
761 #define NT_STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED NT_STATUS(0x401E0351)
762 #define NT_STATUS_GRAPHICS_UNKNOWN_CHILD_STATUS           NT_STATUS(0x401E042F)
763 #define NT_STATUS_GRAPHICS_LEADLINK_START_DEFERRED        NT_STATUS(0x401E0437)
764 #define NT_STATUS_GRAPHICS_POLLING_TOO_FREQUENTLY         NT_STATUS(0x401E0439)
765 #define NT_STATUS_GRAPHICS_START_DEFERRED                 NT_STATUS(0x401E043A)
766 #define NT_STATUS_NDIS_INDICATION_REQUIRED                NT_STATUS(0x40230001)
767 #define NT_STATUS_GUARD_PAGE_VIOLATION                    NT_STATUS(0x80000001)
768 #define NT_STATUS_DATATYPE_MISALIGNMENT                   NT_STATUS(0x80000002)
769 #define NT_STATUS_BREAKPOINT                              NT_STATUS(0x80000003)
770 #define NT_STATUS_SINGLE_STEP                             NT_STATUS(0x80000004)
771 #define NT_STATUS_WAKE_SYSTEM_DEBUGGER                    NT_STATUS(0x80000007)
772 #define NT_STATUS_HANDLES_CLOSED                          NT_STATUS(0x8000000A)
773 #define NT_STATUS_NO_INHERITANCE                          NT_STATUS(0x8000000B)
774 #define NT_STATUS_GUID_SUBSTITUTION_MADE                  NT_STATUS(0x8000000C)
775 #define NT_STATUS_PARTIAL_COPY                            NT_STATUS(0x8000000D)
776 #define NT_STATUS_DEVICE_PAPER_EMPTY                      NT_STATUS(0x8000000E)
777 #define NT_STATUS_DEVICE_POWERED_OFF                      NT_STATUS(0x8000000F)
778 #define NT_STATUS_DEVICE_OFF_LINE                         NT_STATUS(0x80000010)
779 #define NT_STATUS_DEVICE_BUSY                             NT_STATUS(0x80000011)
780 #define NT_STATUS_VERIFY_REQUIRED                         NT_STATUS(0x80000016)
781 #define NT_STATUS_EXTRANEOUS_INFORMATION                  NT_STATUS(0x80000017)
782 #define NT_STATUS_RXACT_COMMIT_NECESSARY                  NT_STATUS(0x80000018)
783 #define NT_STATUS_FILEMARK_DETECTED                       NT_STATUS(0x8000001B)
784 #define NT_STATUS_MEDIA_CHANGED                           NT_STATUS(0x8000001C)
785 #define NT_STATUS_BUS_RESET                               NT_STATUS(0x8000001D)
786 #define NT_STATUS_END_OF_MEDIA                            NT_STATUS(0x8000001E)
787 #define NT_STATUS_BEGINNING_OF_MEDIA                      NT_STATUS(0x8000001F)
788 #define NT_STATUS_MEDIA_CHECK                             NT_STATUS(0x80000020)
789 #define NT_STATUS_SETMARK_DETECTED                        NT_STATUS(0x80000021)
790 #define NT_STATUS_NO_DATA_DETECTED                        NT_STATUS(0x80000022)
791 #define NT_STATUS_REDIRECTOR_HAS_OPEN_HANDLES             NT_STATUS(0x80000023)
792 #define NT_STATUS_SERVER_HAS_OPEN_HANDLES                 NT_STATUS(0x80000024)
793 #define NT_STATUS_ALREADY_DISCONNECTED                    NT_STATUS(0x80000025)
794 #define NT_STATUS_LONGJUMP                                NT_STATUS(0x80000026)
795 #define NT_STATUS_CLEANER_CARTRIDGE_INSTALLED             NT_STATUS(0x80000027)
796 #define NT_STATUS_PLUGPLAY_QUERY_VETOED                   NT_STATUS(0x80000028)
797 #define NT_STATUS_UNWIND_CONSOLIDATE                      NT_STATUS(0x80000029)
798 #define NT_STATUS_REGISTRY_HIVE_RECOVERED                 NT_STATUS(0x8000002A)
799 #define NT_STATUS_DLL_MIGHT_BE_INSECURE                   NT_STATUS(0x8000002B)
800 #define NT_STATUS_DLL_MIGHT_BE_INCOMPATIBLE               NT_STATUS(0x8000002C)
801 #define NT_STATUS_DEVICE_REQUIRES_CLEANING                NT_STATUS(0x80000288)
802 #define NT_STATUS_DEVICE_DOOR_OPEN                        NT_STATUS(0x80000289)
803 #define NT_STATUS_DATA_LOST_REPAIR                        NT_STATUS(0x80000803)
804 #define NT_STATUS_DBG_EXCEPTION_NOT_HANDLED               NT_STATUS(0x80010001)
805 #define NT_STATUS_CLUSTER_NODE_ALREADY_UP                 NT_STATUS(0x80130001)
806 #define NT_STATUS_CLUSTER_NODE_ALREADY_DOWN               NT_STATUS(0x80130002)
807 #define NT_STATUS_CLUSTER_NETWORK_ALREADY_ONLINE          NT_STATUS(0x80130003)
808 #define NT_STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE         NT_STATUS(0x80130004)
809 #define NT_STATUS_CLUSTER_NODE_ALREADY_MEMBER             NT_STATUS(0x80130005)
810 #define NT_STATUS_COULD_NOT_RESIZE_LOG                    NT_STATUS(0x80190009)
811 #define NT_STATUS_NO_TXF_METADATA                         NT_STATUS(0x80190029)
812 #define NT_STATUS_CANT_RECOVER_WITH_HANDLE_OPEN           NT_STATUS(0x80190031)
813 #define NT_STATUS_TXF_METADATA_ALREADY_PRESENT            NT_STATUS(0x80190041)
814 #define NT_STATUS_TRANSACTION_SCOPE_CALLBACKS_NOT_SET     NT_STATUS(0x80190042)
815 #define NT_STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD_RECOVERED NT_STATUS(0x801B00EB)
816 #define NT_STATUS_FLT_BUFFER_TOO_SMALL                    NT_STATUS(0x801C0001)
817 #define NT_STATUS_FVE_PARTIAL_METADATA                    NT_STATUS(0x80210001)
818 #define NT_STATUS_FVE_TRANSIENT_STATE                     NT_STATUS(0x80210002)
819 #define NT_STATUS_VARIABLE_NOT_FOUND                      NT_STATUS(0xC0000100)
820 #define NT_STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT        NT_STATUS(0xC000016E)
821 #define NT_STATUS_IMAGE_ALREADY_LOADED_AS_DLL             NT_STATUS(0xC000019D)
822 #define NT_STATUS_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING NT_STATUS(0xC000019E)
823 #define NT_STATUS_SHORT_NAMES_NOT_ENABLED_ON_VOLUME       NT_STATUS(0xC000019F)
824 #define NT_STATUS_SECURITY_STREAM_IS_INCONSISTENT         NT_STATUS(0xC00001A0)
825 #define NT_STATUS_INVALID_ACE_CONDITION                   NT_STATUS(0xC00001A2)
826 #define NT_STATUS_IMAGE_SUBSYSTEM_NOT_PRESENT             NT_STATUS(0xC00001A3)
827 #define NT_STATUS_NOTIFICATION_GUID_ALREADY_DEFINED       NT_STATUS(0xC00001A4)
828 #define NT_STATUS_NETWORK_OPEN_RESTRICTION                NT_STATUS(0xC0000201)
829 #define NT_STATUS_EVALUATION_EXPIRATION                   NT_STATUS(0xC0000268)
830 #define NT_STATUS_ILLEGAL_DLL_RELOCATION                  NT_STATUS(0xC0000269)
831 #define NT_STATUS_LICENSE_VIOLATION                       NT_STATUS(0xC000026A)
832 #define NT_STATUS_DLL_INIT_FAILED_LOGOFF                  NT_STATUS(0xC000026B)
833 #define NT_STATUS_DRIVER_UNABLE_TO_LOAD                   NT_STATUS(0xC000026C)
834 #define NT_STATUS_DFS_UNAVAILABLE                         NT_STATUS(0xC000026D)
835 #define NT_STATUS_VOLUME_DISMOUNTED                       NT_STATUS(0xC000026E)
836 #define NT_STATUS_WX86_INTERNAL_ERROR                     NT_STATUS(0xC000026F)
837 #define NT_STATUS_WX86_FLOAT_STACK_CHECK                  NT_STATUS(0xC0000270)
838 #define NT_STATUS_VALIDATE_CONTINUE                       NT_STATUS(0xC0000271)
839 #define NT_STATUS_NO_MATCH                                NT_STATUS(0xC0000272)
840 #define NT_STATUS_NO_MORE_MATCHES                         NT_STATUS(0xC0000273)
841 #define NT_STATUS_IO_REPARSE_TAG_INVALID                  NT_STATUS(0xC0000276)
842 #define NT_STATUS_IO_REPARSE_TAG_MISMATCH                 NT_STATUS(0xC0000277)
843 #define NT_STATUS_REPARSE_POINT_NOT_RESOLVED              NT_STATUS(0xC0000280)
844 #define NT_STATUS_DIRECTORY_IS_A_REPARSE_POINT            NT_STATUS(0xC0000281)
845 #define NT_STATUS_RANGE_LIST_CONFLICT                     NT_STATUS(0xC0000282)
846 #define NT_STATUS_SOURCE_ELEMENT_EMPTY                    NT_STATUS(0xC0000283)
847 #define NT_STATUS_DESTINATION_ELEMENT_FULL                NT_STATUS(0xC0000284)
848 #define NT_STATUS_ILLEGAL_ELEMENT_ADDRESS                 NT_STATUS(0xC0000285)
849 #define NT_STATUS_MAGAZINE_NOT_PRESENT                    NT_STATUS(0xC0000286)
850 #define NT_STATUS_REINITIALIZATION_NEEDED                 NT_STATUS(0xC0000287)
851 #define NT_STATUS_ENCRYPTION_FAILED                       NT_STATUS(0xC000028A)
852 #define NT_STATUS_DECRYPTION_FAILED                       NT_STATUS(0xC000028B)
853 #define NT_STATUS_RANGE_NOT_FOUND                         NT_STATUS(0xC000028C)
854 #define NT_STATUS_NO_RECOVERY_POLICY                      NT_STATUS(0xC000028D)
855 #define NT_STATUS_NO_EFS                                  NT_STATUS(0xC000028E)
856 #define NT_STATUS_WRONG_EFS                               NT_STATUS(0xC000028F)
857 #define NT_STATUS_NO_USER_KEYS                            NT_STATUS(0xC0000290)
858 #define NT_STATUS_FILE_NOT_ENCRYPTED                      NT_STATUS(0xC0000291)
859 #define NT_STATUS_NOT_EXPORT_FORMAT                       NT_STATUS(0xC0000292)
860 #define NT_STATUS_FILE_ENCRYPTED                          NT_STATUS(0xC0000293)
861 #define NT_STATUS_WMI_GUID_NOT_FOUND                      NT_STATUS(0xC0000295)
862 #define NT_STATUS_WMI_INSTANCE_NOT_FOUND                  NT_STATUS(0xC0000296)
863 #define NT_STATUS_WMI_ITEMID_NOT_FOUND                    NT_STATUS(0xC0000297)
864 #define NT_STATUS_WMI_TRY_AGAIN                           NT_STATUS(0xC0000298)
865 #define NT_STATUS_SHARED_POLICY                           NT_STATUS(0xC0000299)
866 #define NT_STATUS_POLICY_OBJECT_NOT_FOUND                 NT_STATUS(0xC000029A)
867 #define NT_STATUS_POLICY_ONLY_IN_DS                       NT_STATUS(0xC000029B)
868 #define NT_STATUS_VOLUME_NOT_UPGRADED                     NT_STATUS(0xC000029C)
869 #define NT_STATUS_REMOTE_STORAGE_NOT_ACTIVE               NT_STATUS(0xC000029D)
870 #define NT_STATUS_REMOTE_STORAGE_MEDIA_ERROR              NT_STATUS(0xC000029E)
871 #define NT_STATUS_NO_TRACKING_SERVICE                     NT_STATUS(0xC000029F)
872 #define NT_STATUS_SERVER_SID_MISMATCH                     NT_STATUS(0xC00002A0)
873 #define NT_STATUS_DS_NO_ATTRIBUTE_OR_VALUE                NT_STATUS(0xC00002A1)
874 #define NT_STATUS_DS_INVALID_ATTRIBUTE_SYNTAX             NT_STATUS(0xC00002A2)
875 #define NT_STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED             NT_STATUS(0xC00002A3)
876 #define NT_STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS            NT_STATUS(0xC00002A4)
877 #define NT_STATUS_DS_BUSY                                 NT_STATUS(0xC00002A5)
878 #define NT_STATUS_DS_UNAVAILABLE                          NT_STATUS(0xC00002A6)
879 #define NT_STATUS_DS_NO_RIDS_ALLOCATED                    NT_STATUS(0xC00002A7)
880 #define NT_STATUS_DS_INCORRECT_ROLE_OWNER                 NT_STATUS(0xC00002A9)
881 #define NT_STATUS_DS_RIDMGR_INIT_ERROR                    NT_STATUS(0xC00002AA)
882 #define NT_STATUS_DS_OBJ_CLASS_VIOLATION                  NT_STATUS(0xC00002AB)
883 #define NT_STATUS_DS_CANT_ON_NON_LEAF                     NT_STATUS(0xC00002AC)
884 #define NT_STATUS_DS_CANT_ON_RDN                          NT_STATUS(0xC00002AD)
885 #define NT_STATUS_DS_CANT_MOD_OBJ_CLASS                   NT_STATUS(0xC00002AE)
886 #define NT_STATUS_DS_CROSS_DOM_MOVE_FAILED                NT_STATUS(0xC00002AF)
887 #define NT_STATUS_DS_GC_NOT_AVAILABLE                     NT_STATUS(0xC00002B0)
888 #define NT_STATUS_DIRECTORY_SERVICE_REQUIRED              NT_STATUS(0xC00002B1)
889 #define NT_STATUS_REPARSE_ATTRIBUTE_CONFLICT              NT_STATUS(0xC00002B2)
890 #define NT_STATUS_CANT_ENABLE_DENY_ONLY                   NT_STATUS(0xC00002B3)
891 #define NT_STATUS_FLOAT_MULTIPLE_FAULTS                   NT_STATUS(0xC00002B4)
892 #define NT_STATUS_FLOAT_MULTIPLE_TRAPS                    NT_STATUS(0xC00002B5)
893 #define NT_STATUS_DEVICE_REMOVED                          NT_STATUS(0xC00002B6)
894 #define NT_STATUS_JOURNAL_DELETE_IN_PROGRESS              NT_STATUS(0xC00002B7)
895 #define NT_STATUS_JOURNAL_NOT_ACTIVE                      NT_STATUS(0xC00002B8)
896 #define NT_STATUS_NOINTERFACE                             NT_STATUS(0xC00002B9)
897 #define NT_STATUS_DS_ADMIN_LIMIT_EXCEEDED                 NT_STATUS(0xC00002C1)
898 #define NT_STATUS_DRIVER_FAILED_SLEEP                     NT_STATUS(0xC00002C2)
899 #define NT_STATUS_MUTUAL_AUTHENTICATION_FAILED            NT_STATUS(0xC00002C3)
900 #define NT_STATUS_CORRUPT_SYSTEM_FILE                     NT_STATUS(0xC00002C4)
901 #define NT_STATUS_DATATYPE_MISALIGNMENT_ERROR             NT_STATUS(0xC00002C5)
902 #define NT_STATUS_WMI_READ_ONLY                           NT_STATUS(0xC00002C6)
903 #define NT_STATUS_WMI_SET_FAILURE                         NT_STATUS(0xC00002C7)
904 #define NT_STATUS_COMMITMENT_MINIMUM                      NT_STATUS(0xC00002C8)
905 #define NT_STATUS_REG_NAT_CONSUMPTION                     NT_STATUS(0xC00002C9)
906 #define NT_STATUS_TRANSPORT_FULL                          NT_STATUS(0xC00002CA)
907 #define NT_STATUS_DS_SAM_INIT_FAILURE                     NT_STATUS(0xC00002CB)
908 #define NT_STATUS_ONLY_IF_CONNECTED                       NT_STATUS(0xC00002CC)
909 #define NT_STATUS_DS_SENSITIVE_GROUP_VIOLATION            NT_STATUS(0xC00002CD)
910 #define NT_STATUS_PNP_RESTART_ENUMERATION                 NT_STATUS(0xC00002CE)
911 #define NT_STATUS_JOURNAL_ENTRY_DELETED                   NT_STATUS(0xC00002CF)
912 #define NT_STATUS_DS_CANT_MOD_PRIMARYGROUPID              NT_STATUS(0xC00002D0)
913 #define NT_STATUS_SYSTEM_IMAGE_BAD_SIGNATURE              NT_STATUS(0xC00002D1)
914 #define NT_STATUS_PNP_REBOOT_REQUIRED                     NT_STATUS(0xC00002D2)
915 #define NT_STATUS_POWER_STATE_INVALID                     NT_STATUS(0xC00002D3)
916 #define NT_STATUS_DS_INVALID_GROUP_TYPE                   NT_STATUS(0xC00002D4)
917 #define NT_STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN   NT_STATUS(0xC00002D5)
918 #define NT_STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN    NT_STATUS(0xC00002D6)
919 #define NT_STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER        NT_STATUS(0xC00002D7)
920 #define NT_STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER    NT_STATUS(0xC00002D8)
921 #define NT_STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER     NT_STATUS(0xC00002D9)
922 #define NT_STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER  NT_STATUS(0xC00002DA)
923 #define NT_STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER NT_STATUS(0xC00002DB)
924 #define NT_STATUS_DS_HAVE_PRIMARY_MEMBERS                 NT_STATUS(0xC00002DC)
925 #define NT_STATUS_WMI_NOT_SUPPORTED                       NT_STATUS(0xC00002DD)
926 #define NT_STATUS_INSUFFICIENT_POWER                      NT_STATUS(0xC00002DE)
927 #define NT_STATUS_SAM_NEED_BOOTKEY_PASSWORD               NT_STATUS(0xC00002DF)
928 #define NT_STATUS_SAM_NEED_BOOTKEY_FLOPPY                 NT_STATUS(0xC00002E0)
929 #define NT_STATUS_DS_CANT_START                           NT_STATUS(0xC00002E1)
930 #define NT_STATUS_DS_INIT_FAILURE                         NT_STATUS(0xC00002E2)
931 #define NT_STATUS_SAM_INIT_FAILURE                        NT_STATUS(0xC00002E3)
932 #define NT_STATUS_DS_GC_REQUIRED                          NT_STATUS(0xC00002E4)
933 #define NT_STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY           NT_STATUS(0xC00002E5)
934 #define NT_STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS           NT_STATUS(0xC00002E6)
935 #define NT_STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED       NT_STATUS(0xC00002E7)
936 #define NT_STATUS_CANNOT_MAKE                             NT_STATUS(0xC00002EA)
937 #define NT_STATUS_SYSTEM_SHUTDOWN                         NT_STATUS(0xC00002EB)
938 #define NT_STATUS_DS_INIT_FAILURE_CONSOLE                 NT_STATUS(0xC00002EC)
939 #define NT_STATUS_DS_SAM_INIT_FAILURE_CONSOLE             NT_STATUS(0xC00002ED)
940 #define NT_STATUS_UNFINISHED_CONTEXT_DELETED              NT_STATUS(0xC00002EE)
941 #define NT_STATUS_NO_TGT_REPLY                            NT_STATUS(0xC00002EF)
942 #define NT_STATUS_NO_IP_ADDRESSES                         NT_STATUS(0xC00002F1)
943 #define NT_STATUS_WRONG_CREDENTIAL_HANDLE                 NT_STATUS(0xC00002F2)
944 #define NT_STATUS_CRYPTO_SYSTEM_INVALID                   NT_STATUS(0xC00002F3)
945 #define NT_STATUS_MAX_REFERRALS_EXCEEDED                  NT_STATUS(0xC00002F4)
946 #define NT_STATUS_MUST_BE_KDC                             NT_STATUS(0xC00002F5)
947 #define NT_STATUS_STRONG_CRYPTO_NOT_SUPPORTED             NT_STATUS(0xC00002F6)
948 #define NT_STATUS_TOO_MANY_PRINCIPALS                     NT_STATUS(0xC00002F7)
949 #define NT_STATUS_NO_PA_DATA                              NT_STATUS(0xC00002F8)
950 #define NT_STATUS_PKINIT_NAME_MISMATCH                    NT_STATUS(0xC00002F9)
951 #define NT_STATUS_SMARTCARD_LOGON_REQUIRED                NT_STATUS(0xC00002FA)
952 #define NT_STATUS_KDC_INVALID_REQUEST                     NT_STATUS(0xC00002FB)
953 #define NT_STATUS_KDC_UNABLE_TO_REFER                     NT_STATUS(0xC00002FC)
954 #define NT_STATUS_KDC_UNKNOWN_ETYPE                       NT_STATUS(0xC00002FD)
955 #define NT_STATUS_SHUTDOWN_IN_PROGRESS                    NT_STATUS(0xC00002FE)
956 #define NT_STATUS_SERVER_SHUTDOWN_IN_PROGRESS             NT_STATUS(0xC00002FF)
957 #define NT_STATUS_NOT_SUPPORTED_ON_SBS                    NT_STATUS(0xC0000300)
958 #define NT_STATUS_WMI_GUID_DISCONNECTED                   NT_STATUS(0xC0000301)
959 #define NT_STATUS_WMI_ALREADY_DISABLED                    NT_STATUS(0xC0000302)
960 #define NT_STATUS_WMI_ALREADY_ENABLED                     NT_STATUS(0xC0000303)
961 #define NT_STATUS_MFT_TOO_FRAGMENTED                      NT_STATUS(0xC0000304)
962 #define NT_STATUS_COPY_PROTECTION_FAILURE                 NT_STATUS(0xC0000305)
963 #define NT_STATUS_CSS_AUTHENTICATION_FAILURE              NT_STATUS(0xC0000306)
964 #define NT_STATUS_CSS_KEY_NOT_PRESENT                     NT_STATUS(0xC0000307)
965 #define NT_STATUS_CSS_KEY_NOT_ESTABLISHED                 NT_STATUS(0xC0000308)
966 #define NT_STATUS_CSS_SCRAMBLED_SECTOR                    NT_STATUS(0xC0000309)
967 #define NT_STATUS_CSS_REGION_MISMATCH                     NT_STATUS(0xC000030A)
968 #define NT_STATUS_CSS_RESETS_EXHAUSTED                    NT_STATUS(0xC000030B)
969 #define NT_STATUS_PKINIT_FAILURE                          NT_STATUS(0xC0000320)
970 #define NT_STATUS_SMARTCARD_SUBSYSTEM_FAILURE             NT_STATUS(0xC0000321)
971 #define NT_STATUS_NO_KERB_KEY                             NT_STATUS(0xC0000322)
972 #define NT_STATUS_HOST_DOWN                               NT_STATUS(0xC0000350)
973 #define NT_STATUS_UNSUPPORTED_PREAUTH                     NT_STATUS(0xC0000351)
974 #define NT_STATUS_EFS_ALG_BLOB_TOO_BIG                    NT_STATUS(0xC0000352)
975 #define NT_STATUS_PORT_NOT_SET                            NT_STATUS(0xC0000353)
976 #define NT_STATUS_DEBUGGER_INACTIVE                       NT_STATUS(0xC0000354)
977 #define NT_STATUS_DS_VERSION_CHECK_FAILURE                NT_STATUS(0xC0000355)
978 #define NT_STATUS_AUDITING_DISABLED                       NT_STATUS(0xC0000356)
979 #define NT_STATUS_PRENT4_MACHINE_ACCOUNT                  NT_STATUS(0xC0000357)
980 #define NT_STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER        NT_STATUS(0xC0000358)
981 #define NT_STATUS_INVALID_IMAGE_WIN_32                    NT_STATUS(0xC0000359)
982 #define NT_STATUS_INVALID_IMAGE_WIN_64                    NT_STATUS(0xC000035A)
983 #define NT_STATUS_BAD_BINDINGS                            NT_STATUS(0xC000035B)
984 #define NT_STATUS_APPHELP_BLOCK                           NT_STATUS(0xC000035D)
985 #define NT_STATUS_NOT_SAFE_MODE_DRIVER                    NT_STATUS(0xC000035F)
986 #define NT_STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT       NT_STATUS(0xC0000361)
987 #define NT_STATUS_ACCESS_DISABLED_BY_POLICY_PATH          NT_STATUS(0xC0000362)
988 #define NT_STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER     NT_STATUS(0xC0000363)
989 #define NT_STATUS_ACCESS_DISABLED_BY_POLICY_OTHER         NT_STATUS(0xC0000364)
990 #define NT_STATUS_FAILED_DRIVER_ENTRY                     NT_STATUS(0xC0000365)
991 #define NT_STATUS_DEVICE_ENUMERATION_ERROR                NT_STATUS(0xC0000366)
992 #define NT_STATUS_MOUNT_POINT_NOT_RESOLVED                NT_STATUS(0xC0000368)
993 #define NT_STATUS_INVALID_DEVICE_OBJECT_PARAMETER         NT_STATUS(0xC0000369)
994 #define NT_STATUS_MCA_OCCURED                             NT_STATUS(0xC000036A)
995 #define NT_STATUS_DRIVER_BLOCKED_CRITICAL                 NT_STATUS(0xC000036B)
996 #define NT_STATUS_DRIVER_BLOCKED                          NT_STATUS(0xC000036C)
997 #define NT_STATUS_DRIVER_DATABASE_ERROR                   NT_STATUS(0xC000036D)
998 #define NT_STATUS_SYSTEM_HIVE_TOO_LARGE                   NT_STATUS(0xC000036E)
999 #define NT_STATUS_INVALID_IMPORT_OF_NON_DLL               NT_STATUS(0xC000036F)
1000 #define NT_STATUS_NO_SECRETS                              NT_STATUS(0xC0000371)
1001 #define NT_STATUS_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY   NT_STATUS(0xC0000372)
1002 #define NT_STATUS_FAILED_STACK_SWITCH                     NT_STATUS(0xC0000373)
1003 #define NT_STATUS_HEAP_CORRUPTION                         NT_STATUS(0xC0000374)
1004 #define NT_STATUS_SMARTCARD_WRONG_PIN                     NT_STATUS(0xC0000380)
1005 #define NT_STATUS_SMARTCARD_CARD_BLOCKED                  NT_STATUS(0xC0000381)
1006 #define NT_STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED        NT_STATUS(0xC0000382)
1007 #define NT_STATUS_SMARTCARD_NO_CARD                       NT_STATUS(0xC0000383)
1008 #define NT_STATUS_SMARTCARD_NO_KEY_CONTAINER              NT_STATUS(0xC0000384)
1009 #define NT_STATUS_SMARTCARD_NO_CERTIFICATE                NT_STATUS(0xC0000385)
1010 #define NT_STATUS_SMARTCARD_NO_KEYSET                     NT_STATUS(0xC0000386)
1011 #define NT_STATUS_SMARTCARD_IO_ERROR                      NT_STATUS(0xC0000387)
1012 #define NT_STATUS_SMARTCARD_CERT_REVOKED                  NT_STATUS(0xC0000389)
1013 #define NT_STATUS_ISSUING_CA_UNTRUSTED                    NT_STATUS(0xC000038A)
1014 #define NT_STATUS_REVOCATION_OFFLINE_C                    NT_STATUS(0xC000038B)
1015 #define NT_STATUS_PKINIT_CLIENT_FAILURE                   NT_STATUS(0xC000038C)
1016 #define NT_STATUS_SMARTCARD_CERT_EXPIRED                  NT_STATUS(0xC000038D)
1017 #define NT_STATUS_DRIVER_FAILED_PRIOR_UNLOAD              NT_STATUS(0xC000038E)
1018 #define NT_STATUS_SMARTCARD_SILENT_CONTEXT                NT_STATUS(0xC000038F)
1019 #define NT_STATUS_PER_USER_TRUST_QUOTA_EXCEEDED           NT_STATUS(0xC0000401)
1020 #define NT_STATUS_ALL_USER_TRUST_QUOTA_EXCEEDED           NT_STATUS(0xC0000402)
1021 #define NT_STATUS_USER_DELETE_TRUST_QUOTA_EXCEEDED        NT_STATUS(0xC0000403)
1022 #define NT_STATUS_DS_NAME_NOT_UNIQUE                      NT_STATUS(0xC0000404)
1023 #define NT_STATUS_DS_DUPLICATE_ID_FOUND                   NT_STATUS(0xC0000405)
1024 #define NT_STATUS_DS_GROUP_CONVERSION_ERROR               NT_STATUS(0xC0000406)
1025 #define NT_STATUS_VOLSNAP_PREPARE_HIBERNATE               NT_STATUS(0xC0000407)
1026 #define NT_STATUS_USER2USER_REQUIRED                      NT_STATUS(0xC0000408)
1027 #define NT_STATUS_STACK_BUFFER_OVERRUN                    NT_STATUS(0xC0000409)
1028 #define NT_STATUS_REVOCATION_OFFLINE_KDC                  NT_STATUS(0xC000040C)
1029 #define NT_STATUS_ISSUING_CA_UNTRUSTED_KDC                NT_STATUS(0xC000040D)
1030 #define NT_STATUS_KDC_CERT_EXPIRED                        NT_STATUS(0xC000040E)
1031 #define NT_STATUS_KDC_CERT_REVOKED                        NT_STATUS(0xC000040F)
1032 #define NT_STATUS_PARAMETER_QUOTA_EXCEEDED                NT_STATUS(0xC0000410)
1033 #define NT_STATUS_HIBERNATION_FAILURE                     NT_STATUS(0xC0000411)
1034 #define NT_STATUS_DELAY_LOAD_FAILED                       NT_STATUS(0xC0000412)
1035 #define NT_STATUS_AUTHENTICATION_FIREWALL_FAILED          NT_STATUS(0xC0000413)
1036 #define NT_STATUS_VDM_DISALLOWED                          NT_STATUS(0xC0000414)
1037 #define NT_STATUS_HUNG_DISPLAY_DRIVER_THREAD              NT_STATUS(0xC0000415)
1038 #define NT_STATUS_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE NT_STATUS(0xC0000416)
1039 #define NT_STATUS_INVALID_CRUNTIME_PARAMETER              NT_STATUS(0xC0000417)
1040 #define NT_STATUS_NTLM_BLOCKED                            NT_STATUS(0xC0000418)
1041 #define NT_STATUS_DS_SRC_SID_EXISTS_IN_FOREST             NT_STATUS(0xC0000419)
1042 #define NT_STATUS_DS_DOMAIN_NAME_EXISTS_IN_FOREST         NT_STATUS(0xC000041A)
1043 #define NT_STATUS_DS_FLAT_NAME_EXISTS_IN_FOREST           NT_STATUS(0xC000041B)
1044 #define NT_STATUS_INVALID_USER_PRINCIPAL_NAME             NT_STATUS(0xC000041C)
1045 #define NT_STATUS_ASSERTION_FAILURE                       NT_STATUS(0xC0000420)
1046 #define NT_STATUS_VERIFIER_STOP                           NT_STATUS(0xC0000421)
1047 #define NT_STATUS_CALLBACK_POP_STACK                      NT_STATUS(0xC0000423)
1048 #define NT_STATUS_INCOMPATIBLE_DRIVER_BLOCKED             NT_STATUS(0xC0000424)
1049 #define NT_STATUS_HIVE_UNLOADED                           NT_STATUS(0xC0000425)
1050 #define NT_STATUS_COMPRESSION_DISABLED                    NT_STATUS(0xC0000426)
1051 #define NT_STATUS_FILE_SYSTEM_LIMITATION                  NT_STATUS(0xC0000427)
1052 #define NT_STATUS_INVALID_IMAGE_HASH                      NT_STATUS(0xC0000428)
1053 #define NT_STATUS_NOT_CAPABLE                             NT_STATUS(0xC0000429)
1054 #define NT_STATUS_REQUEST_OUT_OF_SEQUENCE                 NT_STATUS(0xC000042A)
1055 #define NT_STATUS_IMPLEMENTATION_LIMIT                    NT_STATUS(0xC000042B)
1056 #define NT_STATUS_ELEVATION_REQUIRED                      NT_STATUS(0xC000042C)
1057 #define NT_STATUS_NO_SECURITY_CONTEXT                     NT_STATUS(0xC000042D)
1058 #define NT_STATUS_PKU2U_CERT_FAILURE                      NT_STATUS(0xC000042E)
1059 #define NT_STATUS_BEYOND_VDL                              NT_STATUS(0xC0000432)
1060 #define NT_STATUS_ENCOUNTERED_WRITE_IN_PROGRESS           NT_STATUS(0xC0000433)
1061 #define NT_STATUS_PTE_CHANGED                             NT_STATUS(0xC0000434)
1062 #define NT_STATUS_PURGE_FAILED                            NT_STATUS(0xC0000435)
1063 #define NT_STATUS_CRED_REQUIRES_CONFIRMATION              NT_STATUS(0xC0000440)
1064 #define NT_STATUS_CS_ENCRYPTION_INVALID_SERVER_RESPONSE   NT_STATUS(0xC0000441)
1065 #define NT_STATUS_CS_ENCRYPTION_UNSUPPORTED_SERVER        NT_STATUS(0xC0000442)
1066 #define NT_STATUS_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE   NT_STATUS(0xC0000443)
1067 #define NT_STATUS_CS_ENCRYPTION_NEW_ENCRYPTED_FILE        NT_STATUS(0xC0000444)
1068 #define NT_STATUS_CS_ENCRYPTION_FILE_NOT_CSE              NT_STATUS(0xC0000445)
1069 #define NT_STATUS_INVALID_LABEL                           NT_STATUS(0xC0000446)
1070 #define NT_STATUS_DRIVER_PROCESS_TERMINATED               NT_STATUS(0xC0000450)
1071 #define NT_STATUS_AMBIGUOUS_SYSTEM_DEVICE                 NT_STATUS(0xC0000451)
1072 #define NT_STATUS_SYSTEM_DEVICE_NOT_FOUND                 NT_STATUS(0xC0000452)
1073 #define NT_STATUS_RESTART_BOOT_APPLICATION                NT_STATUS(0xC0000453)
1074 #define NT_STATUS_INSUFFICIENT_NVRAM_RESOURCES            NT_STATUS(0xC0000454)
1075 #define NT_STATUS_NO_RANGES_PROCESSED                     NT_STATUS(0xC0000460)
1076 #define NT_STATUS_DEVICE_FEATURE_NOT_SUPPORTED            NT_STATUS(0xC0000463)
1077 #define NT_STATUS_DEVICE_UNREACHABLE                      NT_STATUS(0xC0000464)
1078 #define NT_STATUS_INVALID_TOKEN                           NT_STATUS(0xC0000465)
1079 #define NT_STATUS_INVALID_TASK_NAME                       NT_STATUS(0xC0000500)
1080 #define NT_STATUS_INVALID_TASK_INDEX                      NT_STATUS(0xC0000501)
1081 #define NT_STATUS_THREAD_ALREADY_IN_TASK                  NT_STATUS(0xC0000502)
1082 #define NT_STATUS_CALLBACK_BYPASS                         NT_STATUS(0xC0000503)
1083 #define NT_STATUS_FAIL_FAST_EXCEPTION                     NT_STATUS(0xC0000602)
1084 #define NT_STATUS_IMAGE_CERT_REVOKED                      NT_STATUS(0xC0000603)
1085 #define NT_STATUS_PORT_CLOSED                             NT_STATUS(0xC0000700)
1086 #define NT_STATUS_MESSAGE_LOST                            NT_STATUS(0xC0000701)
1087 #define NT_STATUS_INVALID_MESSAGE                         NT_STATUS(0xC0000702)
1088 #define NT_STATUS_REQUEST_CANCELED                        NT_STATUS(0xC0000703)
1089 #define NT_STATUS_RECURSIVE_DISPATCH                      NT_STATUS(0xC0000704)
1090 #define NT_STATUS_LPC_RECEIVE_BUFFER_EXPECTED             NT_STATUS(0xC0000705)
1091 #define NT_STATUS_LPC_INVALID_CONNECTION_USAGE            NT_STATUS(0xC0000706)
1092 #define NT_STATUS_LPC_REQUESTS_NOT_ALLOWED                NT_STATUS(0xC0000707)
1093 #define NT_STATUS_RESOURCE_IN_USE                         NT_STATUS(0xC0000708)
1094 #define NT_STATUS_HARDWARE_MEMORY_ERROR                   NT_STATUS(0xC0000709)
1095 #define NT_STATUS_THREADPOOL_HANDLE_EXCEPTION             NT_STATUS(0xC000070A)
1096 #define NT_STATUS_THREADPOOL_SET_EVENT_ON_COMPLETION_FAILED NT_STATUS(0xC000070B)
1097 #define NT_STATUS_THREADPOOL_RELEASE_SEMAPHORE_ON_COMPLETION_FAILED NT_STATUS(0xC000070C)
1098 #define NT_STATUS_THREADPOOL_RELEASE_MUTEX_ON_COMPLETION_FAILED NT_STATUS(0xC000070D)
1099 #define NT_STATUS_THREADPOOL_FREE_LIBRARY_ON_COMPLETION_FAILED NT_STATUS(0xC000070E)
1100 #define NT_STATUS_THREADPOOL_RELEASED_DURING_OPERATION    NT_STATUS(0xC000070F)
1101 #define NT_STATUS_CALLBACK_RETURNED_WHILE_IMPERSONATING   NT_STATUS(0xC0000710)
1102 #define NT_STATUS_APC_RETURNED_WHILE_IMPERSONATING        NT_STATUS(0xC0000711)
1103 #define NT_STATUS_PROCESS_IS_PROTECTED                    NT_STATUS(0xC0000712)
1104 #define NT_STATUS_MCA_EXCEPTION                           NT_STATUS(0xC0000713)
1105 #define NT_STATUS_CERTIFICATE_MAPPING_NOT_UNIQUE          NT_STATUS(0xC0000714)
1106 #define NT_STATUS_SYMLINK_CLASS_DISABLED                  NT_STATUS(0xC0000715)
1107 #define NT_STATUS_INVALID_IDN_NORMALIZATION               NT_STATUS(0xC0000716)
1108 #define NT_STATUS_NO_UNICODE_TRANSLATION                  NT_STATUS(0xC0000717)
1109 #define NT_STATUS_ALREADY_REGISTERED                      NT_STATUS(0xC0000718)
1110 #define NT_STATUS_CONTEXT_MISMATCH                        NT_STATUS(0xC0000719)
1111 #define NT_STATUS_PORT_ALREADY_HAS_COMPLETION_LIST        NT_STATUS(0xC000071A)
1112 #define NT_STATUS_CALLBACK_RETURNED_THREAD_PRIORITY       NT_STATUS(0xC000071B)
1113 #define NT_STATUS_INVALID_THREAD                          NT_STATUS(0xC000071C)
1114 #define NT_STATUS_CALLBACK_RETURNED_TRANSACTION           NT_STATUS(0xC000071D)
1115 #define NT_STATUS_CALLBACK_RETURNED_LDR_LOCK              NT_STATUS(0xC000071E)
1116 #define NT_STATUS_CALLBACK_RETURNED_LANG                  NT_STATUS(0xC000071F)
1117 #define NT_STATUS_CALLBACK_RETURNED_PRI_BACK              NT_STATUS(0xC0000720)
1118 #define NT_STATUS_DISK_REPAIR_DISABLED                    NT_STATUS(0xC0000800)
1119 #define NT_STATUS_DS_DOMAIN_RENAME_IN_PROGRESS            NT_STATUS(0xC0000801)
1120 #define NT_STATUS_DISK_QUOTA_EXCEEDED                     NT_STATUS(0xC0000802)
1121 #define NT_STATUS_CONTENT_BLOCKED                         NT_STATUS(0xC0000804)
1122 #define NT_STATUS_BAD_CLUSTERS                            NT_STATUS(0xC0000805)
1123 #define NT_STATUS_VOLUME_DIRTY                            NT_STATUS(0xC0000806)
1124 #define NT_STATUS_FILE_CHECKED_OUT                        NT_STATUS(0xC0000901)
1125 #define NT_STATUS_CHECKOUT_REQUIRED                       NT_STATUS(0xC0000902)
1126 #define NT_STATUS_BAD_FILE_TYPE                           NT_STATUS(0xC0000903)
1127 #define NT_STATUS_FILE_TOO_LARGE                          NT_STATUS(0xC0000904)
1128 #define NT_STATUS_FORMS_AUTH_REQUIRED                     NT_STATUS(0xC0000905)
1129 #define NT_STATUS_VIRUS_INFECTED                          NT_STATUS(0xC0000906)
1130 #define NT_STATUS_VIRUS_DELETED                           NT_STATUS(0xC0000907)
1131 #define NT_STATUS_BAD_MCFG_TABLE                          NT_STATUS(0xC0000908)
1132 #define NT_STATUS_CANNOT_BREAK_OPLOCK                     NT_STATUS(0xC0000909)
1133 #define NT_STATUS_WOW_ASSERTION                           NT_STATUS(0xC0009898)
1134 #define NT_STATUS_INVALID_SIGNATURE                       NT_STATUS(0xC000A000)
1135 #define NT_STATUS_HMAC_NOT_SUPPORTED                      NT_STATUS(0xC000A001)
1136 #define NT_STATUS_IPSEC_QUEUE_OVERFLOW                    NT_STATUS(0xC000A010)
1137 #define NT_STATUS_ND_QUEUE_OVERFLOW                       NT_STATUS(0xC000A011)
1138 #define NT_STATUS_HOPLIMIT_EXCEEDED                       NT_STATUS(0xC000A012)
1139 #define NT_STATUS_PROTOCOL_NOT_SUPPORTED                  NT_STATUS(0xC000A013)
1140 #define NT_STATUS_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED NT_STATUS(0xC000A080)
1141 #define NT_STATUS_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR NT_STATUS(0xC000A081)
1142 #define NT_STATUS_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR  NT_STATUS(0xC000A082)
1143 #define NT_STATUS_XML_PARSE_ERROR                         NT_STATUS(0xC000A083)
1144 #define NT_STATUS_XMLDSIG_ERROR                           NT_STATUS(0xC000A084)
1145 #define NT_STATUS_WRONG_COMPARTMENT                       NT_STATUS(0xC000A085)
1146 #define NT_STATUS_AUTHIP_FAILURE                          NT_STATUS(0xC000A086)
1147 #define NT_STATUS_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS   NT_STATUS(0xC000A087)
1148 #define NT_STATUS_DS_OID_NOT_FOUND                        NT_STATUS(0xC000A088)
1149 #define NT_STATUS_HASH_NOT_SUPPORTED                      NT_STATUS(0xC000A100)
1150 #define NT_STATUS_HASH_NOT_PRESENT                        NT_STATUS(0xC000A101)
1151 #define NT_STATUS_OFFLOAD_READ_FLT_NOT_SUPPORTED          NT_STATUS(0xC000A2A1)
1152 #define NT_STATUS_OFFLOAD_WRITE_FLT_NOT_SUPPORTED         NT_STATUS(0xC000A2A2)
1153 #define NT_STATUS_OFFLOAD_READ_FILE_NOT_SUPPORTED         NT_STATUS(0xC000A2A3)
1154 #define NT_STATUS_OFFLOAD_WRITE_FILE_NOT_SUPPORTED        NT_STATUS(0xC000A2A4)
1155 #define NT_STATUS_DBG_NO_STATE_CHANGE                     NT_STATUS(0xC0010001)
1156 #define NT_STATUS_DBG_APP_NOT_IDLE                        NT_STATUS(0xC0010002)
1157 #define NT_STATUS_RPC_INVALID_STRING_BINDING              NT_STATUS(0xC0020001)
1158 #define NT_STATUS_RPC_WRONG_KIND_OF_BINDING               NT_STATUS(0xC0020002)
1159 #define NT_STATUS_RPC_INVALID_BINDING                     NT_STATUS(0xC0020003)
1160 #define NT_STATUS_RPC_INVALID_RPC_PROTSEQ                 NT_STATUS(0xC0020005)
1161 #define NT_STATUS_RPC_INVALID_STRING_UUID                 NT_STATUS(0xC0020006)
1162 #define NT_STATUS_RPC_INVALID_ENDPOINT_FORMAT             NT_STATUS(0xC0020007)
1163 #define NT_STATUS_RPC_INVALID_NET_ADDR                    NT_STATUS(0xC0020008)
1164 #define NT_STATUS_RPC_NO_ENDPOINT_FOUND                   NT_STATUS(0xC0020009)
1165 #define NT_STATUS_RPC_INVALID_TIMEOUT                     NT_STATUS(0xC002000A)
1166 #define NT_STATUS_RPC_OBJECT_NOT_FOUND                    NT_STATUS(0xC002000B)
1167 #define NT_STATUS_RPC_ALREADY_REGISTERED                  NT_STATUS(0xC002000C)
1168 #define NT_STATUS_RPC_TYPE_ALREADY_REGISTERED             NT_STATUS(0xC002000D)
1169 #define NT_STATUS_RPC_ALREADY_LISTENING                   NT_STATUS(0xC002000E)
1170 #define NT_STATUS_RPC_NO_PROTSEQS_REGISTERED              NT_STATUS(0xC002000F)
1171 #define NT_STATUS_RPC_NOT_LISTENING                       NT_STATUS(0xC0020010)
1172 #define NT_STATUS_RPC_UNKNOWN_MGR_TYPE                    NT_STATUS(0xC0020011)
1173 #define NT_STATUS_RPC_NO_BINDINGS                         NT_STATUS(0xC0020013)
1174 #define NT_STATUS_RPC_NO_PROTSEQS                         NT_STATUS(0xC0020014)
1175 #define NT_STATUS_RPC_CANT_CREATE_ENDPOINT                NT_STATUS(0xC0020015)
1176 #define NT_STATUS_RPC_OUT_OF_RESOURCES                    NT_STATUS(0xC0020016)
1177 #define NT_STATUS_RPC_SERVER_UNAVAILABLE                  NT_STATUS(0xC0020017)
1178 #define NT_STATUS_RPC_SERVER_TOO_BUSY                     NT_STATUS(0xC0020018)
1179 #define NT_STATUS_RPC_INVALID_NETWORK_OPTIONS             NT_STATUS(0xC0020019)
1180 #define NT_STATUS_RPC_NO_CALL_ACTIVE                      NT_STATUS(0xC002001A)
1181 #define NT_STATUS_RPC_CALL_FAILED_DNE                     NT_STATUS(0xC002001C)
1182 #define NT_STATUS_RPC_UNSUPPORTED_TRANS_SYN               NT_STATUS(0xC002001F)
1183 #define NT_STATUS_RPC_UNSUPPORTED_TYPE                    NT_STATUS(0xC0020021)
1184 #define NT_STATUS_RPC_INVALID_TAG                         NT_STATUS(0xC0020022)
1185 #define NT_STATUS_RPC_INVALID_BOUND                       NT_STATUS(0xC0020023)
1186 #define NT_STATUS_RPC_NO_ENTRY_NAME                       NT_STATUS(0xC0020024)
1187 #define NT_STATUS_RPC_INVALID_NAME_SYNTAX                 NT_STATUS(0xC0020025)
1188 #define NT_STATUS_RPC_UUID_NO_ADDRESS                     NT_STATUS(0xC0020028)
1189 #define NT_STATUS_RPC_DUPLICATE_ENDPOINT                  NT_STATUS(0xC0020029)
1190 #define NT_STATUS_RPC_UNKNOWN_AUTHN_TYPE                  NT_STATUS(0xC002002A)
1191 #define NT_STATUS_RPC_MAX_CALLS_TOO_SMALL                 NT_STATUS(0xC002002B)
1192 #define NT_STATUS_RPC_STRING_TOO_LONG                     NT_STATUS(0xC002002C)
1193 #define NT_STATUS_RPC_PROTSEQ_NOT_FOUND                   NT_STATUS(0xC002002D)
1194 #define NT_STATUS_RPC_BINDING_HAS_NO_AUTH                 NT_STATUS(0xC002002F)
1195 #define NT_STATUS_RPC_UNKNOWN_AUTHN_SERVICE               NT_STATUS(0xC0020030)
1196 #define NT_STATUS_RPC_UNKNOWN_AUTHN_LEVEL                 NT_STATUS(0xC0020031)
1197 #define NT_STATUS_RPC_INVALID_AUTH_IDENTITY               NT_STATUS(0xC0020032)
1198 #define NT_STATUS_RPC_UNKNOWN_AUTHZ_SERVICE               NT_STATUS(0xC0020033)
1199 #define NT_STATUS_EPT_INVALID_ENTRY                       NT_STATUS(0xC0020034)
1200 #define NT_STATUS_EPT_CANT_PERFORM_OP                     NT_STATUS(0xC0020035)
1201 #define NT_STATUS_EPT_NOT_REGISTERED                      NT_STATUS(0xC0020036)
1202 #define NT_STATUS_RPC_NOTHING_TO_EXPORT                   NT_STATUS(0xC0020037)
1203 #define NT_STATUS_RPC_INCOMPLETE_NAME                     NT_STATUS(0xC0020038)
1204 #define NT_STATUS_RPC_INVALID_VERS_OPTION                 NT_STATUS(0xC0020039)
1205 #define NT_STATUS_RPC_NO_MORE_MEMBERS                     NT_STATUS(0xC002003A)
1206 #define NT_STATUS_RPC_NOT_ALL_OBJS_UNEXPORTED             NT_STATUS(0xC002003B)
1207 #define NT_STATUS_RPC_INTERFACE_NOT_FOUND                 NT_STATUS(0xC002003C)
1208 #define NT_STATUS_RPC_ENTRY_ALREADY_EXISTS                NT_STATUS(0xC002003D)
1209 #define NT_STATUS_RPC_ENTRY_NOT_FOUND                     NT_STATUS(0xC002003E)
1210 #define NT_STATUS_RPC_NAME_SERVICE_UNAVAILABLE            NT_STATUS(0xC002003F)
1211 #define NT_STATUS_RPC_INVALID_NAF_ID                      NT_STATUS(0xC0020040)
1212 #define NT_STATUS_RPC_NO_CONTEXT_AVAILABLE                NT_STATUS(0xC0020042)
1213 #define NT_STATUS_RPC_INTERNAL_ERROR                      NT_STATUS(0xC0020043)
1214 #define NT_STATUS_RPC_ZERO_DIVIDE                         NT_STATUS(0xC0020044)
1215 #define NT_STATUS_RPC_ADDRESS_ERROR                       NT_STATUS(0xC0020045)
1216 #define NT_STATUS_RPC_FP_DIV_ZERO                         NT_STATUS(0xC0020046)
1217 #define NT_STATUS_RPC_FP_UNDERFLOW                        NT_STATUS(0xC0020047)
1218 #define NT_STATUS_RPC_FP_OVERFLOW                         NT_STATUS(0xC0020048)
1219 #define NT_STATUS_RPC_CALL_IN_PROGRESS                    NT_STATUS(0xC0020049)
1220 #define NT_STATUS_RPC_NO_MORE_BINDINGS                    NT_STATUS(0xC002004A)
1221 #define NT_STATUS_RPC_GROUP_MEMBER_NOT_FOUND              NT_STATUS(0xC002004B)
1222 #define NT_STATUS_EPT_CANT_CREATE                         NT_STATUS(0xC002004C)
1223 #define NT_STATUS_RPC_INVALID_OBJECT                      NT_STATUS(0xC002004D)
1224 #define NT_STATUS_RPC_NO_INTERFACES                       NT_STATUS(0xC002004F)
1225 #define NT_STATUS_RPC_CALL_CANCELLED                      NT_STATUS(0xC0020050)
1226 #define NT_STATUS_RPC_BINDING_INCOMPLETE                  NT_STATUS(0xC0020051)
1227 #define NT_STATUS_RPC_COMM_FAILURE                        NT_STATUS(0xC0020052)
1228 #define NT_STATUS_RPC_UNSUPPORTED_AUTHN_LEVEL             NT_STATUS(0xC0020053)
1229 #define NT_STATUS_RPC_NO_PRINC_NAME                       NT_STATUS(0xC0020054)
1230 #define NT_STATUS_RPC_NOT_RPC_ERROR                       NT_STATUS(0xC0020055)
1231 #define NT_STATUS_RPC_NOT_CANCELLED                       NT_STATUS(0xC0020058)
1232 #define NT_STATUS_RPC_INVALID_ASYNC_HANDLE                NT_STATUS(0xC0020062)
1233 #define NT_STATUS_RPC_INVALID_ASYNC_CALL                  NT_STATUS(0xC0020063)
1234 #define NT_STATUS_RPC_PROXY_ACCESS_DENIED                 NT_STATUS(0xC0020064)
1235 #define NT_STATUS_RPC_NO_MORE_ENTRIES                     NT_STATUS(0xC0030001)
1236 #define NT_STATUS_RPC_SS_CHAR_TRANS_OPEN_FAIL             NT_STATUS(0xC0030002)
1237 #define NT_STATUS_RPC_SS_CHAR_TRANS_SHORT_FILE            NT_STATUS(0xC0030003)
1238 #define NT_STATUS_RPC_SS_IN_NULL_CONTEXT                  NT_STATUS(0xC0030004)
1239 #define NT_STATUS_RPC_SS_CONTEXT_DAMAGED                  NT_STATUS(0xC0030006)
1240 #define NT_STATUS_RPC_SS_HANDLES_MISMATCH                 NT_STATUS(0xC0030007)
1241 #define NT_STATUS_RPC_SS_CANNOT_GET_CALL_HANDLE           NT_STATUS(0xC0030008)
1242 #define NT_STATUS_RPC_NULL_REF_POINTER                    NT_STATUS(0xC0030009)
1243 #define NT_STATUS_RPC_BYTE_COUNT_TOO_SMALL                NT_STATUS(0xC003000B)
1244 #define NT_STATUS_RPC_INVALID_ES_ACTION                   NT_STATUS(0xC0030059)
1245 #define NT_STATUS_RPC_WRONG_ES_VERSION                    NT_STATUS(0xC003005A)
1246 #define NT_STATUS_RPC_WRONG_STUB_VERSION                  NT_STATUS(0xC003005B)
1247 #define NT_STATUS_PNP_BAD_MPS_TABLE                       NT_STATUS(0xC0040035)
1248 #define NT_STATUS_PNP_TRANSLATION_FAILED                  NT_STATUS(0xC0040036)
1249 #define NT_STATUS_PNP_IRQ_TRANSLATION_FAILED              NT_STATUS(0xC0040037)
1250 #define NT_STATUS_PNP_INVALID_ID                          NT_STATUS(0xC0040038)
1251 #define NT_STATUS_IO_REISSUE_AS_CACHED                    NT_STATUS(0xC0040039)
1252 #define NT_STATUS_CTX_WINSTATION_NAME_INVALID             NT_STATUS(0xC00A0001)
1253 #define NT_STATUS_CTX_INVALID_PD                          NT_STATUS(0xC00A0002)
1254 #define NT_STATUS_CTX_PD_NOT_FOUND                        NT_STATUS(0xC00A0003)
1255 #define NT_STATUS_CTX_CLOSE_PENDING                       NT_STATUS(0xC00A0006)
1256 #define NT_STATUS_CTX_NO_OUTBUF                           NT_STATUS(0xC00A0007)
1257 #define NT_STATUS_CTX_MODEM_INF_NOT_FOUND                 NT_STATUS(0xC00A0008)
1258 #define NT_STATUS_CTX_INVALID_MODEMNAME                   NT_STATUS(0xC00A0009)
1259 #define NT_STATUS_CTX_RESPONSE_ERROR                      NT_STATUS(0xC00A000A)
1260 #define NT_STATUS_CTX_MODEM_RESPONSE_TIMEOUT              NT_STATUS(0xC00A000B)
1261 #define NT_STATUS_CTX_MODEM_RESPONSE_NO_CARRIER           NT_STATUS(0xC00A000C)
1262 #define NT_STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE          NT_STATUS(0xC00A000D)
1263 #define NT_STATUS_CTX_MODEM_RESPONSE_BUSY                 NT_STATUS(0xC00A000E)
1264 #define NT_STATUS_CTX_MODEM_RESPONSE_VOICE                NT_STATUS(0xC00A000F)
1265 #define NT_STATUS_CTX_TD_ERROR                            NT_STATUS(0xC00A0010)
1266 #define NT_STATUS_CTX_LICENSE_CLIENT_INVALID              NT_STATUS(0xC00A0012)
1267 #define NT_STATUS_CTX_LICENSE_NOT_AVAILABLE               NT_STATUS(0xC00A0013)
1268 #define NT_STATUS_CTX_LICENSE_EXPIRED                     NT_STATUS(0xC00A0014)
1269 #define NT_STATUS_CTX_WINSTATION_NOT_FOUND                NT_STATUS(0xC00A0015)
1270 #define NT_STATUS_CTX_WINSTATION_NAME_COLLISION           NT_STATUS(0xC00A0016)
1271 #define NT_STATUS_CTX_WINSTATION_BUSY                     NT_STATUS(0xC00A0017)
1272 #define NT_STATUS_CTX_BAD_VIDEO_MODE                      NT_STATUS(0xC00A0018)
1273 #define NT_STATUS_CTX_GRAPHICS_INVALID                    NT_STATUS(0xC00A0022)
1274 #define NT_STATUS_CTX_NOT_CONSOLE                         NT_STATUS(0xC00A0024)
1275 #define NT_STATUS_CTX_CLIENT_QUERY_TIMEOUT                NT_STATUS(0xC00A0026)
1276 #define NT_STATUS_CTX_CONSOLE_DISCONNECT                  NT_STATUS(0xC00A0027)
1277 #define NT_STATUS_CTX_CONSOLE_CONNECT                     NT_STATUS(0xC00A0028)
1278 #define NT_STATUS_CTX_SHADOW_DENIED                       NT_STATUS(0xC00A002A)
1279 #define NT_STATUS_CTX_WINSTATION_ACCESS_DENIED            NT_STATUS(0xC00A002B)
1280 #define NT_STATUS_CTX_INVALID_WD                          NT_STATUS(0xC00A002E)
1281 #define NT_STATUS_CTX_WD_NOT_FOUND                        NT_STATUS(0xC00A002F)
1282 #define NT_STATUS_CTX_SHADOW_INVALID                      NT_STATUS(0xC00A0030)
1283 #define NT_STATUS_CTX_SHADOW_DISABLED                     NT_STATUS(0xC00A0031)
1284 #define NT_STATUS_RDP_PROTOCOL_ERROR                      NT_STATUS(0xC00A0032)
1285 #define NT_STATUS_CTX_CLIENT_LICENSE_NOT_SET              NT_STATUS(0xC00A0033)
1286 #define NT_STATUS_CTX_CLIENT_LICENSE_IN_USE               NT_STATUS(0xC00A0034)
1287 #define NT_STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE         NT_STATUS(0xC00A0035)
1288 #define NT_STATUS_CTX_SHADOW_NOT_RUNNING                  NT_STATUS(0xC00A0036)
1289 #define NT_STATUS_CTX_LOGON_DISABLED                      NT_STATUS(0xC00A0037)
1290 #define NT_STATUS_CTX_SECURITY_LAYER_ERROR                NT_STATUS(0xC00A0038)
1291 #define NT_STATUS_TS_INCOMPATIBLE_SESSIONS                NT_STATUS(0xC00A0039)
1292 #define NT_STATUS_MUI_FILE_NOT_FOUND                      NT_STATUS(0xC00B0001)
1293 #define NT_STATUS_MUI_INVALID_FILE                        NT_STATUS(0xC00B0002)
1294 #define NT_STATUS_MUI_INVALID_RC_CONFIG                   NT_STATUS(0xC00B0003)
1295 #define NT_STATUS_MUI_INVALID_LOCALE_NAME                 NT_STATUS(0xC00B0004)
1296 #define NT_STATUS_MUI_INVALID_ULTIMATEFALLBACK_NAME       NT_STATUS(0xC00B0005)
1297 #define NT_STATUS_MUI_FILE_NOT_LOADED                     NT_STATUS(0xC00B0006)
1298 #define NT_STATUS_RESOURCE_ENUM_USER_STOP                 NT_STATUS(0xC00B0007)
1299 #define NT_STATUS_CLUSTER_INVALID_NODE                    NT_STATUS(0xC0130001)
1300 #define NT_STATUS_CLUSTER_NODE_EXISTS                     NT_STATUS(0xC0130002)
1301 #define NT_STATUS_CLUSTER_JOIN_IN_PROGRESS                NT_STATUS(0xC0130003)
1302 #define NT_STATUS_CLUSTER_NODE_NOT_FOUND                  NT_STATUS(0xC0130004)
1303 #define NT_STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND            NT_STATUS(0xC0130005)
1304 #define NT_STATUS_CLUSTER_NETWORK_EXISTS                  NT_STATUS(0xC0130006)
1305 #define NT_STATUS_CLUSTER_NETWORK_NOT_FOUND               NT_STATUS(0xC0130007)
1306 #define NT_STATUS_CLUSTER_NETINTERFACE_EXISTS             NT_STATUS(0xC0130008)
1307 #define NT_STATUS_CLUSTER_NETINTERFACE_NOT_FOUND          NT_STATUS(0xC0130009)
1308 #define NT_STATUS_CLUSTER_INVALID_REQUEST                 NT_STATUS(0xC013000A)
1309 #define NT_STATUS_CLUSTER_INVALID_NETWORK_PROVIDER        NT_STATUS(0xC013000B)
1310 #define NT_STATUS_CLUSTER_NODE_DOWN                       NT_STATUS(0xC013000C)
1311 #define NT_STATUS_CLUSTER_NODE_UNREACHABLE                NT_STATUS(0xC013000D)
1312 #define NT_STATUS_CLUSTER_NODE_NOT_MEMBER                 NT_STATUS(0xC013000E)
1313 #define NT_STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS            NT_STATUS(0xC013000F)
1314 #define NT_STATUS_CLUSTER_INVALID_NETWORK                 NT_STATUS(0xC0130010)
1315 #define NT_STATUS_CLUSTER_NO_NET_ADAPTERS                 NT_STATUS(0xC0130011)
1316 #define NT_STATUS_CLUSTER_NODE_UP                         NT_STATUS(0xC0130012)
1317 #define NT_STATUS_CLUSTER_NODE_PAUSED                     NT_STATUS(0xC0130013)
1318 #define NT_STATUS_CLUSTER_NODE_NOT_PAUSED                 NT_STATUS(0xC0130014)
1319 #define NT_STATUS_CLUSTER_NO_SECURITY_CONTEXT             NT_STATUS(0xC0130015)
1320 #define NT_STATUS_CLUSTER_NETWORK_NOT_INTERNAL            NT_STATUS(0xC0130016)
1321 #define NT_STATUS_CLUSTER_POISONED                        NT_STATUS(0xC0130017)
1322 #define NT_STATUS_ACPI_INVALID_OPCODE                     NT_STATUS(0xC0140001)
1323 #define NT_STATUS_ACPI_STACK_OVERFLOW                     NT_STATUS(0xC0140002)
1324 #define NT_STATUS_ACPI_ASSERT_FAILED                      NT_STATUS(0xC0140003)
1325 #define NT_STATUS_ACPI_INVALID_INDEX                      NT_STATUS(0xC0140004)
1326 #define NT_STATUS_ACPI_INVALID_ARGUMENT                   NT_STATUS(0xC0140005)
1327 #define NT_STATUS_ACPI_FATAL                              NT_STATUS(0xC0140006)
1328 #define NT_STATUS_ACPI_INVALID_SUPERNAME                  NT_STATUS(0xC0140007)
1329 #define NT_STATUS_ACPI_INVALID_ARGTYPE                    NT_STATUS(0xC0140008)
1330 #define NT_STATUS_ACPI_INVALID_OBJTYPE                    NT_STATUS(0xC0140009)
1331 #define NT_STATUS_ACPI_INVALID_TARGETTYPE                 NT_STATUS(0xC014000A)
1332 #define NT_STATUS_ACPI_INCORRECT_ARGUMENT_COUNT           NT_STATUS(0xC014000B)
1333 #define NT_STATUS_ACPI_ADDRESS_NOT_MAPPED                 NT_STATUS(0xC014000C)
1334 #define NT_STATUS_ACPI_INVALID_EVENTTYPE                  NT_STATUS(0xC014000D)
1335 #define NT_STATUS_ACPI_HANDLER_COLLISION                  NT_STATUS(0xC014000E)
1336 #define NT_STATUS_ACPI_INVALID_DATA                       NT_STATUS(0xC014000F)
1337 #define NT_STATUS_ACPI_INVALID_REGION                     NT_STATUS(0xC0140010)
1338 #define NT_STATUS_ACPI_INVALID_ACCESS_SIZE                NT_STATUS(0xC0140011)
1339 #define NT_STATUS_ACPI_ACQUIRE_GLOBAL_LOCK                NT_STATUS(0xC0140012)
1340 #define NT_STATUS_ACPI_ALREADY_INITIALIZED                NT_STATUS(0xC0140013)
1341 #define NT_STATUS_ACPI_NOT_INITIALIZED                    NT_STATUS(0xC0140014)
1342 #define NT_STATUS_ACPI_INVALID_MUTEX_LEVEL                NT_STATUS(0xC0140015)
1343 #define NT_STATUS_ACPI_MUTEX_NOT_OWNED                    NT_STATUS(0xC0140016)
1344 #define NT_STATUS_ACPI_MUTEX_NOT_OWNER                    NT_STATUS(0xC0140017)
1345 #define NT_STATUS_ACPI_RS_ACCESS                          NT_STATUS(0xC0140018)
1346 #define NT_STATUS_ACPI_INVALID_TABLE                      NT_STATUS(0xC0140019)
1347 #define NT_STATUS_ACPI_REG_HANDLER_FAILED                 NT_STATUS(0xC0140020)
1348 #define NT_STATUS_ACPI_POWER_REQUEST_FAILED               NT_STATUS(0xC0140021)
1349 #define NT_STATUS_SXS_SECTION_NOT_FOUND                   NT_STATUS(0xC0150001)
1350 #define NT_STATUS_SXS_CANT_GEN_ACTCTX                     NT_STATUS(0xC0150002)
1351 #define NT_STATUS_SXS_INVALID_ACTCTXDATA_FORMAT           NT_STATUS(0xC0150003)
1352 #define NT_STATUS_SXS_ASSEMBLY_NOT_FOUND                  NT_STATUS(0xC0150004)
1353 #define NT_STATUS_SXS_MANIFEST_FORMAT_ERROR               NT_STATUS(0xC0150005)
1354 #define NT_STATUS_SXS_MANIFEST_PARSE_ERROR                NT_STATUS(0xC0150006)
1355 #define NT_STATUS_SXS_ACTIVATION_CONTEXT_DISABLED         NT_STATUS(0xC0150007)
1356 #define NT_STATUS_SXS_KEY_NOT_FOUND                       NT_STATUS(0xC0150008)
1357 #define NT_STATUS_SXS_VERSION_CONFLICT                    NT_STATUS(0xC0150009)
1358 #define NT_STATUS_SXS_WRONG_SECTION_TYPE                  NT_STATUS(0xC015000A)
1359 #define NT_STATUS_SXS_THREAD_QUERIES_DISABLED             NT_STATUS(0xC015000B)
1360 #define NT_STATUS_SXS_ASSEMBLY_MISSING                    NT_STATUS(0xC015000C)
1361 #define NT_STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET         NT_STATUS(0xC015000E)
1362 #define NT_STATUS_SXS_EARLY_DEACTIVATION                  NT_STATUS(0xC015000F)
1363 #define NT_STATUS_SXS_INVALID_DEACTIVATION                NT_STATUS(0xC0150010)
1364 #define NT_STATUS_SXS_MULTIPLE_DEACTIVATION               NT_STATUS(0xC0150011)
1365 #define NT_STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY NT_STATUS(0xC0150012)
1366 #define NT_STATUS_SXS_PROCESS_TERMINATION_REQUESTED       NT_STATUS(0xC0150013)
1367 #define NT_STATUS_SXS_CORRUPT_ACTIVATION_STACK            NT_STATUS(0xC0150014)
1368 #define NT_STATUS_SXS_CORRUPTION                          NT_STATUS(0xC0150015)
1369 #define NT_STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE    NT_STATUS(0xC0150016)
1370 #define NT_STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME     NT_STATUS(0xC0150017)
1371 #define NT_STATUS_SXS_IDENTITY_DUPLICATE_ATTRIBUTE        NT_STATUS(0xC0150018)
1372 #define NT_STATUS_SXS_IDENTITY_PARSE_ERROR                NT_STATUS(0xC0150019)
1373 #define NT_STATUS_SXS_COMPONENT_STORE_CORRUPT             NT_STATUS(0xC015001A)
1374 #define NT_STATUS_SXS_FILE_HASH_MISMATCH                  NT_STATUS(0xC015001B)
1375 #define NT_STATUS_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT NT_STATUS(0xC015001C)
1376 #define NT_STATUS_SXS_IDENTITIES_DIFFERENT                NT_STATUS(0xC015001D)
1377 #define NT_STATUS_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT        NT_STATUS(0xC015001E)
1378 #define NT_STATUS_SXS_FILE_NOT_PART_OF_ASSEMBLY           NT_STATUS(0xC015001F)
1379 #define NT_STATUS_ADVANCED_INSTALLER_FAILED               NT_STATUS(0xC0150020)
1380 #define NT_STATUS_XML_ENCODING_MISMATCH                   NT_STATUS(0xC0150021)
1381 #define NT_STATUS_SXS_MANIFEST_TOO_BIG                    NT_STATUS(0xC0150022)
1382 #define NT_STATUS_SXS_SETTING_NOT_REGISTERED              NT_STATUS(0xC0150023)
1383 #define NT_STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE      NT_STATUS(0xC0150024)
1384 #define NT_STATUS_SMI_PRIMITIVE_INSTALLER_FAILED          NT_STATUS(0xC0150025)
1385 #define NT_STATUS_GENERIC_COMMAND_FAILED                  NT_STATUS(0xC0150026)
1386 #define NT_STATUS_SXS_FILE_HASH_MISSING                   NT_STATUS(0xC0150027)
1387 #define NT_STATUS_TRANSACTIONAL_CONFLICT                  NT_STATUS(0xC0190001)
1388 #define NT_STATUS_INVALID_TRANSACTION                     NT_STATUS(0xC0190002)
1389 #define NT_STATUS_TRANSACTION_NOT_ACTIVE                  NT_STATUS(0xC0190003)
1390 #define NT_STATUS_TM_INITIALIZATION_FAILED                NT_STATUS(0xC0190004)
1391 #define NT_STATUS_RM_NOT_ACTIVE                           NT_STATUS(0xC0190005)
1392 #define NT_STATUS_RM_METADATA_CORRUPT                     NT_STATUS(0xC0190006)
1393 #define NT_STATUS_TRANSACTION_NOT_JOINED                  NT_STATUS(0xC0190007)
1394 #define NT_STATUS_DIRECTORY_NOT_RM                        NT_STATUS(0xC0190008)
1395 #define NT_STATUS_TRANSACTIONS_UNSUPPORTED_REMOTE         NT_STATUS(0xC019000A)
1396 #define NT_STATUS_LOG_RESIZE_INVALID_SIZE                 NT_STATUS(0xC019000B)
1397 #define NT_STATUS_REMOTE_FILE_VERSION_MISMATCH            NT_STATUS(0xC019000C)
1398 #define NT_STATUS_CRM_PROTOCOL_ALREADY_EXISTS             NT_STATUS(0xC019000F)
1399 #define NT_STATUS_TRANSACTION_PROPAGATION_FAILED          NT_STATUS(0xC0190010)
1400 #define NT_STATUS_CRM_PROTOCOL_NOT_FOUND                  NT_STATUS(0xC0190011)
1401 #define NT_STATUS_TRANSACTION_SUPERIOR_EXISTS             NT_STATUS(0xC0190012)
1402 #define NT_STATUS_TRANSACTION_REQUEST_NOT_VALID           NT_STATUS(0xC0190013)
1403 #define NT_STATUS_TRANSACTION_NOT_REQUESTED               NT_STATUS(0xC0190014)
1404 #define NT_STATUS_TRANSACTION_ALREADY_ABORTED             NT_STATUS(0xC0190015)
1405 #define NT_STATUS_TRANSACTION_ALREADY_COMMITTED           NT_STATUS(0xC0190016)
1406 #define NT_STATUS_TRANSACTION_INVALID_MARSHALL_BUFFER     NT_STATUS(0xC0190017)
1407 #define NT_STATUS_CURRENT_TRANSACTION_NOT_VALID           NT_STATUS(0xC0190018)
1408 #define NT_STATUS_LOG_GROWTH_FAILED                       NT_STATUS(0xC0190019)
1409 #define NT_STATUS_OBJECT_NO_LONGER_EXISTS                 NT_STATUS(0xC0190021)
1410 #define NT_STATUS_STREAM_MINIVERSION_NOT_FOUND            NT_STATUS(0xC0190022)
1411 #define NT_STATUS_STREAM_MINIVERSION_NOT_VALID            NT_STATUS(0xC0190023)
1412 #define NT_STATUS_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION NT_STATUS(0xC0190024)
1413 #define NT_STATUS_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT NT_STATUS(0xC0190025)
1414 #define NT_STATUS_CANT_CREATE_MORE_STREAM_MINIVERSIONS    NT_STATUS(0xC0190026)
1415 #define NT_STATUS_HANDLE_NO_LONGER_VALID                  NT_STATUS(0xC0190028)
1416 #define NT_STATUS_LOG_CORRUPTION_DETECTED                 NT_STATUS(0xC0190030)
1417 #define NT_STATUS_RM_DISCONNECTED                         NT_STATUS(0xC0190032)
1418 #define NT_STATUS_ENLISTMENT_NOT_SUPERIOR                 NT_STATUS(0xC0190033)
1419 #define NT_STATUS_FILE_IDENTITY_NOT_PERSISTENT            NT_STATUS(0xC0190036)
1420 #define NT_STATUS_CANT_BREAK_TRANSACTIONAL_DEPENDENCY     NT_STATUS(0xC0190037)
1421 #define NT_STATUS_CANT_CROSS_RM_BOUNDARY                  NT_STATUS(0xC0190038)
1422 #define NT_STATUS_TXF_DIR_NOT_EMPTY                       NT_STATUS(0xC0190039)
1423 #define NT_STATUS_INDOUBT_TRANSACTIONS_EXIST              NT_STATUS(0xC019003A)
1424 #define NT_STATUS_TM_VOLATILE                             NT_STATUS(0xC019003B)
1425 #define NT_STATUS_ROLLBACK_TIMER_EXPIRED                  NT_STATUS(0xC019003C)
1426 #define NT_STATUS_TXF_ATTRIBUTE_CORRUPT                   NT_STATUS(0xC019003D)
1427 #define NT_STATUS_EFS_NOT_ALLOWED_IN_TRANSACTION          NT_STATUS(0xC019003E)
1428 #define NT_STATUS_TRANSACTIONAL_OPEN_NOT_ALLOWED          NT_STATUS(0xC019003F)
1429 #define NT_STATUS_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE   NT_STATUS(0xC0190040)
1430 #define NT_STATUS_TRANSACTION_REQUIRED_PROMOTION          NT_STATUS(0xC0190043)
1431 #define NT_STATUS_CANNOT_EXECUTE_FILE_IN_TRANSACTION      NT_STATUS(0xC0190044)
1432 #define NT_STATUS_TRANSACTIONS_NOT_FROZEN                 NT_STATUS(0xC0190045)
1433 #define NT_STATUS_TRANSACTION_FREEZE_IN_PROGRESS          NT_STATUS(0xC0190046)
1434 #define NT_STATUS_NOT_SNAPSHOT_VOLUME                     NT_STATUS(0xC0190047)
1435 #define NT_STATUS_NO_SAVEPOINT_WITH_OPEN_FILES            NT_STATUS(0xC0190048)
1436 #define NT_STATUS_SPARSE_NOT_ALLOWED_IN_TRANSACTION       NT_STATUS(0xC0190049)
1437 #define NT_STATUS_TM_IDENTITY_MISMATCH                    NT_STATUS(0xC019004A)
1438 #define NT_STATUS_FLOATED_SECTION                         NT_STATUS(0xC019004B)
1439 #define NT_STATUS_CANNOT_ACCEPT_TRANSACTED_WORK           NT_STATUS(0xC019004C)
1440 #define NT_STATUS_CANNOT_ABORT_TRANSACTIONS               NT_STATUS(0xC019004D)
1441 #define NT_STATUS_TRANSACTION_NOT_FOUND                   NT_STATUS(0xC019004E)
1442 #define NT_STATUS_RESOURCEMANAGER_NOT_FOUND               NT_STATUS(0xC019004F)
1443 #define NT_STATUS_ENLISTMENT_NOT_FOUND                    NT_STATUS(0xC0190050)
1444 #define NT_STATUS_TRANSACTIONMANAGER_NOT_FOUND            NT_STATUS(0xC0190051)
1445 #define NT_STATUS_TRANSACTIONMANAGER_NOT_ONLINE           NT_STATUS(0xC0190052)
1446 #define NT_STATUS_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION NT_STATUS(0xC0190053)
1447 #define NT_STATUS_TRANSACTION_NOT_ROOT                    NT_STATUS(0xC0190054)
1448 #define NT_STATUS_TRANSACTION_OBJECT_EXPIRED              NT_STATUS(0xC0190055)
1449 #define NT_STATUS_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION  NT_STATUS(0xC0190056)
1450 #define NT_STATUS_TRANSACTION_RESPONSE_NOT_ENLISTED       NT_STATUS(0xC0190057)
1451 #define NT_STATUS_TRANSACTION_RECORD_TOO_LONG             NT_STATUS(0xC0190058)
1452 #define NT_STATUS_NO_LINK_TRACKING_IN_TRANSACTION         NT_STATUS(0xC0190059)
1453 #define NT_STATUS_OPERATION_NOT_SUPPORTED_IN_TRANSACTION  NT_STATUS(0xC019005A)
1454 #define NT_STATUS_TRANSACTION_INTEGRITY_VIOLATED          NT_STATUS(0xC019005B)
1455 #define NT_STATUS_EXPIRED_HANDLE                          NT_STATUS(0xC0190060)
1456 #define NT_STATUS_TRANSACTION_NOT_ENLISTED                NT_STATUS(0xC0190061)
1457 #define NT_STATUS_LOG_SECTOR_INVALID                      NT_STATUS(0xC01A0001)
1458 #define NT_STATUS_LOG_SECTOR_PARITY_INVALID               NT_STATUS(0xC01A0002)
1459 #define NT_STATUS_LOG_SECTOR_REMAPPED                     NT_STATUS(0xC01A0003)
1460 #define NT_STATUS_LOG_BLOCK_INCOMPLETE                    NT_STATUS(0xC01A0004)
1461 #define NT_STATUS_LOG_INVALID_RANGE                       NT_STATUS(0xC01A0005)
1462 #define NT_STATUS_LOG_BLOCKS_EXHAUSTED                    NT_STATUS(0xC01A0006)
1463 #define NT_STATUS_LOG_READ_CONTEXT_INVALID                NT_STATUS(0xC01A0007)
1464 #define NT_STATUS_LOG_RESTART_INVALID                     NT_STATUS(0xC01A0008)
1465 #define NT_STATUS_LOG_BLOCK_VERSION                       NT_STATUS(0xC01A0009)
1466 #define NT_STATUS_LOG_BLOCK_INVALID                       NT_STATUS(0xC01A000A)
1467 #define NT_STATUS_LOG_READ_MODE_INVALID                   NT_STATUS(0xC01A000B)
1468 #define NT_STATUS_LOG_METADATA_CORRUPT                    NT_STATUS(0xC01A000D)
1469 #define NT_STATUS_LOG_METADATA_INVALID                    NT_STATUS(0xC01A000E)
1470 #define NT_STATUS_LOG_METADATA_INCONSISTENT               NT_STATUS(0xC01A000F)
1471 #define NT_STATUS_LOG_RESERVATION_INVALID                 NT_STATUS(0xC01A0010)
1472 #define NT_STATUS_LOG_CANT_DELETE                         NT_STATUS(0xC01A0011)
1473 #define NT_STATUS_LOG_CONTAINER_LIMIT_EXCEEDED            NT_STATUS(0xC01A0012)
1474 #define NT_STATUS_LOG_START_OF_LOG                        NT_STATUS(0xC01A0013)
1475 #define NT_STATUS_LOG_POLICY_ALREADY_INSTALLED            NT_STATUS(0xC01A0014)
1476 #define NT_STATUS_LOG_POLICY_NOT_INSTALLED                NT_STATUS(0xC01A0015)
1477 #define NT_STATUS_LOG_POLICY_INVALID                      NT_STATUS(0xC01A0016)
1478 #define NT_STATUS_LOG_POLICY_CONFLICT                     NT_STATUS(0xC01A0017)
1479 #define NT_STATUS_LOG_PINNED_ARCHIVE_TAIL                 NT_STATUS(0xC01A0018)
1480 #define NT_STATUS_LOG_RECORD_NONEXISTENT                  NT_STATUS(0xC01A0019)
1481 #define NT_STATUS_LOG_RECORDS_RESERVED_INVALID            NT_STATUS(0xC01A001A)
1482 #define NT_STATUS_LOG_SPACE_RESERVED_INVALID              NT_STATUS(0xC01A001B)
1483 #define NT_STATUS_LOG_TAIL_INVALID                        NT_STATUS(0xC01A001C)
1484 #define NT_STATUS_LOG_FULL                                NT_STATUS(0xC01A001D)
1485 #define NT_STATUS_LOG_MULTIPLEXED                         NT_STATUS(0xC01A001E)
1486 #define NT_STATUS_LOG_DEDICATED                           NT_STATUS(0xC01A001F)
1487 #define NT_STATUS_LOG_ARCHIVE_NOT_IN_PROGRESS             NT_STATUS(0xC01A0020)
1488 #define NT_STATUS_LOG_ARCHIVE_IN_PROGRESS                 NT_STATUS(0xC01A0021)
1489 #define NT_STATUS_LOG_EPHEMERAL                           NT_STATUS(0xC01A0022)
1490 #define NT_STATUS_LOG_NOT_ENOUGH_CONTAINERS               NT_STATUS(0xC01A0023)
1491 #define NT_STATUS_LOG_CLIENT_ALREADY_REGISTERED           NT_STATUS(0xC01A0024)
1492 #define NT_STATUS_LOG_CLIENT_NOT_REGISTERED               NT_STATUS(0xC01A0025)
1493 #define NT_STATUS_LOG_FULL_HANDLER_IN_PROGRESS            NT_STATUS(0xC01A0026)
1494 #define NT_STATUS_LOG_CONTAINER_READ_FAILED               NT_STATUS(0xC01A0027)
1495 #define NT_STATUS_LOG_CONTAINER_WRITE_FAILED              NT_STATUS(0xC01A0028)
1496 #define NT_STATUS_LOG_CONTAINER_OPEN_FAILED               NT_STATUS(0xC01A0029)
1497 #define NT_STATUS_LOG_CONTAINER_STATE_INVALID             NT_STATUS(0xC01A002A)
1498 #define NT_STATUS_LOG_STATE_INVALID                       NT_STATUS(0xC01A002B)
1499 #define NT_STATUS_LOG_PINNED                              NT_STATUS(0xC01A002C)
1500 #define NT_STATUS_LOG_METADATA_FLUSH_FAILED               NT_STATUS(0xC01A002D)
1501 #define NT_STATUS_LOG_INCONSISTENT_SECURITY               NT_STATUS(0xC01A002E)
1502 #define NT_STATUS_LOG_APPENDED_FLUSH_FAILED               NT_STATUS(0xC01A002F)
1503 #define NT_STATUS_LOG_PINNED_RESERVATION                  NT_STATUS(0xC01A0030)
1504 #define NT_STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD        NT_STATUS(0xC01B00EA)
1505 #define NT_STATUS_FLT_NO_HANDLER_DEFINED                  NT_STATUS(0xC01C0001)
1506 #define NT_STATUS_FLT_CONTEXT_ALREADY_DEFINED             NT_STATUS(0xC01C0002)
1507 #define NT_STATUS_FLT_INVALID_ASYNCHRONOUS_REQUEST        NT_STATUS(0xC01C0003)
1508 #define NT_STATUS_FLT_DISALLOW_FAST_IO                    NT_STATUS(0xC01C0004)
1509 #define NT_STATUS_FLT_INVALID_NAME_REQUEST                NT_STATUS(0xC01C0005)
1510 #define NT_STATUS_FLT_NOT_SAFE_TO_POST_OPERATION          NT_STATUS(0xC01C0006)
1511 #define NT_STATUS_FLT_NOT_INITIALIZED                     NT_STATUS(0xC01C0007)
1512 #define NT_STATUS_FLT_FILTER_NOT_READY                    NT_STATUS(0xC01C0008)
1513 #define NT_STATUS_FLT_POST_OPERATION_CLEANUP              NT_STATUS(0xC01C0009)
1514 #define NT_STATUS_FLT_INTERNAL_ERROR                      NT_STATUS(0xC01C000A)
1515 #define NT_STATUS_FLT_DELETING_OBJECT                     NT_STATUS(0xC01C000B)
1516 #define NT_STATUS_FLT_MUST_BE_NONPAGED_POOL               NT_STATUS(0xC01C000C)
1517 #define NT_STATUS_FLT_DUPLICATE_ENTRY                     NT_STATUS(0xC01C000D)
1518 #define NT_STATUS_FLT_CBDQ_DISABLED                       NT_STATUS(0xC01C000E)
1519 #define NT_STATUS_FLT_DO_NOT_ATTACH                       NT_STATUS(0xC01C000F)
1520 #define NT_STATUS_FLT_DO_NOT_DETACH                       NT_STATUS(0xC01C0010)
1521 #define NT_STATUS_FLT_INSTANCE_ALTITUDE_COLLISION         NT_STATUS(0xC01C0011)
1522 #define NT_STATUS_FLT_INSTANCE_NAME_COLLISION             NT_STATUS(0xC01C0012)
1523 #define NT_STATUS_FLT_FILTER_NOT_FOUND                    NT_STATUS(0xC01C0013)
1524 #define NT_STATUS_FLT_VOLUME_NOT_FOUND                    NT_STATUS(0xC01C0014)
1525 #define NT_STATUS_FLT_INSTANCE_NOT_FOUND                  NT_STATUS(0xC01C0015)
1526 #define NT_STATUS_FLT_CONTEXT_ALLOCATION_NOT_FOUND        NT_STATUS(0xC01C0016)
1527 #define NT_STATUS_FLT_INVALID_CONTEXT_REGISTRATION        NT_STATUS(0xC01C0017)
1528 #define NT_STATUS_FLT_NAME_CACHE_MISS                     NT_STATUS(0xC01C0018)
1529 #define NT_STATUS_FLT_NO_DEVICE_OBJECT                    NT_STATUS(0xC01C0019)
1530 #define NT_STATUS_FLT_VOLUME_ALREADY_MOUNTED              NT_STATUS(0xC01C001A)
1531 #define NT_STATUS_FLT_ALREADY_ENLISTED                    NT_STATUS(0xC01C001B)
1532 #define NT_STATUS_FLT_CONTEXT_ALREADY_LINKED              NT_STATUS(0xC01C001C)
1533 #define NT_STATUS_FLT_NO_WAITER_FOR_REPLY                 NT_STATUS(0xC01C0020)
1534 #define NT_STATUS_MONITOR_NO_DESCRIPTOR                   NT_STATUS(0xC01D0001)
1535 #define NT_STATUS_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT       NT_STATUS(0xC01D0002)
1536 #define NT_STATUS_MONITOR_INVALID_DESCRIPTOR_CHECKSUM     NT_STATUS(0xC01D0003)
1537 #define NT_STATUS_MONITOR_INVALID_STANDARD_TIMING_BLOCK   NT_STATUS(0xC01D0004)
1538 #define NT_STATUS_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED NT_STATUS(0xC01D0005)
1539 #define NT_STATUS_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK NT_STATUS(0xC01D0006)
1540 #define NT_STATUS_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK NT_STATUS(0xC01D0007)
1541 #define NT_STATUS_MONITOR_NO_MORE_DESCRIPTOR_DATA         NT_STATUS(0xC01D0008)
1542 #define NT_STATUS_MONITOR_INVALID_DETAILED_TIMING_BLOCK   NT_STATUS(0xC01D0009)
1543 #define NT_STATUS_MONITOR_INVALID_MANUFACTURE_DATE        NT_STATUS(0xC01D000A)
1544 #define NT_STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER       NT_STATUS(0xC01E0000)
1545 #define NT_STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER        NT_STATUS(0xC01E0001)
1546 #define NT_STATUS_GRAPHICS_INVALID_DISPLAY_ADAPTER        NT_STATUS(0xC01E0002)
1547 #define NT_STATUS_GRAPHICS_ADAPTER_WAS_RESET              NT_STATUS(0xC01E0003)
1548 #define NT_STATUS_GRAPHICS_INVALID_DRIVER_MODEL           NT_STATUS(0xC01E0004)
1549 #define NT_STATUS_GRAPHICS_PRESENT_MODE_CHANGED           NT_STATUS(0xC01E0005)
1550 #define NT_STATUS_GRAPHICS_PRESENT_OCCLUDED               NT_STATUS(0xC01E0006)
1551 #define NT_STATUS_GRAPHICS_PRESENT_DENIED                 NT_STATUS(0xC01E0007)
1552 #define NT_STATUS_GRAPHICS_CANNOTCOLORCONVERT             NT_STATUS(0xC01E0008)
1553 #define NT_STATUS_GRAPHICS_PRESENT_REDIRECTION_DISABLED   NT_STATUS(0xC01E000B)
1554 #define NT_STATUS_GRAPHICS_PRESENT_UNOCCLUDED             NT_STATUS(0xC01E000C)
1555 #define NT_STATUS_GRAPHICS_NO_VIDEO_MEMORY                NT_STATUS(0xC01E0100)
1556 #define NT_STATUS_GRAPHICS_CANT_LOCK_MEMORY               NT_STATUS(0xC01E0101)
1557 #define NT_STATUS_GRAPHICS_ALLOCATION_BUSY                NT_STATUS(0xC01E0102)
1558 #define NT_STATUS_GRAPHICS_TOO_MANY_REFERENCES            NT_STATUS(0xC01E0103)
1559 #define NT_STATUS_GRAPHICS_TRY_AGAIN_LATER                NT_STATUS(0xC01E0104)
1560 #define NT_STATUS_GRAPHICS_TRY_AGAIN_NOW                  NT_STATUS(0xC01E0105)
1561 #define NT_STATUS_GRAPHICS_ALLOCATION_INVALID             NT_STATUS(0xC01E0106)
1562 #define NT_STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE NT_STATUS(0xC01E0107)
1563 #define NT_STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED NT_STATUS(0xC01E0108)
1564 #define NT_STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION   NT_STATUS(0xC01E0109)
1565 #define NT_STATUS_GRAPHICS_INVALID_ALLOCATION_USAGE       NT_STATUS(0xC01E0110)
1566 #define NT_STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION  NT_STATUS(0xC01E0111)
1567 #define NT_STATUS_GRAPHICS_ALLOCATION_CLOSED              NT_STATUS(0xC01E0112)
1568 #define NT_STATUS_GRAPHICS_INVALID_ALLOCATION_INSTANCE    NT_STATUS(0xC01E0113)
1569 #define NT_STATUS_GRAPHICS_INVALID_ALLOCATION_HANDLE      NT_STATUS(0xC01E0114)
1570 #define NT_STATUS_GRAPHICS_WRONG_ALLOCATION_DEVICE        NT_STATUS(0xC01E0115)
1571 #define NT_STATUS_GRAPHICS_ALLOCATION_CONTENT_LOST        NT_STATUS(0xC01E0116)
1572 #define NT_STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE        NT_STATUS(0xC01E0200)
1573 #define NT_STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY         NT_STATUS(0xC01E0300)
1574 #define NT_STATUS_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED   NT_STATUS(0xC01E0301)
1575 #define NT_STATUS_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED NT_STATUS(0xC01E0302)
1576 #define NT_STATUS_GRAPHICS_INVALID_VIDPN                  NT_STATUS(0xC01E0303)
1577 #define NT_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE   NT_STATUS(0xC01E0304)
1578 #define NT_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET   NT_STATUS(0xC01E0305)
1579 #define NT_STATUS_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED   NT_STATUS(0xC01E0306)
1580 #define NT_STATUS_GRAPHICS_INVALID_VIDPN_SOURCEMODESET    NT_STATUS(0xC01E0308)
1581 #define NT_STATUS_GRAPHICS_INVALID_VIDPN_TARGETMODESET    NT_STATUS(0xC01E0309)
1582 #define NT_STATUS_GRAPHICS_INVALID_FREQUENCY              NT_STATUS(0xC01E030A)
1583 #define NT_STATUS_GRAPHICS_INVALID_ACTIVE_REGION          NT_STATUS(0xC01E030B)
1584 #define NT_STATUS_GRAPHICS_INVALID_TOTAL_REGION           NT_STATUS(0xC01E030C)
1585 #define NT_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE NT_STATUS(0xC01E0310)
1586 #define NT_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE NT_STATUS(0xC01E0311)
1587 #define NT_STATUS_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET NT_STATUS(0xC01E0312)
1588 #define NT_STATUS_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY       NT_STATUS(0xC01E0313)
1589 #define NT_STATUS_GRAPHICS_MODE_ALREADY_IN_MODESET        NT_STATUS(0xC01E0314)
1590 #define NT_STATUS_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET  NT_STATUS(0xC01E0315)
1591 #define NT_STATUS_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET  NT_STATUS(0xC01E0316)
1592 #define NT_STATUS_GRAPHICS_SOURCE_ALREADY_IN_SET          NT_STATUS(0xC01E0317)
1593 #define NT_STATUS_GRAPHICS_TARGET_ALREADY_IN_SET          NT_STATUS(0xC01E0318)
1594 #define NT_STATUS_GRAPHICS_INVALID_VIDPN_PRESENT_PATH     NT_STATUS(0xC01E0319)
1595 #define NT_STATUS_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY  NT_STATUS(0xC01E031A)
1596 #define NT_STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET NT_STATUS(0xC01E031B)
1597 #define NT_STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE NT_STATUS(0xC01E031C)
1598 #define NT_STATUS_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET      NT_STATUS(0xC01E031D)
1599 #define NT_STATUS_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET  NT_STATUS(0xC01E031F)
1600 #define NT_STATUS_GRAPHICS_STALE_MODESET                  NT_STATUS(0xC01E0320)
1601 #define NT_STATUS_GRAPHICS_INVALID_MONITOR_SOURCEMODESET  NT_STATUS(0xC01E0321)
1602 #define NT_STATUS_GRAPHICS_INVALID_MONITOR_SOURCE_MODE    NT_STATUS(0xC01E0322)
1603 #define NT_STATUS_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN NT_STATUS(0xC01E0323)
1604 #define NT_STATUS_GRAPHICS_MODE_ID_MUST_BE_UNIQUE         NT_STATUS(0xC01E0324)
1605 #define NT_STATUS_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION NT_STATUS(0xC01E0325)
1606 #define NT_STATUS_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES NT_STATUS(0xC01E0326)
1607 #define NT_STATUS_GRAPHICS_PATH_NOT_IN_TOPOLOGY           NT_STATUS(0xC01E0327)
1608 #define NT_STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE NT_STATUS(0xC01E0328)
1609 #define NT_STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET NT_STATUS(0xC01E0329)
1610 #define NT_STATUS_GRAPHICS_INVALID_MONITORDESCRIPTORSET   NT_STATUS(0xC01E032A)
1611 #define NT_STATUS_GRAPHICS_INVALID_MONITORDESCRIPTOR      NT_STATUS(0xC01E032B)
1612 #define NT_STATUS_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET   NT_STATUS(0xC01E032C)
1613 #define NT_STATUS_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET NT_STATUS(0xC01E032D)
1614 #define NT_STATUS_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE NT_STATUS(0xC01E032E)
1615 #define NT_STATUS_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE NT_STATUS(0xC01E032F)
1616 #define NT_STATUS_GRAPHICS_RESOURCES_NOT_RELATED          NT_STATUS(0xC01E0330)
1617 #define NT_STATUS_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE       NT_STATUS(0xC01E0331)
1618 #define NT_STATUS_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE       NT_STATUS(0xC01E0332)
1619 #define NT_STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET      NT_STATUS(0xC01E0333)
1620 #define NT_STATUS_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER NT_STATUS(0xC01E0334)
1621 #define NT_STATUS_GRAPHICS_NO_VIDPNMGR                    NT_STATUS(0xC01E0335)
1622 #define NT_STATUS_GRAPHICS_NO_ACTIVE_VIDPN                NT_STATUS(0xC01E0336)
1623 #define NT_STATUS_GRAPHICS_STALE_VIDPN_TOPOLOGY           NT_STATUS(0xC01E0337)
1624 #define NT_STATUS_GRAPHICS_MONITOR_NOT_CONNECTED          NT_STATUS(0xC01E0338)
1625 #define NT_STATUS_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY         NT_STATUS(0xC01E0339)
1626 #define NT_STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE    NT_STATUS(0xC01E033A)
1627 #define NT_STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE     NT_STATUS(0xC01E033B)
1628 #define NT_STATUS_GRAPHICS_INVALID_STRIDE                 NT_STATUS(0xC01E033C)
1629 #define NT_STATUS_GRAPHICS_INVALID_PIXELFORMAT            NT_STATUS(0xC01E033D)
1630 #define NT_STATUS_GRAPHICS_INVALID_COLORBASIS             NT_STATUS(0xC01E033E)
1631 #define NT_STATUS_GRAPHICS_INVALID_PIXELVALUEACCESSMODE   NT_STATUS(0xC01E033F)
1632 #define NT_STATUS_GRAPHICS_TARGET_NOT_IN_TOPOLOGY         NT_STATUS(0xC01E0340)
1633 #define NT_STATUS_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT NT_STATUS(0xC01E0341)
1634 #define NT_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE            NT_STATUS(0xC01E0342)
1635 #define NT_STATUS_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN       NT_STATUS(0xC01E0343)
1636 #define NT_STATUS_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL NT_STATUS(0xC01E0344)
1637 #define NT_STATUS_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION NT_STATUS(0xC01E0345)
1638 #define NT_STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED NT_STATUS(0xC01E0346)
1639 #define NT_STATUS_GRAPHICS_INVALID_GAMMA_RAMP             NT_STATUS(0xC01E0347)
1640 #define NT_STATUS_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED       NT_STATUS(0xC01E0348)
1641 #define NT_STATUS_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED    NT_STATUS(0xC01E0349)
1642 #define NT_STATUS_GRAPHICS_MODE_NOT_IN_MODESET            NT_STATUS(0xC01E034A)
1643 #define NT_STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON NT_STATUS(0xC01E034D)
1644 #define NT_STATUS_GRAPHICS_INVALID_PATH_CONTENT_TYPE      NT_STATUS(0xC01E034E)
1645 #define NT_STATUS_GRAPHICS_INVALID_COPYPROTECTION_TYPE    NT_STATUS(0xC01E034F)
1646 #define NT_STATUS_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS NT_STATUS(0xC01E0350)
1647 #define NT_STATUS_GRAPHICS_INVALID_SCANLINE_ORDERING      NT_STATUS(0xC01E0352)
1648 #define NT_STATUS_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED   NT_STATUS(0xC01E0353)
1649 #define NT_STATUS_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS NT_STATUS(0xC01E0354)
1650 #define NT_STATUS_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT    NT_STATUS(0xC01E0355)
1651 #define NT_STATUS_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM NT_STATUS(0xC01E0356)
1652 #define NT_STATUS_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN NT_STATUS(0xC01E0357)
1653 #define NT_STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT NT_STATUS(0xC01E0358)
1654 #define NT_STATUS_GRAPHICS_MAX_NUM_PATHS_REACHED          NT_STATUS(0xC01E0359)
1655 #define NT_STATUS_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION NT_STATUS(0xC01E035A)
1656 #define NT_STATUS_GRAPHICS_INVALID_CLIENT_TYPE            NT_STATUS(0xC01E035B)
1657 #define NT_STATUS_GRAPHICS_CLIENTVIDPN_NOT_SET            NT_STATUS(0xC01E035C)
1658 #define NT_STATUS_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED NT_STATUS(0xC01E0400)
1659 #define NT_STATUS_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED NT_STATUS(0xC01E0401)
1660 #define NT_STATUS_GRAPHICS_NOT_A_LINKED_ADAPTER           NT_STATUS(0xC01E0430)
1661 #define NT_STATUS_GRAPHICS_LEADLINK_NOT_ENUMERATED        NT_STATUS(0xC01E0431)
1662 #define NT_STATUS_GRAPHICS_CHAINLINKS_NOT_ENUMERATED      NT_STATUS(0xC01E0432)
1663 #define NT_STATUS_GRAPHICS_ADAPTER_CHAIN_NOT_READY        NT_STATUS(0xC01E0433)
1664 #define NT_STATUS_GRAPHICS_CHAINLINKS_NOT_STARTED         NT_STATUS(0xC01E0434)
1665 #define NT_STATUS_GRAPHICS_CHAINLINKS_NOT_POWERED_ON      NT_STATUS(0xC01E0435)
1666 #define NT_STATUS_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE NT_STATUS(0xC01E0436)
1667 #define NT_STATUS_GRAPHICS_NOT_POST_DEVICE_DRIVER         NT_STATUS(0xC01E0438)
1668 #define NT_STATUS_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED    NT_STATUS(0xC01E043B)
1669 #define NT_STATUS_GRAPHICS_OPM_NOT_SUPPORTED              NT_STATUS(0xC01E0500)
1670 #define NT_STATUS_GRAPHICS_COPP_NOT_SUPPORTED             NT_STATUS(0xC01E0501)
1671 #define NT_STATUS_GRAPHICS_UAB_NOT_SUPPORTED              NT_STATUS(0xC01E0502)
1672 #define NT_STATUS_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS NT_STATUS(0xC01E0503)
1673 #define NT_STATUS_GRAPHICS_OPM_PARAMETER_ARRAY_TOO_SMALL  NT_STATUS(0xC01E0504)
1674 #define NT_STATUS_GRAPHICS_OPM_NO_PROTECTED_OUTPUTS_EXIST NT_STATUS(0xC01E0505)
1675 #define NT_STATUS_GRAPHICS_PVP_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME NT_STATUS(0xC01E0506)
1676 #define NT_STATUS_GRAPHICS_PVP_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP NT_STATUS(0xC01E0507)
1677 #define NT_STATUS_GRAPHICS_PVP_MIRRORING_DEVICES_NOT_SUPPORTED NT_STATUS(0xC01E0508)
1678 #define NT_STATUS_GRAPHICS_OPM_INVALID_POINTER            NT_STATUS(0xC01E050A)
1679 #define NT_STATUS_GRAPHICS_OPM_INTERNAL_ERROR             NT_STATUS(0xC01E050B)
1680 #define NT_STATUS_GRAPHICS_OPM_INVALID_HANDLE             NT_STATUS(0xC01E050C)
1681 #define NT_STATUS_GRAPHICS_PVP_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE NT_STATUS(0xC01E050D)
1682 #define NT_STATUS_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH NT_STATUS(0xC01E050E)
1683 #define NT_STATUS_GRAPHICS_OPM_SPANNING_MODE_ENABLED      NT_STATUS(0xC01E050F)
1684 #define NT_STATUS_GRAPHICS_OPM_THEATER_MODE_ENABLED       NT_STATUS(0xC01E0510)
1685 #define NT_STATUS_GRAPHICS_PVP_HFS_FAILED                 NT_STATUS(0xC01E0511)
1686 #define NT_STATUS_GRAPHICS_OPM_INVALID_SRM                NT_STATUS(0xC01E0512)
1687 #define NT_STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP NT_STATUS(0xC01E0513)
1688 #define NT_STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP NT_STATUS(0xC01E0514)
1689 #define NT_STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA NT_STATUS(0xC01E0515)
1690 #define NT_STATUS_GRAPHICS_OPM_HDCP_SRM_NEVER_SET         NT_STATUS(0xC01E0516)
1691 #define NT_STATUS_GRAPHICS_OPM_RESOLUTION_TOO_HIGH        NT_STATUS(0xC01E0517)
1692 #define NT_STATUS_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE NT_STATUS(0xC01E0518)
1693 #define NT_STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_NO_LONGER_EXISTS NT_STATUS(0xC01E051A)
1694 #define NT_STATUS_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS NT_STATUS(0xC01E051B)
1695 #define NT_STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS NT_STATUS(0xC01E051C)
1696 #define NT_STATUS_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST NT_STATUS(0xC01E051D)
1697 #define NT_STATUS_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR      NT_STATUS(0xC01E051E)
1698 #define NT_STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS NT_STATUS(0xC01E051F)
1699 #define NT_STATUS_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED    NT_STATUS(0xC01E0520)
1700 #define NT_STATUS_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST NT_STATUS(0xC01E0521)
1701 #define NT_STATUS_GRAPHICS_I2C_NOT_SUPPORTED              NT_STATUS(0xC01E0580)
1702 #define NT_STATUS_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST      NT_STATUS(0xC01E0581)
1703 #define NT_STATUS_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA    NT_STATUS(0xC01E0582)
1704 #define NT_STATUS_GRAPHICS_I2C_ERROR_RECEIVING_DATA       NT_STATUS(0xC01E0583)
1705 #define NT_STATUS_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED        NT_STATUS(0xC01E0584)
1706 #define NT_STATUS_GRAPHICS_DDCCI_INVALID_DATA             NT_STATUS(0xC01E0585)
1707 #define NT_STATUS_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE NT_STATUS(0xC01E0586)
1708 #define NT_STATUS_GRAPHICS_DDCCI_INVALID_CAPABILITIES_STRING NT_STATUS(0xC01E0587)
1709 #define NT_STATUS_GRAPHICS_MCA_INTERNAL_ERROR             NT_STATUS(0xC01E0588)
1710 #define NT_STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND  NT_STATUS(0xC01E0589)
1711 #define NT_STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH   NT_STATUS(0xC01E058A)
1712 #define NT_STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM NT_STATUS(0xC01E058B)
1713 #define NT_STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE NT_STATUS(0xC01E058C)
1714 #define NT_STATUS_GRAPHICS_MONITOR_NO_LONGER_EXISTS       NT_STATUS(0xC01E058D)
1715 #define NT_STATUS_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED NT_STATUS(0xC01E05E0)
1716 #define NT_STATUS_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME NT_STATUS(0xC01E05E1)
1717 #define NT_STATUS_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP NT_STATUS(0xC01E05E2)
1718 #define NT_STATUS_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED NT_STATUS(0xC01E05E3)
1719 #define NT_STATUS_GRAPHICS_INVALID_POINTER                NT_STATUS(0xC01E05E4)
1720 #define NT_STATUS_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE NT_STATUS(0xC01E05E5)
1721 #define NT_STATUS_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL      NT_STATUS(0xC01E05E6)
1722 #define NT_STATUS_GRAPHICS_INTERNAL_ERROR                 NT_STATUS(0xC01E05E7)
1723 #define NT_STATUS_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS NT_STATUS(0xC01E05E8)
1724 #define NT_STATUS_FVE_LOCKED_VOLUME                       NT_STATUS(0xC0210000)
1725 #define NT_STATUS_FVE_NOT_ENCRYPTED                       NT_STATUS(0xC0210001)
1726 #define NT_STATUS_FVE_BAD_INFORMATION                     NT_STATUS(0xC0210002)
1727 #define NT_STATUS_FVE_TOO_SMALL                           NT_STATUS(0xC0210003)
1728 #define NT_STATUS_FVE_FAILED_WRONG_FS                     NT_STATUS(0xC0210004)
1729 #define NT_STATUS_FVE_FAILED_BAD_FS                       NT_STATUS(0xC0210005)
1730 #define NT_STATUS_FVE_FS_NOT_EXTENDED                     NT_STATUS(0xC0210006)
1731 #define NT_STATUS_FVE_FS_MOUNTED                          NT_STATUS(0xC0210007)
1732 #define NT_STATUS_FVE_NO_LICENSE                          NT_STATUS(0xC0210008)
1733 #define NT_STATUS_FVE_ACTION_NOT_ALLOWED                  NT_STATUS(0xC0210009)
1734 #define NT_STATUS_FVE_BAD_DATA                            NT_STATUS(0xC021000A)
1735 #define NT_STATUS_FVE_VOLUME_NOT_BOUND                    NT_STATUS(0xC021000B)
1736 #define NT_STATUS_FVE_NOT_DATA_VOLUME                     NT_STATUS(0xC021000C)
1737 #define NT_STATUS_FVE_CONV_READ_ERROR                     NT_STATUS(0xC021000D)
1738 #define NT_STATUS_FVE_CONV_WRITE_ERROR                    NT_STATUS(0xC021000E)
1739 #define NT_STATUS_FVE_OVERLAPPED_UPDATE                   NT_STATUS(0xC021000F)
1740 #define NT_STATUS_FVE_FAILED_SECTOR_SIZE                  NT_STATUS(0xC0210010)
1741 #define NT_STATUS_FVE_FAILED_AUTHENTICATION               NT_STATUS(0xC0210011)
1742 #define NT_STATUS_FVE_NOT_OS_VOLUME                       NT_STATUS(0xC0210012)
1743 #define NT_STATUS_FVE_KEYFILE_NOT_FOUND                   NT_STATUS(0xC0210013)
1744 #define NT_STATUS_FVE_KEYFILE_INVALID                     NT_STATUS(0xC0210014)
1745 #define NT_STATUS_FVE_KEYFILE_NO_VMK                      NT_STATUS(0xC0210015)
1746 #define NT_STATUS_FVE_TPM_DISABLED                        NT_STATUS(0xC0210016)
1747 #define NT_STATUS_FVE_TPM_SRK_AUTH_NOT_ZERO               NT_STATUS(0xC0210017)
1748 #define NT_STATUS_FVE_TPM_INVALID_PCR                     NT_STATUS(0xC0210018)
1749 #define NT_STATUS_FVE_TPM_NO_VMK                          NT_STATUS(0xC0210019)
1750 #define NT_STATUS_FVE_PIN_INVALID                         NT_STATUS(0xC021001A)
1751 #define NT_STATUS_FVE_AUTH_INVALID_APPLICATION            NT_STATUS(0xC021001B)
1752 #define NT_STATUS_FVE_AUTH_INVALID_CONFIG                 NT_STATUS(0xC021001C)
1753 #define NT_STATUS_FVE_DEBUGGER_ENABLED                    NT_STATUS(0xC021001D)
1754 #define NT_STATUS_FVE_DRY_RUN_FAILED                      NT_STATUS(0xC021001E)
1755 #define NT_STATUS_FVE_BAD_METADATA_POINTER                NT_STATUS(0xC021001F)
1756 #define NT_STATUS_FVE_OLD_METADATA_COPY                   NT_STATUS(0xC0210020)
1757 #define NT_STATUS_FVE_REBOOT_REQUIRED                     NT_STATUS(0xC0210021)
1758 #define NT_STATUS_FVE_RAW_ACCESS                          NT_STATUS(0xC0210022)
1759 #define NT_STATUS_FVE_RAW_BLOCKED                         NT_STATUS(0xC0210023)
1760 #define NT_STATUS_FVE_NO_FEATURE_LICENSE                  NT_STATUS(0xC0210026)
1761 #define NT_STATUS_FVE_POLICY_USER_DISABLE_RDV_NOT_ALLOWED NT_STATUS(0xC0210027)
1762 #define NT_STATUS_FVE_CONV_RECOVERY_FAILED                NT_STATUS(0xC0210028)
1763 #define NT_STATUS_FVE_VIRTUALIZED_SPACE_TOO_BIG           NT_STATUS(0xC0210029)
1764 #define NT_STATUS_FVE_VOLUME_TOO_SMALL                    NT_STATUS(0xC0210030)
1765 #define NT_STATUS_FWP_CALLOUT_NOT_FOUND                   NT_STATUS(0xC0220001)
1766 #define NT_STATUS_FWP_CONDITION_NOT_FOUND                 NT_STATUS(0xC0220002)
1767 #define NT_STATUS_FWP_FILTER_NOT_FOUND                    NT_STATUS(0xC0220003)
1768 #define NT_STATUS_FWP_LAYER_NOT_FOUND                     NT_STATUS(0xC0220004)
1769 #define NT_STATUS_FWP_PROVIDER_NOT_FOUND                  NT_STATUS(0xC0220005)
1770 #define NT_STATUS_FWP_PROVIDER_CONTEXT_NOT_FOUND          NT_STATUS(0xC0220006)
1771 #define NT_STATUS_FWP_SUBLAYER_NOT_FOUND                  NT_STATUS(0xC0220007)
1772 #define NT_STATUS_FWP_NOT_FOUND                           NT_STATUS(0xC0220008)
1773 #define NT_STATUS_FWP_ALREADY_EXISTS                      NT_STATUS(0xC0220009)
1774 #define NT_STATUS_FWP_IN_USE                              NT_STATUS(0xC022000A)
1775 #define NT_STATUS_FWP_DYNAMIC_SESSION_IN_PROGRESS         NT_STATUS(0xC022000B)
1776 #define NT_STATUS_FWP_WRONG_SESSION                       NT_STATUS(0xC022000C)
1777 #define NT_STATUS_FWP_NO_TXN_IN_PROGRESS                  NT_STATUS(0xC022000D)
1778 #define NT_STATUS_FWP_TXN_IN_PROGRESS                     NT_STATUS(0xC022000E)
1779 #define NT_STATUS_FWP_TXN_ABORTED                         NT_STATUS(0xC022000F)
1780 #define NT_STATUS_FWP_SESSION_ABORTED                     NT_STATUS(0xC0220010)
1781 #define NT_STATUS_FWP_INCOMPATIBLE_TXN                    NT_STATUS(0xC0220011)
1782 #define NT_STATUS_FWP_TIMEOUT                             NT_STATUS(0xC0220012)
1783 #define NT_STATUS_FWP_NET_EVENTS_DISABLED                 NT_STATUS(0xC0220013)
1784 #define NT_STATUS_FWP_INCOMPATIBLE_LAYER                  NT_STATUS(0xC0220014)
1785 #define NT_STATUS_FWP_KM_CLIENTS_ONLY                     NT_STATUS(0xC0220015)
1786 #define NT_STATUS_FWP_LIFETIME_MISMATCH                   NT_STATUS(0xC0220016)
1787 #define NT_STATUS_FWP_BUILTIN_OBJECT                      NT_STATUS(0xC0220017)
1788 #define NT_STATUS_FWP_TOO_MANY_BOOTTIME_FILTERS           NT_STATUS(0xC0220018)
1789 #define NT_STATUS_FWP_TOO_MANY_CALLOUTS                   NT_STATUS(0xC0220018)
1790 #define NT_STATUS_FWP_NOTIFICATION_DROPPED                NT_STATUS(0xC0220019)
1791 #define NT_STATUS_FWP_TRAFFIC_MISMATCH                    NT_STATUS(0xC022001A)
1792 #define NT_STATUS_FWP_INCOMPATIBLE_SA_STATE               NT_STATUS(0xC022001B)
1793 #define NT_STATUS_FWP_NULL_POINTER                        NT_STATUS(0xC022001C)
1794 #define NT_STATUS_FWP_INVALID_ENUMERATOR                  NT_STATUS(0xC022001D)
1795 #define NT_STATUS_FWP_INVALID_FLAGS                       NT_STATUS(0xC022001E)
1796 #define NT_STATUS_FWP_INVALID_NET_MASK                    NT_STATUS(0xC022001F)
1797 #define NT_STATUS_FWP_INVALID_RANGE                       NT_STATUS(0xC0220020)
1798 #define NT_STATUS_FWP_INVALID_INTERVAL                    NT_STATUS(0xC0220021)
1799 #define NT_STATUS_FWP_ZERO_LENGTH_ARRAY                   NT_STATUS(0xC0220022)
1800 #define NT_STATUS_FWP_NULL_DISPLAY_NAME                   NT_STATUS(0xC0220023)
1801 #define NT_STATUS_FWP_INVALID_ACTION_TYPE                 NT_STATUS(0xC0220024)
1802 #define NT_STATUS_FWP_INVALID_WEIGHT                      NT_STATUS(0xC0220025)
1803 #define NT_STATUS_FWP_MATCH_TYPE_MISMATCH                 NT_STATUS(0xC0220026)
1804 #define NT_STATUS_FWP_TYPE_MISMATCH                       NT_STATUS(0xC0220027)
1805 #define NT_STATUS_FWP_OUT_OF_BOUNDS                       NT_STATUS(0xC0220028)
1806 #define NT_STATUS_FWP_RESERVED                            NT_STATUS(0xC0220029)
1807 #define NT_STATUS_FWP_DUPLICATE_CONDITION                 NT_STATUS(0xC022002A)
1808 #define NT_STATUS_FWP_DUPLICATE_KEYMOD                    NT_STATUS(0xC022002B)
1809 #define NT_STATUS_FWP_ACTION_INCOMPATIBLE_WITH_LAYER      NT_STATUS(0xC022002C)
1810 #define NT_STATUS_FWP_ACTION_INCOMPATIBLE_WITH_SUBLAYER   NT_STATUS(0xC022002D)
1811 #define NT_STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_LAYER     NT_STATUS(0xC022002E)
1812 #define NT_STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_CALLOUT   NT_STATUS(0xC022002F)
1813 #define NT_STATUS_FWP_INCOMPATIBLE_AUTH_METHOD            NT_STATUS(0xC0220030)
1814 #define NT_STATUS_FWP_INCOMPATIBLE_DH_GROUP               NT_STATUS(0xC0220031)
1815 #define NT_STATUS_FWP_EM_NOT_SUPPORTED                    NT_STATUS(0xC0220032)
1816 #define NT_STATUS_FWP_NEVER_MATCH                         NT_STATUS(0xC0220033)
1817 #define NT_STATUS_FWP_PROVIDER_CONTEXT_MISMATCH           NT_STATUS(0xC0220034)
1818 #define NT_STATUS_FWP_INVALID_PARAMETER                   NT_STATUS(0xC0220035)
1819 #define NT_STATUS_FWP_TOO_MANY_SUBLAYERS                  NT_STATUS(0xC0220036)
1820 #define NT_STATUS_FWP_CALLOUT_NOTIFICATION_FAILED         NT_STATUS(0xC0220037)
1821 #define NT_STATUS_FWP_INCOMPATIBLE_AUTH_CONFIG            NT_STATUS(0xC0220038)
1822 #define NT_STATUS_FWP_INCOMPATIBLE_CIPHER_CONFIG          NT_STATUS(0xC0220039)
1823 #define NT_STATUS_FWP_DUPLICATE_AUTH_METHOD               NT_STATUS(0xC022003C)
1824 #define NT_STATUS_FWP_TCPIP_NOT_READY                     NT_STATUS(0xC0220100)
1825 #define NT_STATUS_FWP_INJECT_HANDLE_CLOSING               NT_STATUS(0xC0220101)
1826 #define NT_STATUS_FWP_INJECT_HANDLE_STALE                 NT_STATUS(0xC0220102)
1827 #define NT_STATUS_FWP_CANNOT_PEND                         NT_STATUS(0xC0220103)
1828 #define NT_STATUS_NDIS_CLOSING                            NT_STATUS(0xC0230002)
1829 #define NT_STATUS_NDIS_BAD_VERSION                        NT_STATUS(0xC0230004)
1830 #define NT_STATUS_NDIS_BAD_CHARACTERISTICS                NT_STATUS(0xC0230005)
1831 #define NT_STATUS_NDIS_ADAPTER_NOT_FOUND                  NT_STATUS(0xC0230006)
1832 #define NT_STATUS_NDIS_OPEN_FAILED                        NT_STATUS(0xC0230007)
1833 #define NT_STATUS_NDIS_DEVICE_FAILED                      NT_STATUS(0xC0230008)
1834 #define NT_STATUS_NDIS_MULTICAST_FULL                     NT_STATUS(0xC0230009)
1835 #define NT_STATUS_NDIS_MULTICAST_EXISTS                   NT_STATUS(0xC023000A)
1836 #define NT_STATUS_NDIS_MULTICAST_NOT_FOUND                NT_STATUS(0xC023000B)
1837 #define NT_STATUS_NDIS_REQUEST_ABORTED                    NT_STATUS(0xC023000C)
1838 #define NT_STATUS_NDIS_RESET_IN_PROGRESS                  NT_STATUS(0xC023000D)
1839 #define NT_STATUS_NDIS_INVALID_PACKET                     NT_STATUS(0xC023000F)
1840 #define NT_STATUS_NDIS_INVALID_DEVICE_REQUEST             NT_STATUS(0xC0230010)
1841 #define NT_STATUS_NDIS_ADAPTER_NOT_READY                  NT_STATUS(0xC0230011)
1842 #define NT_STATUS_NDIS_INVALID_LENGTH                     NT_STATUS(0xC0230014)
1843 #define NT_STATUS_NDIS_INVALID_DATA                       NT_STATUS(0xC0230015)
1844 #define NT_STATUS_NDIS_BUFFER_TOO_SHORT                   NT_STATUS(0xC0230016)
1845 #define NT_STATUS_NDIS_INVALID_OID                        NT_STATUS(0xC0230017)
1846 #define NT_STATUS_NDIS_ADAPTER_REMOVED                    NT_STATUS(0xC0230018)
1847 #define NT_STATUS_NDIS_UNSUPPORTED_MEDIA                  NT_STATUS(0xC0230019)
1848 #define NT_STATUS_NDIS_GROUP_ADDRESS_IN_USE               NT_STATUS(0xC023001A)
1849 #define NT_STATUS_NDIS_FILE_NOT_FOUND                     NT_STATUS(0xC023001B)
1850 #define NT_STATUS_NDIS_ERROR_READING_FILE                 NT_STATUS(0xC023001C)
1851 #define NT_STATUS_NDIS_ALREADY_MAPPED                     NT_STATUS(0xC023001D)
1852 #define NT_STATUS_NDIS_RESOURCE_CONFLICT                  NT_STATUS(0xC023001E)
1853 #define NT_STATUS_NDIS_MEDIA_DISCONNECTED                 NT_STATUS(0xC023001F)
1854 #define NT_STATUS_NDIS_INVALID_ADDRESS                    NT_STATUS(0xC0230022)
1855 #define NT_STATUS_NDIS_PAUSED                             NT_STATUS(0xC023002A)
1856 #define NT_STATUS_NDIS_INTERFACE_NOT_FOUND                NT_STATUS(0xC023002B)
1857 #define NT_STATUS_NDIS_UNSUPPORTED_REVISION               NT_STATUS(0xC023002C)
1858 #define NT_STATUS_NDIS_INVALID_PORT                       NT_STATUS(0xC023002D)
1859 #define NT_STATUS_NDIS_INVALID_PORT_STATE                 NT_STATUS(0xC023002E)
1860 #define NT_STATUS_NDIS_LOW_POWER_STATE                    NT_STATUS(0xC023002F)
1861 #define NT_STATUS_NDIS_NOT_SUPPORTED                      NT_STATUS(0xC02300BB)
1862 #define NT_STATUS_NDIS_OFFLOAD_POLICY                     NT_STATUS(0xC023100F)
1863 #define NT_STATUS_NDIS_OFFLOAD_CONNECTION_REJECTED        NT_STATUS(0xC0231012)
1864 #define NT_STATUS_NDIS_OFFLOAD_PATH_REJECTED              NT_STATUS(0xC0231013)
1865 #define NT_STATUS_NDIS_DOT11_AUTO_CONFIG_ENABLED          NT_STATUS(0xC0232000)
1866 #define NT_STATUS_NDIS_DOT11_MEDIA_IN_USE                 NT_STATUS(0xC0232001)
1867 #define NT_STATUS_NDIS_DOT11_POWER_STATE_INVALID          NT_STATUS(0xC0232002)
1868 #define NT_STATUS_NDIS_PM_WOL_PATTERN_LIST_FULL           NT_STATUS(0xC0232003)
1869 #define NT_STATUS_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL      NT_STATUS(0xC0232004)
1870 #define NT_STATUS_IPSEC_BAD_SPI                           NT_STATUS(0xC0360001)
1871 #define NT_STATUS_IPSEC_SA_LIFETIME_EXPIRED               NT_STATUS(0xC0360002)
1872 #define NT_STATUS_IPSEC_WRONG_SA                          NT_STATUS(0xC0360003)
1873 #define NT_STATUS_IPSEC_REPLAY_CHECK_FAILED               NT_STATUS(0xC0360004)
1874 #define NT_STATUS_IPSEC_INVALID_PACKET                    NT_STATUS(0xC0360005)
1875 #define NT_STATUS_IPSEC_INTEGRITY_CHECK_FAILED            NT_STATUS(0xC0360006)
1876 #define NT_STATUS_IPSEC_CLEAR_TEXT_DROP                   NT_STATUS(0xC0360007)
1877 #define NT_STATUS_IPSEC_AUTH_FIREWALL_DROP                NT_STATUS(0xC0360008)
1878 #define NT_STATUS_IPSEC_THROTTLE_DROP                     NT_STATUS(0xC0360009)
1879 #define NT_STATUS_IPSEC_DOSP_BLOCK                        NT_STATUS(0xC0368000)
1880 #define NT_STATUS_IPSEC_DOSP_RECEIVED_MULTICAST           NT_STATUS(0xC0368001)
1881 #define NT_STATUS_IPSEC_DOSP_INVALID_PACKET               NT_STATUS(0xC0368002)
1882 #define NT_STATUS_IPSEC_DOSP_STATE_LOOKUP_FAILED          NT_STATUS(0xC0368003)
1883 #define NT_STATUS_IPSEC_DOSP_MAX_ENTRIES                  NT_STATUS(0xC0368004)
1884 #define NT_STATUS_IPSEC_DOSP_KEYMOD_NOT_ALLOWED           NT_STATUS(0xC0368005)
1885 #define NT_STATUS_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES  NT_STATUS(0xC0368006)
1886 #define NT_STATUS_VOLMGR_MIRROR_NOT_SUPPORTED             NT_STATUS(0xC038005B)
1887 #define NT_STATUS_VOLMGR_RAID5_NOT_SUPPORTED              NT_STATUS(0xC038005C)
1888 #define NT_STATUS_VIRTDISK_PROVIDER_NOT_FOUND             NT_STATUS(0xC03A0014)
1889 #define NT_STATUS_VIRTDISK_NOT_VIRTUAL_DISK               NT_STATUS(0xC03A0015)
1890 #define NT_STATUS_VHD_PARENT_VHD_ACCESS_DENIED            NT_STATUS(0xC03A0016)
1891 #define NT_STATUS_VHD_CHILD_PARENT_SIZE_MISMATCH          NT_STATUS(0xC03A0017)
1892 #define NT_STATUS_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED   NT_STATUS(0xC03A0018)
1893 #define NT_STATUS_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT  NT_STATUS(0xC03A0019)
1894 #define NT_STATUS_VHD_SHARED                              NT_STATUS(0xC05CFF0A)
1895 #define NT_STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP   NT_STATUS(0xC05D0000)
1896 #define NT_STATUS_SMB_BAD_CLUSTER_DIALECT                 NT_STATUS(0xC05D0001)
1897
1898 /* I use NT_STATUS_FOOBAR when I have no idea what error code to use -
1899  * this means we need a torture test */
1900 #define NT_STATUS_FOOBAR NT_STATUS_UNSUCCESSFUL
1901
1902 /*****************************************************************************
1903  Returns an NT error message.  not amazingly helpful, but better than a number.
1904
1905  This version is const, and so neither allocates memory nor uses a
1906  static variable for unknown errors.
1907  *****************************************************************************/
1908
1909 const char *nt_errstr_const(NTSTATUS nt_code);
1910
1911 /*****************************************************************************
1912  returns an NT error message.  not amazingly helpful, but better than a number.
1913  *****************************************************************************/
1914 const char *nt_errstr(NTSTATUS nt_code);
1915
1916 /************************************************************************
1917  Print friendler version fo NT error code
1918  ***********************************************************************/
1919 const char *get_friendly_nt_error_msg(NTSTATUS nt_code);
1920
1921 /*****************************************************************************
1922  returns an NT_STATUS constant as a string for inclusion in autogen C code
1923  *****************************************************************************/
1924 const char *get_nt_error_c_code(void *mem_ctx, NTSTATUS nt_code);
1925
1926 /*****************************************************************************
1927  returns the NT_STATUS constant matching the string supplied (as an NTSTATUS)
1928  *****************************************************************************/
1929 NTSTATUS nt_status_string_to_code(const char *nt_status_str);
1930
1931 /* we need these here for openchange */
1932 #ifndef likely
1933 #define likely(x) (x)
1934 #endif
1935 #ifndef unlikely
1936 #define unlikely(x) (x)
1937 #endif
1938
1939 #define NT_STATUS_IS_OK(x) (likely(NT_STATUS_V(x) == 0))
1940 #define NT_STATUS_IS_ERR(x) (unlikely((NT_STATUS_V(x) & 0xc0000000) == 0xc0000000))
1941 #define NT_STATUS_EQUAL(x,y) (NT_STATUS_V(x) == NT_STATUS_V(y))
1942
1943 /*
1944  * These macros (with the embedded return) are considered poor coding
1945  * style per README.Coding
1946  *
1947  * Please do not use them in new code, and do not rely on them in
1948  * projects external to Samba as they will go away at some point.
1949  */
1950
1951 #define NT_STATUS_HAVE_NO_MEMORY(x) do { \
1952         if (unlikely(!(x))) {           \
1953                 return NT_STATUS_NO_MEMORY;\
1954         }\
1955 } while (0)
1956
1957 /* This varient is for when you want to free a local
1958    temporary memory context in the error path */
1959 #define NT_STATUS_HAVE_NO_MEMORY_AND_FREE(x, ctx) do {  \
1960         if (!(x)) {\
1961                 talloc_free(ctx); \
1962                 return NT_STATUS_NO_MEMORY;\
1963         }\
1964 } while (0)
1965
1966 #define NT_STATUS_IS_OK_RETURN(x) do { \
1967         if (NT_STATUS_IS_OK(x)) {\
1968                 return x;\
1969         }\
1970 } while (0)
1971
1972 #define NT_STATUS_NOT_OK_RETURN(x) do { \
1973         if (!NT_STATUS_IS_OK(x)) {\
1974                 return x;\
1975         }\
1976 } while (0)
1977
1978 #define NT_STATUS_NOT_OK_RETURN_AND_FREE(x, ctx) do {   \
1979         if (!NT_STATUS_IS_OK(x)) {\
1980                 talloc_free(ctx); \
1981                 return x;\
1982         }\
1983 } while (0)
1984
1985 #define NT_STATUS_IS_ERR_RETURN(x) do { \
1986         if (NT_STATUS_IS_ERR(x)) {\
1987                 return x;\
1988         }\
1989 } while (0)
1990
1991 #define NT_STATUS_NOT_ERR_RETURN(x) do { \
1992         if (!NT_STATUS_IS_ERR(x)) {\
1993                 return x;\
1994         }\
1995 } while (0)
1996
1997 /* this defines special NTSTATUS codes to represent DOS errors.  I
1998    have chosen this macro to produce status codes in the invalid
1999    NTSTATUS range */
2000 #define NT_STATUS_DOS(class, code) NT_STATUS(0xF1000000 | ((class)<<16) | code)
2001 #define NT_STATUS_IS_DOS(status) ((NT_STATUS_V(status) & 0xFF000000) == 0xF1000000)
2002 #define NT_STATUS_DOS_CLASS(status) ((NT_STATUS_V(status) >> 16) & 0xFF)
2003 #define NT_STATUS_DOS_CODE(status) (NT_STATUS_V(status) & 0xFFFF)
2004
2005 /* define ldap error codes as NTSTATUS codes */
2006 #define NT_STATUS_LDAP(code) NT_STATUS(0xF2000000 | code)
2007 #define NT_STATUS_IS_LDAP(status) ((NT_STATUS_V(status) & 0xFF000000) == 0xF2000000)
2008 #define NT_STATUS_LDAP_CODE(status) (NT_STATUS_V(status) & ~0xFF000000)
2009
2010 #define NT_STATUS_IS_RPC(status) \
2011         (((NT_STATUS_V(status) & 0xFFFF) == 0xC0020000) || \
2012          ((NT_STATUS_V(status) & 0xFFFF) == 0xC0030000))
2013
2014 #endif /* _NTSTATUS_H */