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
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.
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.
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/>.
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
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)
37 typedef uint32_t NTSTATUS
;
38 #define NT_STATUS(x) (x)
39 #define NT_STATUS_V(x) (x)
42 /* Win32 Status codes. */
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)
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)
64 /* Win7 status codes. */
65 #define NT_STATUS_INVALID_LOCK_RANGE NT_STATUS(0xC0000000 | 0x01a1)
67 /* Win32 Error codes extracted using a loop in smbclient then printing a
68 netmon sniff to a file. */
77 | NT_STATUS_NOPROBLEMO |
84 _________)/\\_//(\/(/\)/\//\/\///|_)_______
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)
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))
114 #define NT_STATUS_NO_MEMORY NT_STATUS(0xC0000000 | 0x0017)
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)
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))
130 #define NT_STATUS_ACCESS_DENIED NT_STATUS(0xC0000000 | 0x0022)
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)
632 /* I use NT_STATUS_FOOBAR when I have no idea what error code to use -
633 * this means we need a torture test */
634 #define NT_STATUS_FOOBAR NT_STATUS_UNSUCCESSFUL
636 /*****************************************************************************
637 Returns an NT error message. not amazingly helpful, but better than a number.
639 This version is const, and so neither allocates memory nor uses a
640 static variable for unknown errors.
641 *****************************************************************************/
643 const char *nt_errstr_const(NTSTATUS nt_code
);
645 /*****************************************************************************
646 returns an NT error message. not amazingly helpful, but better than a number.
647 *****************************************************************************/
648 const char *nt_errstr(NTSTATUS nt_code
);
650 /************************************************************************
651 Print friendler version fo NT error code
652 ***********************************************************************/
653 const char *get_friendly_nt_error_msg(NTSTATUS nt_code
);
655 /*****************************************************************************
656 returns an NT_STATUS constant as a string for inclusion in autogen C code
657 *****************************************************************************/
658 const char *get_nt_error_c_code(void *mem_ctx
, NTSTATUS nt_code
);
660 /*****************************************************************************
661 returns the NT_STATUS constant matching the string supplied (as an NTSTATUS)
662 *****************************************************************************/
663 NTSTATUS
nt_status_string_to_code(const char *nt_status_str
);
665 /* we need these here for openchange */
667 #define likely(x) (x)
670 #define unlikely(x) (x)
673 #define NT_STATUS_IS_OK(x) (likely(NT_STATUS_V(x) == 0))
674 #define NT_STATUS_IS_ERR(x) (unlikely((NT_STATUS_V(x) & 0xc0000000) == 0xc0000000))
675 #define NT_STATUS_EQUAL(x,y) (NT_STATUS_V(x) == NT_STATUS_V(y))
678 * These macros (with the embedded return) are considered poor coding
679 * style per README.Coding
681 * Please do not use them in new code, and do not rely on them in
682 * projects external to Samba as they will go away at some point.
685 #define NT_STATUS_HAVE_NO_MEMORY(x) do { \
686 if (unlikely(!(x))) { \
687 return NT_STATUS_NO_MEMORY;\
691 /* This varient is for when you want to free a local
692 temporary memory context in the error path */
693 #define NT_STATUS_HAVE_NO_MEMORY_AND_FREE(x, ctx) do { \
696 return NT_STATUS_NO_MEMORY;\
700 #define NT_STATUS_IS_OK_RETURN(x) do { \
701 if (NT_STATUS_IS_OK(x)) {\
706 #define NT_STATUS_NOT_OK_RETURN(x) do { \
707 if (!NT_STATUS_IS_OK(x)) {\
712 #define NT_STATUS_NOT_OK_RETURN_AND_FREE(x, ctx) do { \
713 if (!NT_STATUS_IS_OK(x)) {\
719 #define NT_STATUS_IS_ERR_RETURN(x) do { \
720 if (NT_STATUS_IS_ERR(x)) {\
725 #define NT_STATUS_NOT_ERR_RETURN(x) do { \
726 if (!NT_STATUS_IS_ERR(x)) {\
731 /* this defines special NTSTATUS codes to represent DOS errors. I
732 have chosen this macro to produce status codes in the invalid
734 #define NT_STATUS_DOS(class, code) NT_STATUS(0xF1000000 | ((class)<<16) | code)
735 #define NT_STATUS_IS_DOS(status) ((NT_STATUS_V(status) & 0xFF000000) == 0xF1000000)
736 #define NT_STATUS_DOS_CLASS(status) ((NT_STATUS_V(status) >> 16) & 0xFF)
737 #define NT_STATUS_DOS_CODE(status) (NT_STATUS_V(status) & 0xFFFF)
739 /* define ldap error codes as NTSTATUS codes */
740 #define NT_STATUS_LDAP(code) NT_STATUS(0xF2000000 | code)
741 #define NT_STATUS_IS_LDAP(status) ((NT_STATUS_V(status) & 0xFF000000) == 0xF2000000)
742 #define NT_STATUS_LDAP_CODE(status) (NT_STATUS_V(status) & ~0xFF000000)
744 #define NT_STATUS_IS_RPC(status) \
745 (((NT_STATUS_V(status) & 0xFFFF) == 0xC0020000) || \
746 ((NT_STATUS_V(status) & 0xFFFF) == 0xC0030000))
750 const char *nt_errstr
;
752 } nt_err_code_struct
;
754 #endif /* _NTSTATUS_H */