summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-27 17:52:23 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-27 17:52:23 +0000
commitee5f7237decfe446f4fdb08422beb2e6cb43af7f (patch)
tree80b217a2938d7e0d46a5d20517c9adb0807ecd1a /source3
parente8e98c9ea0690e3acf1126b50882e59e1056c7b3 (diff)
downloadsamba-ee5f7237decfe446f4fdb08422beb2e6cb43af7f.tar.gz
samba-ee5f7237decfe446f4fdb08422beb2e6cb43af7f.tar.bz2
samba-ee5f7237decfe446f4fdb08422beb2e6cb43af7f.zip
started converting NTSTATUS to be a structure on systems with gcc in order to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
(This used to be commit 1b778bc7d22efff3f90dc450eb12baa1241cf68f)
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth.c17
-rw-r--r--source3/include/nterr.h1019
-rw-r--r--source3/include/rpc_lsa.h32
-rw-r--r--source3/include/smb.h11
-rw-r--r--source3/include/smb_macros.h2
-rw-r--r--source3/lib/util_seaccess.c17
-rw-r--r--source3/libsmb/clierror.c53
-rw-r--r--source3/libsmb/clireadwrite.c9
-rw-r--r--source3/libsmb/clitrans.c26
-rw-r--r--source3/libsmb/errormap.c854
-rw-r--r--source3/libsmb/nterr.c13
-rw-r--r--source3/locking/locking.c12
-rw-r--r--source3/rpc_server/srv_lsa_nt.c2
-rw-r--r--source3/smbd/auth.c17
-rw-r--r--source3/smbd/blocking.c8
-rw-r--r--source3/smbd/error.c10
-rw-r--r--source3/smbd/nttrans.c14
-rw-r--r--source3/smbd/reply.c24
18 files changed, 1505 insertions, 635 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 8ea867fe8c..ec493b7c06 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -56,10 +56,11 @@ static BOOL check_domain_match(char *user, char *domain)
as it makes the calls itself when needed.
****************************************************************************/
-uint32 check_password(const auth_usersupplied_info *user_info, auth_serversupplied_info *server_info)
+NTSTATUS check_password(const auth_usersupplied_info *user_info,
+ auth_serversupplied_info *server_info)
{
- uint32 nt_status = NT_STATUS_LOGON_FAILURE;
+ NTSTATUS nt_status = NT_STATUS_LOGON_FAILURE;
BOOL done_pam = False;
DEBUG(3, ("check_password: Checking password for user %s with the new password interface\n", user_info->smb_username.str));
@@ -120,9 +121,9 @@ SMB hash
return True if the password is correct, False otherwise
****************************************************************************/
-uint32 pass_check_smb_with_chal(char *user, char *domain, uchar chal[8],
- uchar *lm_pwd, int lm_pwd_len,
- uchar *nt_pwd, int nt_pwd_len)
+NTSTATUS pass_check_smb_with_chal(char *user, char *domain, uchar chal[8],
+ uchar *lm_pwd, int lm_pwd_len,
+ uchar *nt_pwd, int nt_pwd_len)
{
auth_usersupplied_info user_info;
@@ -196,9 +197,9 @@ uint32 pass_check_smb_with_chal(char *user, char *domain, uchar chal[8],
return check_password(&user_info, &server_info);
}
-uint32 pass_check_smb(char *user, char *domain,
- uchar *lm_pwd, int lm_pwd_len,
- uchar *nt_pwd, int nt_pwd_len)
+NTSTATUS pass_check_smb(char *user, char *domain,
+ uchar *lm_pwd, int lm_pwd_len,
+ uchar *nt_pwd, int nt_pwd_len)
{
uchar chal[8];
diff --git a/source3/include/nterr.h b/source3/include/nterr.h
index e7d218a5e8..0ab08479c8 100644
--- a/source3/include/nterr.h
+++ b/source3/include/nterr.h
@@ -1,517 +1,518 @@
/* Win32 Status codes. */
-#define STATUS_BUFFER_OVERFLOW (5)
-#define STATUS_MORE_ENTRIES (0x105)
-#define ERROR_INVALID_PARAMETER (87)
-#define ERROR_INSUFFICIENT_BUFFER (122)
-#define STATUS_1804 (1804)
-#define STATUS_NOTIFY_ENUM_DIR (0x10C)
+#define STATUS_BUFFER_OVERFLOW NT_STATUS(0x80000005)
+#define STATUS_MORE_ENTRIES NT_STATUS(0x105)
+#define ERROR_INVALID_PARAMETER NT_STATUS(87)
+#define ERROR_INSUFFICIENT_BUFFER NT_STATUS(122)
+#define STATUS_1804 NT_STATUS(1804)
+#define STATUS_NOTIFY_ENUM_DIR NT_STATUS(0x10C)
/* these are the NT error codes less than 1000. They are here for when
we start supporting NT error codes in Samba. They were extracted
using a loop in smbclient then printing a netmon sniff to a file */
-#define NT_STATUS_NOPROBLEMO (0x0)
-#define NT_STATUS_UNSUCCESSFUL (0xC0000000 | 1)
-#define NT_STATUS_NOT_IMPLEMENTED (0xC0000000 | 2)
-#define NT_STATUS_INVALID_INFO_CLASS (0xC0000000 | 3)
-#define NT_STATUS_INFO_LENGTH_MISMATCH (0xC0000000 | 4)
-#define NT_STATUS_ACCESS_VIOLATION (0xC0000000 | 5)
-#define NT_STATUS_IN_PAGE_ERROR (0xC0000000 | 6)
-#define NT_STATUS_PAGEFILE_QUOTA (0xC0000000 | 7)
-#define NT_STATUS_INVALID_HANDLE (0xC0000000 | 8)
-#define NT_STATUS_BAD_INITIAL_STACK (0xC0000000 | 9)
-#define NT_STATUS_BAD_INITIAL_PC (0xC0000000 | 10)
-#define NT_STATUS_INVALID_CID (0xC0000000 | 11)
-#define NT_STATUS_TIMER_NOT_CANCELED (0xC0000000 | 12)
-#define NT_STATUS_INVALID_PARAMETER (0xC0000000 | 13)
-#define NT_STATUS_NO_SUCH_DEVICE (0xC0000000 | 14)
-#define NT_STATUS_NO_SUCH_FILE (0xC0000000 | 15)
-#define NT_STATUS_INVALID_DEVICE_REQUEST (0xC0000000 | 16)
-#define NT_STATUS_END_OF_FILE (0xC0000000 | 17)
-#define NT_STATUS_WRONG_VOLUME (0xC0000000 | 18)
-#define NT_STATUS_NO_MEDIA_IN_DEVICE (0xC0000000 | 19)
-#define NT_STATUS_UNRECOGNIZED_MEDIA (0xC0000000 | 20)
-#define NT_STATUS_NONEXISTENT_SECTOR (0xC0000000 | 21)
-#define NT_STATUS_MORE_PROCESSING_REQUIRED (0xC0000000 | 22)
-#define NT_STATUS_NO_MEMORY (0xC0000000 | 23)
-#define NT_STATUS_CONFLICTING_ADDRESSES (0xC0000000 | 24)
-#define NT_STATUS_NOT_MAPPED_VIEW (0xC0000000 | 25)
-#define NT_STATUS_UNABLE_TO_FREE_VM (0x80000000 | 26)
-#define NT_STATUS_UNABLE_TO_DELETE_SECTION (0xC0000000 | 27)
-#define NT_STATUS_INVALID_SYSTEM_SERVICE (0xC0000000 | 28)
-#define NT_STATUS_ILLEGAL_INSTRUCTION (0xC0000000 | 29)
-#define NT_STATUS_INVALID_LOCK_SEQUENCE (0xC0000000 | 30)
-#define NT_STATUS_INVALID_VIEW_SIZE (0xC0000000 | 31)
-#define NT_STATUS_INVALID_FILE_FOR_SECTION (0xC0000000 | 32)
-#define NT_STATUS_ALREADY_COMMITTED (0xC0000000 | 33)
-#define NT_STATUS_ACCESS_DENIED (0xC0000000 | 34)
-#define NT_STATUS_BUFFER_TOO_SMALL (0xC0000000 | 35)
-#define NT_STATUS_OBJECT_TYPE_MISMATCH (0xC0000000 | 36)
-#define NT_STATUS_NONCONTINUABLE_EXCEPTION (0xC0000000 | 37)
-#define NT_STATUS_INVALID_DISPOSITION (0xC0000000 | 38)
-#define NT_STATUS_UNWIND (0xC0000000 | 39)
-#define NT_STATUS_BAD_STACK (0xC0000000 | 40)
-#define NT_STATUS_INVALID_UNWIND_TARGET (0xC0000000 | 41)
-#define NT_STATUS_NOT_LOCKED (0xC0000000 | 42)
-#define NT_STATUS_PARITY_ERROR (0xC0000000 | 43)
-#define NT_STATUS_UNABLE_TO_DECOMMIT_VM (0xC0000000 | 44)
-#define NT_STATUS_NOT_COMMITTED (0xC0000000 | 45)
-#define NT_STATUS_INVALID_PORT_ATTRIBUTES (0xC0000000 | 46)
-#define NT_STATUS_PORT_MESSAGE_TOO_LONG (0xC0000000 | 47)
-#define NT_STATUS_INVALID_PARAMETER_MIX (0xC0000000 | 48)
-#define NT_STATUS_INVALID_QUOTA_LOWER (0xC0000000 | 49)
-#define NT_STATUS_DISK_CORRUPT_ERROR (0xC0000000 | 50)
-#define NT_STATUS_OBJECT_NAME_INVALID (0xC0000000 | 51)
-#define NT_STATUS_OBJECT_NAME_NOT_FOUND (0xC0000000 | 52)
-#define NT_STATUS_OBJECT_NAME_COLLISION (0xC0000000 | 53)
-#define NT_STATUS_HANDLE_NOT_WAITABLE (0xC0000000 | 54)
-#define NT_STATUS_PORT_DISCONNECTED (0xC0000000 | 55)
-#define NT_STATUS_DEVICE_ALREADY_ATTACHED (0xC0000000 | 56)
-#define NT_STATUS_OBJECT_PATH_INVALID (0xC0000000 | 57)
-#define NT_STATUS_OBJECT_PATH_NOT_FOUND (0xC0000000 | 58)
-#define NT_STATUS_OBJECT_PATH_SYNTAX_BAD (0xC0000000 | 59)
-#define NT_STATUS_DATA_OVERRUN (0xC0000000 | 60)
-#define NT_STATUS_DATA_LATE_ERROR (0xC0000000 | 61)
-#define NT_STATUS_DATA_ERROR (0xC0000000 | 62)
-#define NT_STATUS_CRC_ERROR (0xC0000000 | 63)
-#define NT_STATUS_SECTION_TOO_BIG (0xC0000000 | 64)
-#define NT_STATUS_PORT_CONNECTION_REFUSED (0xC0000000 | 65)
-#define NT_STATUS_INVALID_PORT_HANDLE (0xC0000000 | 66)
-#define NT_STATUS_SHARING_VIOLATION (0xC0000000 | 67)
-#define NT_STATUS_QUOTA_EXCEEDED (0xC0000000 | 68)
-#define NT_STATUS_INVALID_PAGE_PROTECTION (0xC0000000 | 69)
-#define NT_STATUS_MUTANT_NOT_OWNED (0xC0000000 | 70)
-#define NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED (0xC0000000 | 71)
-#define NT_STATUS_PORT_ALREADY_SET (0xC0000000 | 72)
-#define NT_STATUS_SECTION_NOT_IMAGE (0xC0000000 | 73)
-#define NT_STATUS_SUSPEND_COUNT_EXCEEDED (0xC0000000 | 74)
-#define NT_STATUS_THREAD_IS_TERMINATING (0xC0000000 | 75)
-#define NT_STATUS_BAD_WORKING_SET_LIMIT (0xC0000000 | 76)
-#define NT_STATUS_INCOMPATIBLE_FILE_MAP (0xC0000000 | 77)
-#define NT_STATUS_SECTION_PROTECTION (0xC0000000 | 78)
-#define NT_STATUS_EAS_NOT_SUPPORTED (0xC0000000 | 79)
-#define NT_STATUS_EA_TOO_LARGE (0xC0000000 | 80)
-#define NT_STATUS_NONEXISTENT_EA_ENTRY (0xC0000000 | 81)
-#define NT_STATUS_NO_EAS_ON_FILE (0xC0000000 | 82)
-#define NT_STATUS_EA_CORRUPT_ERROR (0xC0000000 | 83)
-#define NT_STATUS_FILE_LOCK_CONFLICT (0xC0000000 | 84)
-#define NT_STATUS_LOCK_NOT_GRANTED (0xC0000000 | 85)
-#define NT_STATUS_DELETE_PENDING (0xC0000000 | 86)
-#define NT_STATUS_CTL_FILE_NOT_SUPPORTED (0xC0000000 | 87)
-#define NT_STATUS_UNKNOWN_REVISION (0xC0000000 | 88)
-#define NT_STATUS_REVISION_MISMATCH (0xC0000000 | 89)
-#define NT_STATUS_INVALID_OWNER (0xC0000000 | 90)
-#define NT_STATUS_INVALID_PRIMARY_GROUP (0xC0000000 | 91)
-#define NT_STATUS_NO_IMPERSONATION_TOKEN (0xC0000000 | 92)
-#define NT_STATUS_CANT_DISABLE_MANDATORY (0xC0000000 | 93)
-#define NT_STATUS_NO_LOGON_SERVERS (0xC0000000 | 94)
-#define NT_STATUS_NO_SUCH_LOGON_SESSION (0xC0000000 | 95)
-#define NT_STATUS_NO_SUCH_PRIVILEGE (0xC0000000 | 96)
-#define NT_STATUS_PRIVILEGE_NOT_HELD (0xC0000000 | 97)
-#define NT_STATUS_INVALID_ACCOUNT_NAME (0xC0000000 | 98)
-#define NT_STATUS_USER_EXISTS (0xC0000000 | 99)
-#define NT_STATUS_NO_SUCH_USER (0xC0000000 | 100)
-#define NT_STATUS_GROUP_EXISTS (0xC0000000 | 101)
-#define NT_STATUS_NO_SUCH_GROUP (0xC0000000 | 102)
-#define NT_STATUS_MEMBER_IN_GROUP (0xC0000000 | 103)
-#define NT_STATUS_MEMBER_NOT_IN_GROUP (0xC0000000 | 104)
-#define NT_STATUS_LAST_ADMIN (0xC0000000 | 105)
-#define NT_STATUS_WRONG_PASSWORD (0xC0000000 | 106)
-#define NT_STATUS_ILL_FORMED_PASSWORD (0xC0000000 | 107)
-#define NT_STATUS_PASSWORD_RESTRICTION (0xC0000000 | 108)
-#define NT_STATUS_LOGON_FAILURE (0xC0000000 | 109)
-#define NT_STATUS_ACCOUNT_RESTRICTION (0xC0000000 | 110)
-#define NT_STATUS_INVALID_LOGON_HOURS (0xC0000000 | 111)
-#define NT_STATUS_INVALID_WORKSTATION (0xC0000000 | 112)
-#define NT_STATUS_PASSWORD_EXPIRED (0xC0000000 | 113)
-#define NT_STATUS_ACCOUNT_DISABLED (0xC0000000 | 114)
-#define NT_STATUS_NONE_MAPPED (0xC0000000 | 115)
-#define NT_STATUS_TOO_MANY_LUIDS_REQUESTED (0xC0000000 | 116)
-#define NT_STATUS_LUIDS_EXHAUSTED (0xC0000000 | 117)
-#define NT_STATUS_INVALID_SUB_AUTHORITY (0xC0000000 | 118)
-#define NT_STATUS_INVALID_ACL (0xC0000000 | 119)
-#define NT_STATUS_INVALID_SID (0xC0000000 | 120)
-#define NT_STATUS_INVALID_SECURITY_DESCR (0xC0000000 | 121)
-#define NT_STATUS_PROCEDURE_NOT_FOUND (0xC0000000 | 122)
-#define NT_STATUS_INVALID_IMAGE_FORMAT (0xC0000000 | 123)
-#define NT_STATUS_NO_TOKEN (0xC0000000 | 124)
-#define NT_STATUS_BAD_INHERITANCE_ACL (0xC0000000 | 125)
-#define NT_STATUS_RANGE_NOT_LOCKED (0xC0000000 | 126)
-#define NT_STATUS_DISK_FULL (0xC0000000 | 127)
-#define NT_STATUS_SERVER_DISABLED (0xC0000000 | 128)
-#define NT_STATUS_SERVER_NOT_DISABLED (0xC0000000 | 129)
-#define NT_STATUS_TOO_MANY_GUIDS_REQUESTED (0xC0000000 | 130)
-#define NT_STATUS_GUIDS_EXHAUSTED (0xC0000000 | 131)
-#define NT_STATUS_INVALID_ID_AUTHORITY (0xC0000000 | 132)
-#define NT_STATUS_AGENTS_EXHAUSTED (0xC0000000 | 133)
-#define NT_STATUS_INVALID_VOLUME_LABEL (0xC0000000 | 134)
-#define NT_STATUS_SECTION_NOT_EXTENDED (0xC0000000 | 135)
-#define NT_STATUS_NOT_MAPPED_DATA (0xC0000000 | 136)
-#define NT_STATUS_RESOURCE_DATA_NOT_FOUND (0xC0000000 | 137)
-#define NT_STATUS_RESOURCE_TYPE_NOT_FOUND (0xC0000000 | 138)
-#define NT_STATUS_RESOURCE_NAME_NOT_FOUND (0xC0000000 | 139)
-#define NT_STATUS_ARRAY_BOUNDS_EXCEEDED (0xC0000000 | 140)
-#define NT_STATUS_FLOAT_DENORMAL_OPERAND (0xC0000000 | 141)
-#define NT_STATUS_FLOAT_DIVIDE_BY_ZERO (0xC0000000 | 142)
-#define NT_STATUS_FLOAT_INEXACT_RESULT (0xC0000000 | 143)
-#define NT_STATUS_FLOAT_INVALID_OPERATION (0xC0000000 | 144)
-#define NT_STATUS_FLOAT_OVERFLOW (0xC0000000 | 145)
-#define NT_STATUS_FLOAT_STACK_CHECK (0xC0000000 | 146)
-#define NT_STATUS_FLOAT_UNDERFLOW (0xC0000000 | 147)
-#define NT_STATUS_INTEGER_DIVIDE_BY_ZERO (0xC0000000 | 148)
-#define NT_STATUS_INTEGER_OVERFLOW (0xC0000000 | 149)
-#define NT_STATUS_PRIVILEGED_INSTRUCTION (0xC0000000 | 150)
-#define NT_STATUS_TOO_MANY_PAGING_FILES (0xC0000000 | 151)
-#define NT_STATUS_FILE_INVALID (0xC0000000 | 152)
-#define NT_STATUS_ALLOTTED_SPACE_EXCEEDED (0xC0000000 | 153)
-#define NT_STATUS_INSUFFICIENT_RESOURCES (0xC0000000 | 154)
-#define NT_STATUS_DFS_EXIT_PATH_FOUND (0xC0000000 | 155)
-#define NT_STATUS_DEVICE_DATA_ERROR (0xC0000000 | 156)
-#define NT_STATUS_DEVICE_NOT_CONNECTED (0xC0000000 | 157)
-#define NT_STATUS_DEVICE_POWER_FAILURE (0xC0000000 | 158)
-#define NT_STATUS_FREE_VM_NOT_AT_BASE (0xC0000000 | 159)
-#define NT_STATUS_MEMORY_NOT_ALLOCATED (0xC0000000 | 160)
-#define NT_STATUS_WORKING_SET_QUOTA (0xC0000000 | 161)
-#define NT_STATUS_MEDIA_WRITE_PROTECTED (0xC0000000 | 162)
-#define NT_STATUS_DEVICE_NOT_READY (0xC0000000 | 163)
-#define NT_STATUS_INVALID_GROUP_ATTRIBUTES (0xC0000000 | 164)
-#define NT_STATUS_BAD_IMPERSONATION_LEVEL (0xC0000000 | 165)
-#define NT_STATUS_CANT_OPEN_ANONYMOUS (0xC0000000 | 166)
-#define NT_STATUS_BAD_VALIDATION_CLASS (0xC0000000 | 167)
-#define NT_STATUS_BAD_TOKEN_TYPE (0xC0000000 | 168)
-#define NT_STATUS_BAD_MASTER_BOOT_RECORD (0xC0000000 | 169)
-#define NT_STATUS_INSTRUCTION_MISALIGNMENT (0xC0000000 | 170)
-#define NT_STATUS_INSTANCE_NOT_AVAILABLE (0xC0000000 | 171)
-#define NT_STATUS_PIPE_NOT_AVAILABLE (0xC0000000 | 172)
-#define NT_STATUS_INVALID_PIPE_STATE (0xC0000000 | 173)
-#define NT_STATUS_PIPE_BUSY (0xC0000000 | 174)
-#define NT_STATUS_ILLEGAL_FUNCTION (0xC0000000 | 175)
-#define NT_STATUS_PIPE_DISCONNECTED (0xC0000000 | 176)
-#define NT_STATUS_PIPE_CLOSING (0xC0000000 | 177)
-#define NT_STATUS_PIPE_CONNECTED (0xC0000000 | 178)
-#define NT_STATUS_PIPE_LISTENING (0xC0000000 | 179)
-#define NT_STATUS_INVALID_READ_MODE (0xC0000000 | 180)
-#define NT_STATUS_IO_TIMEOUT (0xC0000000 | 181)
-#define NT_STATUS_FILE_FORCED_CLOSED (0xC0000000 | 182)
-#define NT_STATUS_PROFILING_NOT_STARTED (0xC0000000 | 183)
-#define NT_STATUS_PROFILING_NOT_STOPPED (0xC0000000 | 184)
-#define NT_STATUS_COULD_NOT_INTERPRET (0xC0000000 | 185)
-#define NT_STATUS_FILE_IS_A_DIRECTORY (0xC0000000 | 186)
-#define NT_STATUS_NOT_SUPPORTED (0xC0000000 | 187)
-#define NT_STATUS_REMOTE_NOT_LISTENING (0xC0000000 | 188)
-#define NT_STATUS_DUPLICATE_NAME (0xC0000000 | 189)
-#define NT_STATUS_BAD_NETWORK_PATH (0xC0000000 | 190)
-#define NT_STATUS_NETWORK_BUSY (0xC0000000 | 191)
-#define NT_STATUS_DEVICE_DOES_NOT_EXIST (0xC0000000 | 192)
-#define NT_STATUS_TOO_MANY_COMMANDS (0xC0000000 | 193)
-#define NT_STATUS_ADAPTER_HARDWARE_ERROR (0xC0000000 | 194)
-#define NT_STATUS_INVALID_NETWORK_RESPONSE (0xC0000000 | 195)
-#define NT_STATUS_UNEXPECTED_NETWORK_ERROR (0xC0000000 | 196)
-#define NT_STATUS_BAD_REMOTE_ADAPTER (0xC0000000 | 197)
-#define NT_STATUS_PRINT_QUEUE_FULL (0xC0000000 | 198)
-#define NT_STATUS_NO_SPOOL_SPACE (0xC0000000 | 199)
-#define NT_STATUS_PRINT_CANCELLED (0xC0000000 | 200)
-#define NT_STATUS_NETWORK_NAME_DELETED (0xC0000000 | 201)
-#define NT_STATUS_NETWORK_ACCESS_DENIED (0xC0000000 | 202)
-#define NT_STATUS_BAD_DEVICE_TYPE (0xC0000000 | 203)
-#define NT_STATUS_BAD_NETWORK_NAME (0xC0000000 | 204)
-#define NT_STATUS_TOO_MANY_NAMES (0xC0000000 | 205)
-#define NT_STATUS_TOO_MANY_SESSIONS (0xC0000000 | 206)
-#define NT_STATUS_SHARING_PAUSED (0xC0000000 | 207)
-#define NT_STATUS_REQUEST_NOT_ACCEPTED (0xC0000000 | 208)
-#define NT_STATUS_REDIRECTOR_PAUSED (0xC0000000 | 209)
-#define NT_STATUS_NET_WRITE_FAULT (0xC0000000 | 210)
-#define NT_STATUS_PROFILING_AT_LIMIT (0xC0000000 | 211)
-#define NT_STATUS_NOT_SAME_DEVICE (0xC0000000 | 212)
-#define NT_STATUS_FILE_RENAMED (0xC0000000 | 213)
-#define NT_STATUS_VIRTUAL_CIRCUIT_CLOSED (0xC0000000 | 214)
-#define NT_STATUS_NO_SECURITY_ON_OBJECT (0xC0000000 | 215)
-#define NT_STATUS_CANT_WAIT (0xC0000000 | 216)
-#define NT_STATUS_PIPE_EMPTY (0xC0000000 | 217)
-#define NT_STATUS_CANT_ACCESS_DOMAIN_INFO (0xC0000000 | 218)
-#define NT_STATUS_CANT_TERMINATE_SELF (0xC0000000 | 219)
-#define NT_STATUS_INVALID_SERVER_STATE (0xC0000000 | 220)
-#define NT_STATUS_INVALID_DOMAIN_STATE (0xC0000000 | 221)
-#define NT_STATUS_INVALID_DOMAIN_ROLE (0xC0000000 | 222)
-#define NT_STATUS_NO_SUCH_DOMAIN (0xC0000000 | 223)
-#define NT_STATUS_DOMAIN_EXISTS (0xC0000000 | 224)
-#define NT_STATUS_DOMAIN_LIMIT_EXCEEDED (0xC0000000 | 225)
-#define NT_STATUS_OPLOCK_NOT_GRANTED (0xC0000000 | 226)
-#define NT_STATUS_INVALID_OPLOCK_PROTOCOL (0xC0000000 | 227)
-#define NT_STATUS_INTERNAL_DB_CORRUPTION (0xC0000000 | 228)
-#define NT_STATUS_INTERNAL_ERROR (0xC0000000 | 229)
-#define NT_STATUS_GENERIC_NOT_MAPPED (0xC0000000 | 230)
-#define NT_STATUS_BAD_DESCRIPTOR_FORMAT (0xC0000000 | 231)
-#define NT_STATUS_INVALID_USER_BUFFER (0xC0000000 | 232)
-#define NT_STATUS_UNEXPECTED_IO_ERROR (0xC0000000 | 233)
-#define NT_STATUS_UNEXPECTED_MM_CREATE_ERR (0xC0000000 | 234)
-#define NT_STATUS_UNEXPECTED_MM_MAP_ERROR (0xC0000000 | 235)
-#define NT_STATUS_UNEXPECTED_MM_EXTEND_ERR (0xC0000000 | 236)
-#define NT_STATUS_NOT_LOGON_PROCESS (0xC0000000 | 237)
-#define NT_STATUS_LOGON_SESSION_EXISTS (0xC0000000 | 238)
-#define NT_STATUS_INVALID_PARAMETER_1 (0xC0000000 | 239)
-#define NT_STATUS_INVALID_PARAMETER_2 (0xC0000000 | 240)
-#define NT_STATUS_INVALID_PARAMETER_3 (0xC0000000 | 241)
-#define NT_STATUS_INVALID_PARAMETER_4 (0xC0000000 | 242)
-#define NT_STATUS_INVALID_PARAMETER_5 (0xC0000000 | 243)
-#define NT_STATUS_INVALID_PARAMETER_6 (0xC0000000 | 244)
-#define NT_STATUS_INVALID_PARAMETER_7 (0xC0000000 | 245)
-#define NT_STATUS_INVALID_PARAMETER_8 (0xC0000000 | 246)
-#define NT_STATUS_INVALID_PARAMETER_9 (0xC0000000 | 247)
-#define NT_STATUS_INVALID_PARAMETER_10 (0xC0000000 | 248)
-#define NT_STATUS_INVALID_PARAMETER_11 (0xC0000000 | 249)
-#define NT_STATUS_INVALID_PARAMETER_12 (0xC0000000 | 250)
-#define NT_STATUS_REDIRECTOR_NOT_STARTED (0xC0000000 | 251)
-#define NT_STATUS_REDIRECTOR_STARTED (0xC0000000 | 252)
-#define NT_STATUS_STACK_OVERFLOW (0xC0000000 | 253)
-#define NT_STATUS_NO_SUCH_PACKAGE (0xC0000000 | 254)
-#define NT_STATUS_BAD_FUNCTION_TABLE (0xC0000000 | 255)
-#define NT_STATUS_DIRECTORY_NOT_EMPTY (0xC0000000 | 257)
-#define NT_STATUS_FILE_CORRUPT_ERROR (0xC0000000 | 258)
-#define NT_STATUS_NOT_A_DIRECTORY (0xC0000000 | 259)
-#define NT_STATUS_BAD_LOGON_SESSION_STATE (0xC0000000 | 260)
-#define NT_STATUS_LOGON_SESSION_COLLISION (0xC0000000 | 261)
-#define NT_STATUS_NAME_TOO_LONG (0xC0000000 | 262)
-#define NT_STATUS_FILES_OPEN (0xC0000000 | 263)
-#define NT_STATUS_CONNECTION_IN_USE (0xC0000000 | 264)
-#define NT_STATUS_MESSAGE_NOT_FOUND (0xC0000000 | 265)
-#define NT_STATUS_PROCESS_IS_TERMINATING (0xC0000000 | 266)
-#define NT_STATUS_INVALID_LOGON_TYPE (0xC0000000 | 267)
-#define NT_STATUS_NO_GUID_TRANSLATION (0xC0000000 | 268)
-#define NT_STATUS_CANNOT_IMPERSONATE (0xC0000000 | 269)
-#define NT_STATUS_IMAGE_ALREADY_LOADED (0xC0000000 | 270)
-#define NT_STATUS_ABIOS_NOT_PRESENT (0xC0000000 | 271)
-#define NT_STATUS_ABIOS_LID_NOT_EXIST (0xC0000000 | 272)
-#define NT_STATUS_ABIOS_LID_ALREADY_OWNED (0xC0000000 | 273)
-#define NT_STATUS_ABIOS_NOT_LID_OWNER (0xC0000000 | 274)
-#define NT_STATUS_ABIOS_INVALID_COMMAND (0xC0000000 | 275)
-#define NT_STATUS_ABIOS_INVALID_LID (0xC0000000 | 276)
-#define NT_STATUS_ABIOS_SELECTOR_NOT_AVAILABLE (0xC0000000 | 277)
-#define NT_STATUS_ABIOS_INVALID_SELECTOR (0xC0000000 | 278)
-#define NT_STATUS_NO_LDT (0xC0000000 | 279)
-#define NT_STATUS_INVALID_LDT_SIZE (0xC0000000 | 280)
-#define NT_STATUS_INVALID_LDT_OFFSET (0xC0000000 | 281)
-#define NT_STATUS_INVALID_LDT_DESCRIPTOR (0xC0000000 | 282)
-#define NT_STATUS_INVALID_IMAGE_NE_FORMAT (0xC0000000 | 283)
-#define NT_STATUS_RXACT_INVALID_STATE (0xC0000000 | 284)
-#define NT_STATUS_RXACT_COMMIT_FAILURE (0xC0000000 | 285)
-#define NT_STATUS_MAPPED_FILE_SIZE_ZERO (0xC0000000 | 286)
-#define NT_STATUS_TOO_MANY_OPENED_FILES (0xC0000000 | 287)
-#define NT_STATUS_CANCELLED (0xC0000000 | 288)
-#define NT_STATUS_CANNOT_DELETE (0xC0000000 | 289)
-#define NT_STATUS_INVALID_COMPUTER_NAME (0xC0000000 | 290)
-#define NT_STATUS_FILE_DELETED (0xC0000000 | 291)
-#define NT_STATUS_SPECIAL_ACCOUNT (0xC0000000 | 292)
-#define NT_STATUS_SPECIAL_GROUP (0xC0000000 | 293)
-#define NT_STATUS_SPECIAL_USER (0xC0000000 | 294)
-#define NT_STATUS_MEMBERS_PRIMARY_GROUP (0xC0000000 | 295)
-#define NT_STATUS_FILE_CLOSED (0xC0000000 | 296)
-#define NT_STATUS_TOO_MANY_THREADS (0xC0000000 | 297)
-#define NT_STATUS_THREAD_NOT_IN_PROCESS (0xC0000000 | 298)
-#define NT_STATUS_TOKEN_ALREADY_IN_USE (0xC0000000 | 299)
-#define NT_STATUS_PAGEFILE_QUOTA_EXCEEDED (0xC0000000 | 300)
-#define NT_STATUS_COMMITMENT_LIMIT (0xC0000000 | 301)
-#define NT_STATUS_INVALID_IMAGE_LE_FORMAT (0xC0000000 | 302)
-#define NT_STATUS_INVALID_IMAGE_NOT_MZ (0xC0000000 | 303)
-#define NT_STATUS_INVALID_IMAGE_PROTECT (0xC0000000 | 304)
-#define NT_STATUS_INVALID_IMAGE_WIN_16 (0xC0000000 | 305)
-#define NT_STATUS_LOGON_SERVER_CONFLICT (0xC0000000 | 306)
-#define NT_STATUS_TIME_DIFFERENCE_AT_DC (0xC0000000 | 307)
-#define NT_STATUS_SYNCHRONIZATION_REQUIRED (0xC0000000 | 308)
-#define NT_STATUS_DLL_NOT_FOUND (0xC0000000 | 309)
-#define NT_STATUS_OPEN_FAILED (0xC0000000 | 310)
-#define NT_STATUS_IO_PRIVILEGE_FAILED (0xC0000000 | 311)
-#define NT_STATUS_ORDINAL_NOT_FOUND (0xC0000000 | 312)
-#define NT_STATUS_ENTRYPOINT_NOT_FOUND (0xC0000000 | 313)
-#define NT_STATUS_CONTROL_C_EXIT (0xC0000000 | 314)
-#define NT_STATUS_LOCAL_DISCONNECT (0xC0000000 | 315)
-#define NT_STATUS_REMOTE_DISCONNECT (0xC0000000 | 316)
-#define NT_STATUS_REMOTE_RESOURCES (0xC0000000 | 317)
-#define NT_STATUS_LINK_FAILED (0xC0000000 | 318)
-#define NT_STATUS_LINK_TIMEOUT (0xC0000000 | 319)
-#define NT_STATUS_INVALID_CONNECTION (0xC0000000 | 320)
-#define NT_STATUS_INVALID_ADDRESS (0xC0000000 | 321)
-#define NT_STATUS_DLL_INIT_FAILED (0xC0000000 | 322)
-#define NT_STATUS_MISSING_SYSTEMFILE (0xC0000000 | 323)
-#define NT_STATUS_UNHANDLED_EXCEPTION (0xC0000000 | 324)
-#define NT_STATUS_APP_INIT_FAILURE (0xC0000000 | 325)
-#define NT_STATUS_PAGEFILE_CREATE_FAILED (0xC0000000 | 326)
-#define NT_STATUS_NO_PAGEFILE (0xC0000000 | 327)
-#define NT_STATUS_INVALID_LEVEL (0xC0000000 | 328)
-#define NT_STATUS_WRONG_PASSWORD_CORE (0xC0000000 | 329)
-#define NT_STATUS_ILLEGAL_FLOAT_CONTEXT (0xC0000000 | 330)
-#define NT_STATUS_PIPE_BROKEN (0xC0000000 | 331)
-#define NT_STATUS_REGISTRY_CORRUPT (0xC0000000 | 332)
-#define NT_STATUS_REGISTRY_IO_FAILED (0xC0000000 | 333)
-#define NT_STATUS_NO_EVENT_PAIR (0xC0000000 | 334)
-#define NT_STATUS_UNRECOGNIZED_VOLUME (0xC0000000 | 335)
-#define NT_STATUS_SERIAL_NO_DEVICE_INITED (0xC0000000 | 336)
-#define NT_STATUS_NO_SUCH_ALIAS (0xC0000000 | 337)
-#define NT_STATUS_MEMBER_NOT_IN_ALIAS (0xC0000000 | 338)
-#define NT_STATUS_MEMBER_IN_ALIAS (0xC0000000 | 339)
-#define NT_STATUS_ALIAS_EXISTS (0xC0000000 | 340)
-#define NT_STATUS_LOGON_NOT_GRANTED (0xC0000000 | 341)
-#define NT_STATUS_TOO_MANY_SECRETS (0xC0000000 | 342)
-#define NT_STATUS_SECRET_TOO_LONG (0xC0000000 | 343)
-#define NT_STATUS_INTERNAL_DB_ERROR (0xC0000000 | 344)
-#define NT_STATUS_FULLSCREEN_MODE (0xC0000000 | 345)
-#define NT_STATUS_TOO_MANY_CONTEXT_IDS (0xC0000000 | 346)
-#define NT_STATUS_LOGON_TYPE_NOT_GRANTED (0xC0000000 | 347)
-#define NT_STATUS_NOT_REGISTRY_FILE (0xC0000000 | 348)
-#define NT_STATUS_NT_CROSS_ENCRYPTION_REQUIRED (0xC0000000 | 349)
-#define NT_STATUS_DOMAIN_CTRLR_CONFIG_ERROR (0xC0000000 | 350)
-#define NT_STATUS_FT_MISSING_MEMBER (0xC0000000 | 351)
-#define NT_STATUS_ILL_FORMED_SERVICE_ENTRY (0xC0000000 | 352)
-#define NT_STATUS_ILLEGAL_CHARACTER (0xC0000000 | 353)
-#define NT_STATUS_UNMAPPABLE_CHARACTER (0xC0000000 | 354)
-#define NT_STATUS_UNDEFINED_CHARACTER (0xC0000000 | 355)
-#define NT_STATUS_FLOPPY_VOLUME (0xC0000000 | 356)
-#define NT_STATUS_FLOPPY_ID_MARK_NOT_FOUND (0xC0000000 | 357)
-#define NT_STATUS_FLOPPY_WRONG_CYLINDER (0xC0000000 | 358)
-#define NT_STATUS_FLOPPY_UNKNOWN_ERROR (0xC0000000 | 359)
-#define NT_STATUS_FLOPPY_BAD_REGISTERS (0xC0000000 | 360)
-#define NT_STATUS_DISK_RECALIBRATE_FAILED (0xC0000000 | 361)
-#define NT_STATUS_DISK_OPERATION_FAILED (0xC0000000 | 362)
-#define NT_STATUS_DISK_RESET_FAILED (0xC0000000 | 363)
-#define NT_STATUS_SHARED_IRQ_BUSY (0xC0000000 | 364)
-#define NT_STATUS_FT_ORPHANING (0xC0000000 | 365)
-#define NT_STATUS_PARTITION_FAILURE (0xC0000000 | 370)
-#define NT_STATUS_INVALID_BLOCK_LENGTH (0xC0000000 | 371)
-#define NT_STATUS_DEVICE_NOT_PARTITIONED (0xC0000000 | 372)
-#define NT_STATUS_UNABLE_TO_LOCK_MEDIA (0xC0000000 | 373)
-#define NT_STATUS_UNABLE_TO_UNLOAD_MEDIA (0xC0000000 | 374)
-#define NT_STATUS_EOM_OVERFLOW (0xC0000000 | 375)
-#define NT_STATUS_NO_MEDIA (0xC0000000 | 376)
-#define NT_STATUS_NO_SUCH_MEMBER (0xC0000000 | 378)
-#define NT_STATUS_INVALID_MEMBER (0xC0000000 | 379)
-#define NT_STATUS_KEY_DELETED (0xC0000000 | 380)
-#define NT_STATUS_NO_LOG_SPACE (0xC0000000 | 381)
-#define NT_STATUS_TOO_MANY_SIDS (0xC0000000 | 382)
-#define NT_STATUS_LM_CROSS_ENCRYPTION_REQUIRED (0xC0000000 | 383)
-#define NT_STATUS_KEY_HAS_CHILDREN (0xC0000000 | 384)
-#define NT_STATUS_CHILD_MUST_BE_VOLATILE (0xC0000000 | 385)
-#define NT_STATUS_DEVICE_CONFIGURATION_ERROR (0xC0000000 | 386)
-#define NT_STATUS_DRIVER_INTERNAL_ERROR (0xC0000000 | 387)
-#define NT_STATUS_INVALID_DEVICE_STATE (0xC0000000 | 388)
-#define NT_STATUS_IO_DEVICE_ERROR (0xC0000000 | 389)
-#define NT_STATUS_DEVICE_PROTOCOL_ERROR (0xC0000000 | 390)
-#define NT_STATUS_BACKUP_CONTROLLER (0xC0000000 | 391)
-#define NT_STATUS_LOG_FILE_FULL (0xC0000000 | 392)
-#define NT_STATUS_TOO_LATE (0xC0000000 | 393)
-#define NT_STATUS_NO_TRUST_LSA_SECRET (0xC0000000 | 394)
-#define NT_STATUS_NO_TRUST_SAM_ACCOUNT (0xC0000000 | 395)
-#define NT_STATUS_TRUSTED_DOMAIN_FAILURE (0xC0000000 | 396)
-#define NT_STATUS_TRUSTED_RELATIONSHIP_FAILURE (0xC0000000 | 397)
-#define NT_STATUS_EVENTLOG_FILE_CORRUPT (0xC0000000 | 398)
-#define NT_STATUS_EVENTLOG_CANT_START (0xC0000000 | 399)
-#define NT_STATUS_TRUST_FAILURE (0xC0000000 | 400)
-#define NT_STATUS_MUTANT_LIMIT_EXCEEDED (0xC0000000 | 401)
-#define NT_STATUS_NETLOGON_NOT_STARTED (0xC0000000 | 402)
-#define NT_STATUS_ACCOUNT_EXPIRED (0xC0000000 | 403)
-#define NT_STATUS_POSSIBLE_DEADLOCK (0xC0000000 | 404)
-#define NT_STATUS_NETWORK_CREDENTIAL_CONFLICT (0xC0000000 | 405)
-#define NT_STATUS_REMOTE_SESSION_LIMIT (0xC0000000 | 406)
-#define NT_STATUS_EVENTLOG_FILE_CHANGED (0xC0000000 | 407)
-#define NT_STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT (0xC0000000 | 408)
-#define NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT (0xC0000000 | 409)
-#define NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT (0xC0000000 | 410)
-#define NT_STATUS_DOMAIN_TRUST_INCONSISTENT (0xC0000000 | 411)
-#define NT_STATUS_FS_DRIVER_REQUIRED (0xC0000000 | 412)
-#define NT_STATUS_NO_USER_SESSION_KEY (0xC0000000 | 514)
-#define NT_STATUS_USER_SESSION_DELETED (0xC0000000 | 515)
-#define NT_STATUS_RESOURCE_LANG_NOT_FOUND (0xC0000000 | 516)
-#define NT_STATUS_INSUFF_SERVER_RESOURCES (0xC0000000 | 517)
-#define NT_STATUS_INVALID_BUFFER_SIZE (0xC0000000 | 518)
-#define NT_STATUS_INVALID_ADDRESS_COMPONENT (0xC0000000 | 519)
-#define NT_STATUS_INVALID_ADDRESS_WILDCARD (0xC0000000 | 520)
-#define NT_STATUS_TOO_MANY_ADDRESSES (0xC0000000 | 521)
-#define NT_STATUS_ADDRESS_ALREADY_EXISTS (0xC0000000 | 522)
-#define NT_STATUS_ADDRESS_CLOSED (0xC0000000 | 523)
-#define NT_STATUS_CONNECTION_DISCONNECTED (0xC0000000 | 524)
-#define NT_STATUS_CONNECTION_RESET (0xC0000000 | 525)
-#define NT_STATUS_TOO_MANY_NODES (0xC0000000 | 526)
-#define NT_STATUS_TRANSACTION_ABORTED (0xC0000000 | 527)
-#define NT_STATUS_TRANSACTION_TIMED_OUT (0xC0000000 | 528)
-#define NT_STATUS_TRANSACTION_NO_RELEASE (0xC0000000 | 529)
-#define NT_STATUS_TRANSACTION_NO_MATCH (0xC0000000 | 530)
-#define NT_STATUS_TRANSACTION_RESPONDED (0xC0000000 | 531)
-#define NT_STATUS_TRANSACTION_INVALID_ID (0xC0000000 | 532)
-#define NT_STATUS_TRANSACTION_INVALID_TYPE (0xC0000000 | 533)
-#define NT_STATUS_NOT_SERVER_SESSION (0xC0000000 | 534)
-#define NT_STATUS_NOT_CLIENT_SESSION (0xC0000000 | 535)
-#define NT_STATUS_CANNOT_LOAD_REGISTRY_FILE (0xC0000000 | 536)
-#define NT_STATUS_DEBUG_ATTACH_FAILED (0xC0000000 | 537)
-#define NT_STATUS_SYSTEM_PROCESS_TERMINATED (0xC0000000 | 538)
-#define NT_STATUS_DATA_NOT_ACCEPTED (0xC0000000 | 539)
-#define NT_STATUS_NO_BROWSER_SERVERS_FOUND (0xC0000000 | 540)
-#define NT_STATUS_VDM_HARD_ERROR (0xC0000000 | 541)
-#define NT_STATUS_DRIVER_CANCEL_TIMEOUT (0xC0000000 | 542)
-#define NT_STATUS_REPLY_MESSAGE_MISMATCH (0xC0000000 | 543)
-#define NT_STATUS_MAPPED_ALIGNMENT (0xC0000000 | 544)
-#define NT_STATUS_IMAGE_CHECKSUM_MISMATCH (0xC0000000 | 545)
-#define NT_STATUS_LOST_WRITEBEHIND_DATA (0xC0000000 | 546)
-#define NT_STATUS_CLIENT_SERVER_PARAMETERS_INVALID (0xC0000000 | 547)
-#define NT_STATUS_PASSWORD_MUST_CHANGE (0xC0000000 | 548)
-#define NT_STATUS_NOT_FOUND (0xC0000000 | 549)
-#define NT_STATUS_NOT_TINY_STREAM (0xC0000000 | 550)
-#define NT_STATUS_RECOVERY_FAILURE (0xC0000000 | 551)
-#define NT_STATUS_STACK_OVERFLOW_READ (0xC0000000 | 552)
-#define NT_STATUS_FAIL_CHECK (0xC0000000 | 553)
-#define NT_STATUS_DUPLICATE_OBJECTID (0xC0000000 | 554)
-#define NT_STATUS_OBJECTID_EXISTS (0xC0000000 | 555)
-#define NT_STATUS_CONVERT_TO_LARGE (0xC0000000 | 556)
-#define NT_STATUS_RETRY (0xC0000000 | 557)
-#define NT_STATUS_FOUND_OUT_OF_SCOPE (0xC0000000 | 558)
-#define NT_STATUS_ALLOCATE_BUCKET (0xC0000000 | 559)
-#define NT_STATUS_PROPSET_NOT_FOUND (0xC0000000 | 560)
-#define NT_STATUS_MARSHALL_OVERFLOW (0xC0000000 | 561)
-#define NT_STATUS_INVALID_VARIANT (0xC0000000 | 562)
-#define NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND (0xC0000000 | 563)
-#define NT_STATUS_ACCOUNT_LOCKED_OUT (0xC0000000 | 564)
-#define NT_STATUS_HANDLE_NOT_CLOSABLE (0xC0000000 | 565)
-#define NT_STATUS_CONNECTION_REFUSED (0xC0000000 | 566)
-#define NT_STATUS_GRACEFUL_DISCONNECT (0xC0000000 | 567)
-#define NT_STATUS_ADDRESS_ALREADY_ASSOCIATED (0xC0000000 | 568)
-#define NT_STATUS_ADDRESS_NOT_ASSOCIATED (0xC0000000 | 569)
-#define NT_STATUS_CONNECTION_INVALID (0xC0000000 | 570)
-#define NT_STATUS_CONNECTION_ACTIVE (0xC0000000 | 571)
-#define NT_STATUS_NETWORK_UNREACHABLE (0xC0000000 | 572)
-#define NT_STATUS_HOST_UNREACHABLE (0xC0000000 | 573)
-#define NT_STATUS_PROTOCOL_UNREACHABLE (0xC0000000 | 574)
-#define NT_STATUS_PORT_UNREACHABLE (0xC0000000 | 575)
-#define NT_STATUS_REQUEST_ABORTED (0xC0000000 | 576)
-#define NT_STATUS_CONNECTION_ABORTED (0xC0000000 | 577)
-#define NT_STATUS_BAD_COMPRESSION_BUFFER (0xC0000000 | 578)
-#define NT_STATUS_USER_MAPPED_FILE (0xC0000000 | 579)
-#define NT_STATUS_AUDIT_FAILED (0xC0000000 | 580)
-#define NT_STATUS_TIMER_RESOLUTION_NOT_SET (0xC0000000 | 581)
-#define NT_STATUS_CONNECTION_COUNT_LIMIT (0xC0000000 | 582)
-#define NT_STATUS_LOGIN_TIME_RESTRICTION (0xC0000000 | 583)
-#define NT_STATUS_LOGIN_WKSTA_RESTRICTION (0xC0000000 | 584)
-#define NT_STATUS_IMAGE_MP_UP_MISMATCH (0xC0000000 | 585)
-#define NT_STATUS_INSUFFICIENT_LOGON_INFO (0xC0000000 | 592)
-#define NT_STATUS_BAD_DLL_ENTRYPOINT (0xC0000000 | 593)
-#define NT_STATUS_BAD_SERVICE_ENTRYPOINT (0xC0000000 | 594)
-#define NT_STATUS_LPC_REPLY_LOST (0xC0000000 | 595)
-#define NT_STATUS_IP_ADDRESS_CONFLICT1 (0xC0000000 | 596)
-#define NT_STATUS_IP_ADDRESS_CONFLICT2 (0xC0000000 | 597)
-#define NT_STATUS_REGISTRY_QUOTA_LIMIT (0xC0000000 | 598)
-#define NT_STATUS_PATH_NOT_COVERED (0xC0000000 | 599)
-#define NT_STATUS_NO_CALLBACK_ACTIVE (0xC0000000 | 600)
-#define NT_STATUS_LICENSE_QUOTA_EXCEEDED (0xC0000000 | 601)
-#define NT_STATUS_PWD_TOO_SHORT (0xC0000000 | 602)
-#define NT_STATUS_PWD_TOO_RECENT (0xC0000000 | 603)
-#define NT_STATUS_PWD_HISTORY_CONFLICT (0xC0000000 | 604)
-#define NT_STATUS_PLUGPLAY_NO_DEVICE (0xC0000000 | 606)
-#define NT_STATUS_UNSUPPORTED_COMPRESSION (0xC0000000 | 607)
-#define NT_STATUS_INVALID_HW_PROFILE (0xC0000000 | 608)
-#define NT_STATUS_INVALID_PLUGPLAY_DEVICE_PATH (0xC0000000 | 609)
-#define NT_STATUS_DRIVER_ORDINAL_NOT_FOUND (0xC0000000 | 610)
-#define NT_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND (0xC0000000 | 611)
-#define NT_STATUS_RESOURCE_NOT_OWNED (0xC0000000 | 612)
-#define NT_STATUS_TOO_MANY_LINKS (0xC0000000 | 613)
-#define NT_STATUS_QUOTA_LIST_INCONSISTENT (0xC0000000 | 614)
-#define NT_STATUS_FILE_IS_OFFLINE (0xC0000000 | 615)
-#define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE) /* scheduler */
+#define NT_STATUS_NOPROBLEMO NT_STATUS(0x0)
+#define NT_STATUS_OK NT_STATUS(0x0)
+#define NT_STATUS_UNSUCCESSFUL NT_STATUS(0xC0000000 | 1)
+#define NT_STATUS_NOT_IMPLEMENTED NT_STATUS(0xC0000000 | 2)
+#define NT_STATUS_INVALID_INFO_CLASS NT_STATUS(0xC0000000 | 3)
+#define NT_STATUS_INFO_LENGTH_MISMATCH NT_STATUS(0xC0000000 | 4)
+#define NT_STATUS_ACCESS_VIOLATION NT_STATUS(0xC0000000 | 5)
+#define NT_STATUS_IN_PAGE_ERROR NT_STATUS(0xC0000000 | 6)
+#define NT_STATUS_PAGEFILE_QUOTA NT_STATUS(0xC0000000 | 7)
+#define NT_STATUS_INVALID_HANDLE NT_STATUS(0xC0000000 | 8)
+#define NT_STATUS_BAD_INITIAL_STACK NT_STATUS(0xC0000000 | 9)
+#define NT_STATUS_BAD_INITIAL_PC NT_STATUS(0xC0000000 | 10)
+#define NT_STATUS_INVALID_CID NT_STATUS(0xC0000000 | 11)
+#define NT_STATUS_TIMER_NOT_CANCELED NT_STATUS(0xC0000000 | 12)
+#define NT_STATUS_INVALID_PARAMETER NT_STATUS(0xC0000000 | 13)
+#define NT_STATUS_NO_SUCH_DEVICE NT_STATUS(0xC0000000 | 14)
+#define NT_STATUS_NO_SUCH_FILE NT_STATUS(0xC0000000 | 15)
+#define NT_STATUS_INVALID_DEVICE_REQUEST NT_STATUS(0xC0000000 | 16)
+#define NT_STATUS_END_OF_FILE NT_STATUS(0xC0000000 | 17)
+#define NT_STATUS_WRONG_VOLUME NT_STATUS(0xC0000000 | 18)
+#define NT_STATUS_NO_MEDIA_IN_DEVICE NT_STATUS(0xC0000000 | 19)
+#define NT_STATUS_UNRECOGNIZED_MEDIA NT_STATUS(0xC0000000 | 20)
+#define NT_STATUS_NONEXISTENT_SECTOR NT_STATUS(0xC0000000 | 21)
+#define NT_STATUS_MORE_PROCESSING_REQUIRED NT_STATUS(0xC0000000 | 22)
+#define NT_STATUS_NO_MEMORY NT_STATUS(0xC0000000 | 23)
+#define NT_STATUS_CONFLICTING_ADDRESSES NT_STATUS(0xC0000000 | 24)
+#define NT_STATUS_NOT_MAPPED_VIEW NT_STATUS(0xC0000000 | 25)
+#define NT_STATUS_UNABLE_TO_FREE_VM NT_STATUS(0x80000000 | 26)
+#define NT_STATUS_UNABLE_TO_DELETE_SECTION NT_STATUS(0xC0000000 | 27)
+#define NT_STATUS_INVALID_SYSTEM_SERVICE NT_STATUS(0xC0000000 | 28)
+#define NT_STATUS_ILLEGAL_INSTRUCTION NT_STATUS(0xC0000000 | 29)
+#define NT_STATUS_INVALID_LOCK_SEQUENCE NT_STATUS(0xC0000000 | 30)
+#define NT_STATUS_INVALID_VIEW_SIZE NT_STATUS(0xC0000000 | 31)
+#define NT_STATUS_INVALID_FILE_FOR_SECTION NT_STATUS(0xC0000000 | 32)
+#define NT_STATUS_ALREADY_COMMITTED NT_STATUS(0xC0000000 | 33)
+#define NT_STATUS_ACCESS_DENIED NT_STATUS(0xC0000000 | 34)
+#define NT_STATUS_BUFFER_TOO_SMALL NT_STATUS(0xC0000000 | 35)
+#define NT_STATUS_OBJECT_TYPE_MISMATCH NT_STATUS(0xC0000000 | 36)
+#define NT_STATUS_NONCONTINUABLE_EXCEPTION NT_STATUS(0xC0000000 | 37)
+#define NT_STATUS_INVALID_DISPOSITION NT_STATUS(0xC0000000 | 38)
+#define NT_STATUS_UNWIND NT_STATUS(0xC0000000 | 39)
+#define NT_STATUS_BAD_STACK NT_STATUS(0xC0000000 | 40)
+#define NT_STATUS_INVALID_UNWIND_TARGET NT_STATUS(0xC0000000 | 41)
+#define NT_STATUS_NOT_LOCKED NT_STATUS(0xC0000000 | 42)
+#define NT_STATUS_PARITY_ERROR NT_STATUS(0xC0000000 | 43)
+#define NT_STATUS_UNABLE_TO_DECOMMIT_VM NT_STATUS(0xC0000000 | 44)
+#define NT_STATUS_NOT_COMMITTED NT_STATUS(0xC0000000 | 45)
+#define NT_STATUS_INVALID_PORT_ATTRIBUTES NT_STATUS(0xC0000000 | 46)
+#define NT_STATUS_PORT_MESSAGE_TOO_LONG NT_STATUS(0xC0000000 | 47)
+#define NT_STATUS_INVALID_PARAMETER_MIX NT_STATUS(0xC0000000 | 48)
+#define NT_STATUS_INVALID_QUOTA_LOWER NT_STATUS(0xC0000000 | 49)
+#define NT_STATUS_DISK_CORRUPT_ERROR NT_STATUS(0xC0000000 | 50)
+#define NT_STATUS_OBJECT_NAME_INVALID NT_STATUS(0xC0000000 | 51)
+#define NT_STATUS_OBJECT_NAME_NOT_FOUND NT_STATUS(0xC0000000 | 52)
+#define NT_STATUS_OBJECT_NAME_COLLISION NT_STATUS(0xC0000000 | 53)
+#define NT_STATUS_HANDLE_NOT_WAITABLE NT_STATUS(0xC0000000 | 54)
+#define NT_STATUS_PORT_DISCONNECTED NT_STATUS(0xC0000000 | 55)
+#define NT_STATUS_DEVICE_ALREADY_ATTACHED NT_STATUS(0xC0000000 | 56)
+#define NT_STATUS_OBJECT_PATH_INVALID NT_STATUS(0xC0000000 | 57)
+#define NT_STATUS_OBJECT_PATH_NOT_FOUND NT_STATUS(0xC0000000 | 58)
+#define NT_STATUS_OBJECT_PATH_SYNTAX_BAD NT_STATUS(0xC0000000 | 59)
+#define NT_STATUS_DATA_OVERRUN NT_STATUS(0xC0000000 | 60)
+#define NT_STATUS_DATA_LATE_ERROR NT_STATUS(0xC0000000 | 61)
+#define NT_STATUS_DATA_ERROR NT_STATUS(0xC0000000 | 62)
+#define NT_STATUS_CRC_ERROR NT_STATUS(0xC0000000 | 63)
+#define NT_STATUS_SECTION_TOO_BIG NT_STATUS(0xC0000000 | 64)
+#define NT_STATUS_PORT_CONNECTION_REFUSED NT_STATUS(0xC0000000 | 65)
+#define NT_STATUS_INVALID_PORT_HANDLE NT_STATUS(0xC0000000 | 66)
+#define NT_STATUS_SHARING_VIOLATION NT_STATUS(0xC0000000 | 67)
+#define NT_STATUS_QUOTA_EXCEEDED NT_STATUS(0xC0000000 | 68)
+#define NT_STATUS_INVALID_PAGE_PROTECTION NT_STATUS(0xC0000000 | 69)
+#define NT_STATUS_MUTANT_NOT_OWNED NT_STATUS(0xC0000000 | 70)
+#define NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED NT_STATUS(0xC0000000 | 71)
+#define NT_STATUS_PORT_ALREADY_SET NT_STATUS(0xC0000000 | 72)
+#define NT_STATUS_SECTION_NOT_IMAGE NT_STATUS(0xC0000000 | 73)
+#define NT_STATUS_SUSPEND_COUNT_EXCEEDED NT_STATUS(0xC0000000 | 74)
+#define NT_STATUS_THREAD_IS_TERMINATING NT_STATUS(0xC0000000 | 75)
+#define NT_STATUS_BAD_WORKING_SET_LIMIT NT_STATUS(0xC0000000 | 76)
+#define NT_STATUS_INCOMPATIBLE_FILE_MAP NT_STATUS(0xC0000000 | 77)
+#define NT_STATUS_SECTION_PROTECTION NT_STATUS(0xC0000000 | 78)
+#define NT_STATUS_EAS_NOT_SUPPORTED NT_STATUS(0xC0000000 | 79)
+#define NT_STATUS_EA_TOO_LARGE NT_STATUS(0xC0000000 | 80)
+#define NT_STATUS_NONEXISTENT_EA_ENTRY NT_STATUS(0xC0000000 | 81)
+#define NT_STATUS_NO_EAS_ON_FILE NT_STATUS(0xC0000000 | 82)
+#define NT_STATUS_EA_CORRUPT_ERROR NT_STATUS(0xC0000000 | 83)
+#define NT_STATUS_FILE_LOCK_CONFLICT NT_STATUS(0xC0000000 | 84)
+#define NT_STATUS_LOCK_NOT_GRANTED NT_STATUS(0xC0000000 | 85)
+#define NT_STATUS_DELETE_PENDING NT_STATUS(0xC0000000 | 86)
+#define NT_STATUS_CTL_FILE_NOT_SUPPORTED NT_STATUS(0xC0000000 | 87)
+#define NT_STATUS_UNKNOWN_REVISION NT_STATUS(0xC0000000 | 88)
+#define NT_STATUS_REVISION_MISMATCH NT_STATUS(0xC0000000 | 89)
+#define NT_STATUS_INVALID_OWNER NT_STATUS(0xC0000000 | 90)
+#define NT_STATUS_INVALID_PRIMARY_GROUP NT_STATUS(0xC0000000 | 91)
+#define NT_STATUS_NO_IMPERSONATION_TOKEN NT_STATUS(0xC0000000 | 92)
+#define NT_STATUS_CANT_DISABLE_MANDATORY NT_STATUS(0xC0000000 | 93)
+#define NT_STATUS_NO_LOGON_SERVERS NT_STATUS(0xC0000000 | 94)
+#define NT_STATUS_NO_SUCH_LOGON_SESSION NT_STATUS(0xC0000000 | 95)
+#define NT_STATUS_NO_SUCH_PRIVILEGE NT_STATUS(0xC0000000 | 96)
+#define NT_STATUS_PRIVILEGE_NOT_HELD NT_STATUS(0xC0000000 | 97)
+#define NT_STATUS_INVALID_ACCOUNT_NAME NT_STATUS(0xC0000000 | 98)
+#define NT_STATUS_USER_EXISTS NT_STATUS(0xC0000000 | 99)
+#define NT_STATUS_NO_SUCH_USER NT_STATUS(0xC0000000 | 100)
+#define NT_STATUS_GROUP_EXISTS NT_STATUS(0xC0000000 | 101)
+#define NT_STATUS_NO_SUCH_GROUP NT_STATUS(0xC0000000 | 102)
+#define NT_STATUS_MEMBER_IN_GROUP NT_STATUS(0xC0000000 | 103)
+#define NT_STATUS_MEMBER_NOT_IN_GROUP NT_STATUS(0xC0000000 | 104)
+#define NT_STATUS_LAST_ADMIN NT_STATUS(0xC0000000 | 105)
+#define NT_STATUS_WRONG_PASSWORD NT_STATUS(0xC0000000 | 106)
+#define NT_STATUS_ILL_FORMED_PASSWORD NT_STATUS(0xC0000000 | 107)
+#define NT_STATUS_PASSWORD_RESTRICTION NT_STATUS(0xC0000000 | 108)
+#define NT_STATUS_LOGON_FAILURE NT_STATUS(0xC0000000 | 109)
+#define NT_STATUS_ACCOUNT_RESTRICTION NT_STATUS(0xC0000000 | 110)
+#define NT_STATUS_INVALID_LOGON_HOURS NT_STATUS(0xC0000000 | 111)
+#define NT_STATUS_INVALID_WORKSTATION NT_STATUS(0xC0000000 | 112)
+#define NT_STATUS_PASSWORD_EXPIRED NT_STATUS(0xC0000000 | 113)
+#define NT_STATUS_ACCOUNT_DISABLED NT_STATUS(0xC0000000 | 114)
+#define NT_STATUS_NONE_MAPPED NT_STATUS(0xC0000000 | 115)
+#define NT_STATUS_TOO_MANY_LUIDS_REQUESTED NT_STATUS(0xC0000000 | 116)
+#define NT_STATUS_LUIDS_EXHAUSTED NT_STATUS(0xC0000000 | 117)
+#define NT_STATUS_INVALID_SUB_AUTHORITY NT_STATUS(0xC0000000 | 118)
+#define NT_STATUS_INVALID_ACL NT_STATUS(0xC0000000 | 119)
+#define NT_STATUS_INVALID_SID NT_STATUS(0xC0000000 | 120)
+#define NT_STATUS_INVALID_SECURITY_DESCR NT_STATUS(0xC0000000 | 121)
+#define NT_STATUS_PROCEDURE_NOT_FOUND NT_STATUS(0xC0000000 | 122)
+#define NT_STATUS_INVALID_IMAGE_FORMAT NT_STATUS(0xC0000000 | 123)
+#define NT_STATUS_NO_TOKEN NT_STATUS(0xC0000000 | 124)
+#define NT_STATUS_BAD_INHERITANCE_ACL NT_STATUS(0xC0000000 | 125)
+#define NT_STATUS_RANGE_NOT_LOCKED NT_STATUS(0xC0000000 | 126)
+#define NT_STATUS_DISK_FULL NT_STATUS(0xC0000000 | 127)
+#define NT_STATUS_SERVER_DISABLED NT_STATUS(0xC0000000 | 128)
+#define NT_STATUS_SERVER_NOT_DISABLED NT_STATUS(0xC0000000 | 129)
+#define NT_STATUS_TOO_MANY_GUIDS_REQUESTED NT_STATUS(0xC0000000 | 130)
+#define NT_STATUS_GUIDS_EXHAUSTED NT_STATUS(0xC0000000 | 131)
+#define NT_STATUS_INVALID_ID_AUTHORITY NT_STATUS(0xC0000000 | 132)
+#define NT_STATUS_AGENTS_EXHAUSTED NT_STATUS(0xC0000000 | 133)
+#define NT_STATUS_INVALID_VOLUME_LABEL NT_STATUS(0xC0000000 | 134)
+#define NT_STATUS_SECTION_NOT_EXTENDED NT_STATUS(0xC0000000 | 135)
+#define NT_STATUS_NOT_MAPPED_DATA NT_STATUS(0xC0000000 | 136)
+#define NT_STATUS_RESOURCE_DATA_NOT_FOUND NT_STATUS(0xC0000000 | 137)
+#define NT_STATUS_RESOURCE_TYPE_NOT_FOUND NT_STATUS(0xC0000000 | 138)
+#define NT_STATUS_RESOURCE_NAME_NOT_FOUND NT_STATUS(0xC0000000 | 139)
+#define NT_STATUS_ARRAY_BOUNDS_EXCEEDED NT_STATUS(0xC0000000 | 140)
+#define NT_STATUS_FLOAT_DENORMAL_OPERAND NT_STATUS(0xC0000000 | 141)
+#define NT_STATUS_FLOAT_DIVIDE_BY_ZERO NT_STATUS(0xC0000000 | 142)
+#define NT_STATUS_FLOAT_INEXACT_RESULT NT_STATUS(0xC0000000 | 143)
+#define NT_STATUS_FLOAT_INVALID_OPERATION NT_STATUS(0xC0000000 | 144)
+#define NT_STATUS_FLOAT_OVERFLOW NT_STATUS(0xC0000000 | 145)
+#define NT_STATUS_FLOAT_STACK_CHECK NT_STATUS(0xC0000000 | 146)
+#define NT_STATUS_FLOAT_UNDERFLOW NT_STATUS(0xC0000000 | 147)
+#define NT_STATUS_INTEGER_DIVIDE_BY_ZERO NT_STATUS(0xC0000000 | 148)
+#define NT_STATUS_INTEGER_OVERFLOW NT_STATUS(0xC0000000 | 149)
+#define NT_STATUS_PRIVILEGED_INSTRUCTION NT_STATUS(0xC0000000 | 150)
+#define NT_STATUS_TOO_MANY_PAGING_FILES NT_STATUS(0xC0000000 | 151)
+#define NT_STATUS_FILE_INVALID NT_STATUS(0xC0000000 | 152)
+#define NT_STATUS_ALLOTTED_SPACE_EXCEEDED NT_STATUS(0xC0000000 | 153)
+#define NT_STATUS_INSUFFICIENT_RESOURCES NT_STATUS(0xC0000000 | 154)
+#define NT_STATUS_DFS_EXIT_PATH_FOUND NT_STATUS(0xC0000000 | 155)
+#define NT_STATUS_DEVICE_DATA_ERROR NT_STATUS(0xC0000000 | 156)
+#define NT_STATUS_DEVICE_NOT_CONNECTED NT_STATUS(0xC0000000 | 157)
+#define NT_STATUS_DEVICE_POWER_FAILURE NT_STATUS(0xC0000000 | 158)
+#define NT_STATUS_FREE_VM_NOT_AT_BASE NT_STATUS(0xC0000000 | 159)
+#define NT_STATUS_MEMORY_NOT_ALLOCATED NT_STATUS(0xC0000000 | 160)
+#define NT_STATUS_WORKING_SET_QUOTA NT_STATUS(0xC0000000 | 161)
+#define NT_STATUS_MEDIA_WRITE_PROTECTED NT_STATUS(0xC0000000 | 162)
+#define NT_STATUS_DEVICE_NOT_READY NT_STATUS(0xC0000000 | 163)
+#define NT_STATUS_INVALID_GROUP_ATTRIBUTES NT_STATUS(0xC0000000 | 164)
+#define NT_STATUS_BAD_IMPERSONATION_LEVEL NT_STATUS(0xC0000000 | 165)
+#define NT_STATUS_CANT_OPEN_ANONYMOUS NT_STATUS(0xC0000000 | 166)
+#define NT_STATUS_BAD_VALIDATION_CLASS NT_STATUS(0xC0000000 | 167)
+#define NT_STATUS_BAD_TOKEN_TYPE NT_STATUS(0xC0000000 | 168)
+#define NT_STATUS_BAD_MASTER_BOOT_RECORD NT_STATUS(0xC0000000 | 169)
+#define NT_STATUS_INSTRUCTION_MISALIGNMENT NT_STATUS(0xC0000000 | 170)
+#define NT_STATUS_INSTANCE_NOT_AVAILABLE NT_STATUS(0xC0000000 | 171)
+#define NT_STATUS_PIPE_NOT_AVAILABLE NT_STATUS(0xC0000000 | 172)
+#define NT_STATUS_INVALID_PIPE_STATE NT_STATUS(0xC0000000 | 173)
+#define NT_STATUS_PIPE_BUSY NT_STATUS(0xC0000000 | 174)
+#define NT_STATUS_ILLEGAL_FUNCTION NT_STATUS(0xC0000000 | 175)
+#define NT_STATUS_PIPE_DISCONNECTED NT_STATUS(0xC0000000 | 176)
+#define NT_STATUS_PIPE_CLOSING NT_STATUS(0xC0000000 | 177)
+#define NT_STATUS_PIPE_CONNECTED NT_STATUS(0xC0000000 | 178)
+#define NT_STATUS_PIPE_LISTENING NT_STATUS(0xC0000000 | 179)
+#define NT_STATUS_INVALID_READ_MODE NT_STATUS(0xC0000000 | 180)
+#define NT_STATUS_IO_TIMEOUT NT_STATUS(0xC0000000 | 181)
+#define NT_STATUS_FILE_FORCED_CLOSED NT_STATUS(0xC0000000 | 182)
+#define NT_STATUS_PROFILING_NOT_STARTED NT_STATUS(0xC0000000 | 183)
+#define NT_STATUS_PROFILING_NOT_STOPPED NT_STATUS(0xC0000000 | 184)
+#define NT_STATUS_COULD_NOT_INTERPRET NT_STATUS(0xC0000000 | 185)
+#define NT_STATUS_FILE_IS_A_DIRECTORY NT_STATUS(0xC0000000 | 186)
+#define NT_STATUS_NOT_SUPPORTED NT_STATUS(0xC0000000 | 187)
+#define NT_STATUS_REMOTE_NOT_LISTENING NT_STATUS(0xC0000000 | 188)
+#define NT_STATUS_DUPLICATE_NAME NT_STATUS(0xC0000000 | 189)
+#define NT_STATUS_BAD_NETWORK_PATH NT_STATUS(0xC0000000 | 190)
+#define NT_STATUS_NETWORK_BUSY NT_STATUS(0xC0000000 | 191)
+#define NT_STATUS_DEVICE_DOES_NOT_EXIST NT_STATUS(0xC0000000 | 192)
+#define NT_STATUS_TOO_MANY_COMMANDS NT_STATUS(0xC0000000 | 193)
+#define NT_STATUS_ADAPTER_HARDWARE_ERROR NT_STATUS(0xC0000000 | 194)
+#define NT_STATUS_INVALID_NETWORK_RESPONSE NT_STATUS(0xC0000000 | 195)
+#define NT_STATUS_UNEXPECTED_NETWORK_ERROR NT_STATUS(0xC0000000 | 196)
+#define NT_STATUS_BAD_REMOTE_ADAPTER NT_STATUS(0xC0000000 | 197)
+#define NT_STATUS_PRINT_QUEUE_FULL NT_STATUS(0xC0000000 | 198)
+#define NT_STATUS_NO_SPOOL_SPACE NT_STATUS(0xC0000000 | 199)
+#define NT_STATUS_PRINT_CANCELLED NT_STATUS(0xC0000000 | 200)
+#define NT_STATUS_NETWORK_NAME_DELETED NT_STATUS(0xC0000000 | 201)
+#define NT_STATUS_NETWORK_ACCESS_DENIED NT_STATUS(0xC0000000 | 202)
+#define NT_STATUS_BAD_DEVICE_TYPE NT_STATUS(0xC0000000 | 203)
+#define NT_STATUS_BAD_NETWORK_NAME NT_STATUS(0xC0000000 | 204)
+#define NT_STATUS_TOO_MANY_NAMES NT_STATUS(0xC0000000 | 205)
+#define NT_STATUS_TOO_MANY_SESSIONS NT_STATUS(0xC0000000 | 206)
+#define NT_STATUS_SHARING_PAUSED NT_STATUS(0xC0000000 | 207)
+#define NT_STATUS_REQUEST_NOT_ACCEPTED NT_STATUS(0xC0000000 | 208)
+#define NT_STATUS_REDIRECTOR_PAUSED NT_STATUS(0xC0000000 | 209)
+#define NT_STATUS_NET_WRITE_FAULT NT_STATUS(0xC0000000 | 210)
+#define NT_STATUS_PROFILING_AT_LIMIT NT_STATUS(0xC0000000 | 211)
+#define NT_STATUS_NOT_SAME_DEVICE NT_STATUS(0xC0000000 | 212)
+#define NT_STATUS_FILE_RENAMED NT_STATUS(0xC0000000 | 213)
+#define NT_STATUS_VIRTUAL_CIRCUIT_CLOSED NT_STATUS(0xC0000000 | 214)
+#define NT_STATUS_NO_SECURITY_ON_OBJECT NT_STATUS(0xC0000000 | 215)
+#define NT_STATUS_CANT_WAIT NT_STATUS(0xC0000000 | 216)
+#define NT_STATUS_PIPE_EMPTY NT_STATUS(0xC0000000 | 217)
+#define NT_STATUS_CANT_ACCESS_DOMAIN_INFO NT_STATUS(0xC0000000 | 218)
+#define NT_STATUS_CANT_TERMINATE_SELF NT_STATUS(0xC0000000 | 219)
+#define NT_STATUS_INVALID_SERVER_STATE NT_STATUS(0xC0000000 | 220)
+#define NT_STATUS_INVALID_DOMAIN_STATE NT_STATUS(0xC0000000 | 221)
+#define NT_STATUS_INVALID_DOMAIN_ROLE NT_STATUS(0xC0000000 | 222)
+#define NT_STATUS_NO_SUCH_DOMAIN NT_STATUS(0xC0000000 | 223)
+#define NT_STATUS_DOMAIN_EXISTS NT_STATUS(0xC0000000 | 224)
+#define NT_STATUS_DOMAIN_LIMIT_EXCEEDED NT_STATUS(0xC0000000 | 225)
+#define NT_STATUS_OPLOCK_NOT_GRANTED NT_STATUS(0xC0000000 | 226)
+#define NT_STATUS_INVALID_OPLOCK_PROTOCOL NT_STATUS(0xC0000000 | 227)
+#define NT_STATUS_INTERNAL_DB_CORRUPTION NT_STATUS(0xC0000000 | 228)
+#define NT_STATUS_INTERNAL_ERROR NT_STATUS(0xC0000000 | 229)
+#define NT_STATUS_GENERIC_NOT_MAPPED NT_STATUS(0xC0000000 | 230)
+#define NT_STATUS_BAD_DESCRIPTOR_FORMAT NT_STATUS(0xC0000000 | 231)
+#define NT_STATUS_INVALID_USER_BUFFER NT_STATUS(0xC0000000 | 232)
+#define NT_STATUS_UNEXPECTED_IO_ERROR NT_STATUS(0xC0000000 | 233)
+#define NT_STATUS_UNEXPECTED_MM_CREATE_ERR NT_STATUS(0xC0000000 | 234)
+#define NT_STATUS_UNEXPECTED_MM_MAP_ERROR NT_STATUS(0xC0000000 | 235)
+#define NT_STATUS_UNEXPECTED_MM_EXTEND_ERR NT_STATUS(0xC0000000 | 236)
+#define NT_STATUS_NOT_LOGON_PROCESS NT_STATUS(0xC0000000 | 237)
+#define NT_STATUS_LOGON_SESSION_EXISTS NT_STATUS(0xC0000000 | 238)
+#define NT_STATUS_INVALID_PARAMETER_1 NT_STATUS(0xC0000000 | 239)
+#define NT_STATUS_INVALID_PARAMETER_2 NT_STATUS(0xC0000000 | 240)
+#define NT_STATUS_INVALID_PARAMETER_3 NT_STATUS(0xC0000000 | 241)
+#define NT_STATUS_INVALID_PARAMETER_4 NT_STATUS(0xC0000000 | 242)
+#define NT_STATUS_INVALID_PARAMETER_5 NT_STATUS(0xC0000000 | 243)
+#define NT_STATUS_INVALID_PARAMETER_6 NT_STATUS(0xC0000000 | 244)
+#define NT_STATUS_INVALID_PARAMETER_7 NT_STATUS(0xC0000000 | 245)
+#define NT_STATUS_INVALID_PARAMETER_8 NT_STATUS(0xC0000000 | 246)
+#define NT_STATUS_INVALID_PARAMETER_9 NT_STATUS(0xC0000000 | 247)
+#define NT_STATUS_INVALID_PARAMETER_10 NT_STATUS(0xC0000000 | 248)
+#define NT_STATUS_INVALID_PARAMETER_11 NT_STATUS(0xC0000000 | 249)
+#define NT_STATUS_INVALID_PARAMETER_12 NT_STATUS(0xC0000000 | 250)
+#define NT_STATUS_REDIRECTOR_NOT_STARTED NT_STATUS(0xC0000000 | 251)
+#define NT_STATUS_REDIRECTOR_STARTED NT_STATUS(0xC0000000 | 252)
+#define NT_STATUS_STACK_OVERFLOW NT_STATUS(0xC0000000 | 253)
+#define NT_STATUS_NO_SUCH_PACKAGE NT_STATUS(0xC0000000 | 254)
+#define NT_STATUS_BAD_FUNCTION_TABLE NT_STATUS(0xC0000000 | 255)
+#define NT_STATUS_DIRECTORY_NOT_EMPTY NT_STATUS(0xC0000000 | 257)
+#define NT_STATUS_FILE_CORRUPT_ERROR NT_STATUS(0xC0000000 | 258)
+#define NT_STATUS_NOT_A_DIRECTORY NT_STATUS(0xC0000000 | 259)
+#define NT_STATUS_BAD_LOGON_SESSION_STATE NT_STATUS(0xC0000000 | 260)
+#define NT_STATUS_LOGON_SESSION_COLLISION NT_STATUS(0xC0000000 | 261)
+#define NT_STATUS_NAME_TOO_LONG NT_STATUS(0xC0000000 | 262)
+#define NT_STATUS_FILES_OPEN NT_STATUS(0xC0000000 | 263)
+#define NT_STATUS_CONNECTION_IN_USE NT_STATUS(0xC0000000 | 264)
+#define NT_STATUS_MESSAGE_NOT_FOUND NT_STATUS(0xC0000000 | 265)
+#define NT_STATUS_PROCESS_IS_TERMINATING NT_STATUS(0xC0000000 | 266)
+#define NT_STATUS_INVALID_LOGON_TYPE NT_STATUS(0xC0000000 | 267)
+#define NT_STATUS_NO_GUID_TRANSLATION NT_STATUS(0xC0000000 | 268)
+#define NT_STATUS_CANNOT_IMPERSONATE NT_STATUS(0xC0000000 | 269)
+#define NT_STATUS_IMAGE_ALREADY_LOADED NT_STATUS(0xC0000000 | 270)
+#define NT_STATUS_ABIOS_NOT_PRESENT NT_STATUS(0xC0000000 | 271)
+#define NT_STATUS_ABIOS_LID_NOT_EXIST NT_STATUS(0xC0000000 | 272)
+#define NT_STATUS_ABIOS_LID_ALREADY_OWNED NT_STATUS(0xC0000000 | 273)
+#define NT_STATUS_ABIOS_NOT_LID_OWNER NT_STATUS(0xC0000000 | 274)
+#define NT_STATUS_ABIOS_INVALID_COMMAND NT_STATUS(0xC0000000 | 275)
+#define NT_STATUS_ABIOS_INVALID_LID NT_STATUS(0xC0000000 | 276)
+#define NT_STATUS_ABIOS_SELECTOR_NOT_AVAILABLE NT_STATUS(0xC0000000 | 277)
+#define NT_STATUS_ABIOS_INVALID_SELECTOR NT_STATUS(0xC0000000 | 278)
+#define NT_STATUS_NO_LDT NT_STATUS(0xC0000000 | 279)
+#define NT_STATUS_INVALID_LDT_SIZE NT_STATUS(0xC0000000 | 280)
+#define NT_STATUS_INVALID_LDT_OFFSET NT_STATUS(0xC0000000 | 281)
+#define NT_STATUS_INVALID_LDT_DESCRIPTOR NT_STATUS(0xC0000000 | 282)
+#define NT_STATUS_INVALID_IMAGE_NE_FORMAT NT_STATUS(0xC0000000 | 283)
+#define NT_STATUS_RXACT_INVALID_STATE NT_STATUS(0xC0000000 | 284)
+#define NT_STATUS_RXACT_COMMIT_FAILURE NT_STATUS(0xC0000000 | 285)
+#define NT_STATUS_MAPPED_FILE_SIZE_ZERO NT_STATUS(0xC0000000 | 286)
+#define NT_STATUS_TOO_MANY_OPENED_FILES NT_STATUS(0xC0000000 | 287)
+#define NT_STATUS_CANCELLED NT_STATUS(0xC0000000 | 288)
+#define NT_STATUS_CANNOT_DELETE NT_STATUS(0xC0000000 | 289)
+#define NT_STATUS_INVALID_COMPUTER_NAME NT_STATUS(0xC0000000 | 290)
+#define NT_STATUS_FILE_DELETED NT_STATUS(0xC0000000 | 291)
+#define NT_STATUS_SPECIAL_ACCOUNT NT_STATUS(0xC0000000 | 292)
+#define NT_STATUS_SPECIAL_GROUP NT_STATUS(0xC0000000 | 293)
+#define NT_STATUS_SPECIAL_USER NT_STATUS(0xC0000000 | 294)
+#define NT_STATUS_MEMBERS_PRIMARY_GROUP NT_STATUS(0xC0000000 | 295)
+#define NT_STATUS_FILE_CLOSED NT_STATUS(0xC0000000 | 296)
+#define NT_STATUS_TOO_MANY_THREADS NT_STATUS(0xC0000000 | 297)
+#define NT_STATUS_THREAD_NOT_IN_PROCESS NT_STATUS(0xC0000000 | 298)
+#define NT_STATUS_TOKEN_ALREADY_IN_USE NT_STATUS(0xC0000000 | 299)
+#define NT_STATUS_PAGEFILE_QUOTA_EXCEEDED NT_STATUS(0xC0000000 | 300)
+#define NT_STATUS_COMMITMENT_LIMIT NT_STATUS(0xC0000000 | 301)
+#define NT_STATUS_INVALID_IMAGE_LE_FORMAT NT_STATUS(0xC0000000 | 302)
+#define NT_STATUS_INVALID_IMAGE_NOT_MZ NT_STATUS(0xC0000000 | 303)
+#define NT_STATUS_INVALID_IMAGE_PROTECT NT_STATUS(0xC0000000 | 304)
+#define NT_STATUS_INVALID_IMAGE_WIN_16 NT_STATUS(0xC0000000 | 305)
+#define NT_STATUS_LOGON_SERVER_CONFLICT NT_STATUS(0xC0000000 | 306)
+#define NT_STATUS_TIME_DIFFERENCE_AT_DC NT_STATUS(0xC0000000 | 307)
+#define NT_STATUS_SYNCHRONIZATION_REQUIRED NT_STATUS(0xC0000000 | 308)
+#define NT_STATUS_DLL_NOT_FOUND NT_STATUS(0xC0000000 | 309)
+#define NT_STATUS_OPEN_FAILED NT_STATUS(0xC0000000 | 310)
+#define NT_STATUS_IO_PRIVILEGE_FAILED NT_STATUS(0xC0000000 | 311)
+#define NT_STATUS_ORDINAL_NOT_FOUND NT_STATUS(0xC0000000 | 312)
+#define NT_STATUS_ENTRYPOINT_NOT_FOUND NT_STATUS(0xC0000000 | 313)
+#define NT_STATUS_CONTROL_C_EXIT NT_STATUS(0xC0000000 | 314)
+#define NT_STATUS_LOCAL_DISCONNECT NT_STATUS(0xC0000000 | 315)
+#define NT_STATUS_REMOTE_DISCONNECT NT_STATUS(0xC0000000 | 316)
+#define NT_STATUS_REMOTE_RESOURCES NT_STATUS(0xC0000000 | 317)
+#define NT_STATUS_LINK_FAILED NT_STATUS(0xC0000000 | 318)
+#define NT_STATUS_LINK_TIMEOUT NT_STATUS(0xC0000000 | 319)
+#define NT_STATUS_INVALID_CONNECTION NT_STATUS(0xC0000000 | 320)
+#define NT_STATUS_INVALID_ADDRESS NT_STATUS(0xC0000000 | 321)
+#define NT_STATUS_DLL_INIT_FAILED NT_STATUS(0xC0000000 | 322)
+#define NT_STATUS_MISSING_SYSTEMFILE NT_STATUS(0xC0000000 | 323)
+#define NT_STATUS_UNHANDLED_EXCEPTION NT_STATUS(0xC0000000 | 324)
+#define NT_STATUS_APP_INIT_FAILURE NT_STATUS(0xC0000000 | 325)
+#define NT_STATUS_PAGEFILE_CREATE_FAILED NT_STATUS(0xC0000000 | 326)
+#define NT_STATUS_NO_PAGEFILE NT_STATUS(0xC0000000 | 327)
+#define NT_STATUS_INVALID_LEVEL NT_STATUS(0xC0000000 | 328)
+#define NT_STATUS_WRONG_PASSWORD_CORE NT_STATUS(0xC0000000 | 329)
+#define NT_STATUS_ILLEGAL_FLOAT_CONTEXT NT_STATUS(0xC0000000 | 330)
+#define NT_STATUS_PIPE_BROKEN NT_STATUS(0xC0000000 | 331)
+#define NT_STATUS_REGISTRY_CORRUPT NT_STATUS(0xC0000000 | 332)
+#define NT_STATUS_REGISTRY_IO_FAILED NT_STATUS(0xC0000000 | 333)
+#define NT_STATUS_NO_EVENT_PAIR NT_STATUS(0xC0000000 | 334)
+#define NT_STATUS_UNRECOGNIZED_VOLUME NT_STATUS(0xC0000000 | 335)
+#define NT_STATUS_SERIAL_NO_DEVICE_INITED NT_STATUS(0xC0000000 | 336)
+#define NT_STATUS_NO_SUCH_ALIAS NT_STATUS(0xC0000000 | 337)
+#define NT_STATUS_MEMBER_NOT_IN_ALIAS NT_STATUS(0xC0000000 | 338)
+#define NT_STATUS_MEMBER_IN_ALIAS NT_STATUS(0xC0000000 | 339)
+#define NT_STATUS_ALIAS_EXISTS NT_STATUS(0xC0000000 | 340)
+#define NT_STATUS_LOGON_NOT_GRANTED NT_STATUS(0xC0000000 | 341)
+#define NT_STATUS_TOO_MANY_SECRETS NT_STATUS(0xC0000000 | 342)
+#define NT_STATUS_SECRET_TOO_LONG NT_STATUS(0xC0000000 | 343)
+#define NT_STATUS_INTERNAL_DB_ERROR NT_STATUS(0xC0000000 | 344)
+#define NT_STATUS_FULLSCREEN_MODE NT_STATUS(0xC0000000 | 345)
+#define NT_STATUS_TOO_MANY_CONTEXT_IDS NT_STATUS(0xC0000000 | 346)
+#define NT_STATUS_LOGON_TYPE_NOT_GRANTED NT_STATUS(0xC0000000 | 347)
+#define NT_STATUS_NOT_REGISTRY_FILE NT_STATUS(0xC0000000 | 348)
+#define NT_STATUS_NT_CROSS_ENCRYPTION_REQUIRED NT_STATUS(0xC0000000 | 349)
+#define NT_STATUS_DOMAIN_CTRLR_CONFIG_ERROR NT_STATUS(0xC0000000 | 350)
+#define NT_STATUS_FT_MISSING_MEMBER NT_STATUS(0xC0000000 | 351)
+#define NT_STATUS_ILL_FORMED_SERVICE_ENTRY NT_STATUS(0xC0000000 | 352)
+#define NT_STATUS_ILLEGAL_CHARACTER NT_STATUS(0xC0000000 | 353)
+#define NT_STATUS_UNMAPPABLE_CHARACTER NT_STATUS(0xC0000000 | 354)
+#define NT_STATUS_UNDEFINED_CHARACTER NT_STATUS(0xC0000000 | 355)
+#define NT_STATUS_FLOPPY_VOLUME NT_STATUS(0xC0000000 | 356)
+#define NT_STATUS_FLOPPY_ID_MARK_NOT_FOUND NT_STATUS(0xC0000000 | 357)
+#define NT_STATUS_FLOPPY_WRONG_CYLINDER NT_STATUS(0xC0000000 | 358)
+#define NT_STATUS_FLOPPY_UNKNOWN_ERROR NT_STATUS(0xC0000000 | 359)
+#define NT_STATUS_FLOPPY_BAD_REGISTERS NT_STATUS(0xC0000000 | 360)
+#define NT_STATUS_DISK_RECALIBRATE_FAILED NT_STATUS(0xC0000000 | 361)
+#define NT_STATUS_DISK_OPERATION_FAILED NT_STATUS(0xC0000000 | 362)
+#define NT_STATUS_DISK_RESET_FAILED NT_STATUS(0xC0000000 | 363)
+#define NT_STATUS_SHARED_IRQ_BUSY NT_STATUS(0xC0000000 | 364)
+#define NT_STATUS_FT_ORPHANING NT_STATUS(0xC0000000 | 365)
+#define NT_STATUS_PARTITION_FAILURE NT_STATUS(0xC0000000 | 370)
+#define NT_STATUS_INVALID_BLOCK_LENGTH NT_STATUS(0xC0000000 | 371)
+#define NT_STATUS_DEVICE_NOT_PARTITIONED NT_STATUS(0xC0000000 | 372)
+#define NT_STATUS_UNABLE_TO_LOCK_MEDIA NT_STATUS(0xC0000000 | 373)
+#define NT_STATUS_UNABLE_TO_UNLOAD_MEDIA NT_STATUS(0xC0000000 | 374)
+#define NT_STATUS_EOM_OVERFLOW NT_STATUS(0xC0000000 | 375)
+#define NT_STATUS_NO_MEDIA NT_STATUS(0xC0000000 | 376)
+#define NT_STATUS_NO_SUCH_MEMBER NT_STATUS(0xC0000000 | 378)
+#define NT_STATUS_INVALID_MEMBER NT_STATUS(0xC0000000 | 379)
+#define NT_STATUS_KEY_DELETED NT_STATUS(0xC0000000 | 380)
+#define NT_STATUS_NO_LOG_SPACE NT_STATUS(0xC0000000 | 381)
+#define NT_STATUS_TOO_MANY_SIDS NT_STATUS(0xC0000000 | 382)
+#define NT_STATUS_LM_CROSS_ENCRYPTION_REQUIRED NT_STATUS(0xC0000000 | 383)
+#define NT_STATUS_KEY_HAS_CHILDREN NT_STATUS(0xC0000000 | 384)
+#define NT_STATUS_CHILD_MUST_BE_VOLATILE NT_STATUS(0xC0000000 | 385)
+#define NT_STATUS_DEVICE_CONFIGURATION_ERROR NT_STATUS(0xC0000000 | 386)
+#define NT_STATUS_DRIVER_INTERNAL_ERROR NT_STATUS(0xC0000000 | 387)
+#define NT_STATUS_INVALID_DEVICE_STATE NT_STATUS(0xC0000000 | 388)
+#define NT_STATUS_IO_DEVICE_ERROR NT_STATUS(0xC0000000 | 389)
+#define NT_STATUS_DEVICE_PROTOCOL_ERROR NT_STATUS(0xC0000000 | 390)
+#define NT_STATUS_BACKUP_CONTROLLER NT_STATUS(0xC0000000 | 391)
+#define NT_STATUS_LOG_FILE_FULL NT_STATUS(0xC0000000 | 392)
+#define NT_STATUS_TOO_LATE NT_STATUS(0xC0000000 | 393)
+#define NT_STATUS_NO_TRUST_LSA_SECRET NT_STATUS(0xC0000000 | 394)
+#define NT_STATUS_NO_TRUST_SAM_ACCOUNT NT_STATUS(0xC0000000 | 395)
+#define NT_STATUS_TRUSTED_DOMAIN_FAILURE NT_STATUS(0xC0000000 | 396)
+#define NT_STATUS_TRUSTED_RELATIONSHIP_FAILURE NT_STATUS(0xC0000000 | 397)
+#define NT_STATUS_EVENTLOG_FILE_CORRUPT NT_STATUS(0xC0000000 | 398)
+#define NT_STATUS_EVENTLOG_CANT_START NT_STATUS(0xC0000000 | 399)
+#define NT_STATUS_TRUST_FAILURE NT_STATUS(0xC0000000 | 400)
+#define NT_STATUS_MUTANT_LIMIT_EXCEEDED NT_STATUS(0xC0000000 | 401)
+#define NT_STATUS_NETLOGON_NOT_STARTED NT_STATUS(0xC0000000 | 402)
+#define NT_STATUS_ACCOUNT_EXPIRED NT_STATUS(0xC0000000 | 403)
+#define NT_STATUS_POSSIBLE_DEADLOCK NT_STATUS(0xC0000000 | 404)
+#define NT_STATUS_NETWORK_CREDENTIAL_CONFLICT NT_STATUS(0xC0000000 | 405)
+#define NT_STATUS_REMOTE_SESSION_LIMIT NT_STATUS(0xC0000000 | 406)
+#define NT_STATUS_EVENTLOG_FILE_CHANGED NT_STATUS(0xC0000000 | 407)
+#define NT_STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT NT_STATUS(0xC0000000 | 408)
+#define NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT NT_STATUS(0xC0000000 | 409)
+#define NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT NT_STATUS(0xC0000000 | 410)
+#define NT_STATUS_DOMAIN_TRUST_INCONSISTENT NT_STATUS(0xC0000000 | 411)
+#define NT_STATUS_FS_DRIVER_REQUIRED NT_STATUS(0xC0000000 | 412)
+#define NT_STATUS_NO_USER_SESSION_KEY NT_STATUS(0xC0000000 | 514)
+#define NT_STATUS_USER_SESSION_DELETED NT_STATUS(0xC0000000 | 515)
+#define NT_STATUS_RESOURCE_LANG_NOT_FOUND NT_STATUS(0xC0000000 | 516)
+#define NT_STATUS_INSUFF_SERVER_RESOURCES NT_STATUS(0xC0000000 | 517)
+#define NT_STATUS_INVALID_BUFFER_SIZE NT_STATUS(0xC0000000 | 518)
+#define NT_STATUS_INVALID_ADDRESS_COMPONENT NT_STATUS(0xC0000000 | 519)
+#define NT_STATUS_INVALID_ADDRESS_WILDCARD NT_STATUS(0xC0000000 | 520)
+#define NT_STATUS_TOO_MANY_ADDRESSES NT_STATUS(0xC0000000 | 521)
+#define NT_STATUS_ADDRESS_ALREADY_EXISTS NT_STATUS(0xC0000000 | 522)
+#define NT_STATUS_ADDRESS_CLOSED NT_STATUS(0xC0000000 | 523)
+#define NT_STATUS_CONNECTION_DISCONNECTED NT_STATUS(0xC0000000 | 524)
+#define NT_STATUS_CONNECTION_RESET NT_STATUS(0xC0000000 | 525)
+#define NT_STATUS_TOO_MANY_NODES NT_STATUS(0xC0000000 | 526)
+#define NT_STATUS_TRANSACTION_ABORTED NT_STATUS(0xC0000000 | 527)
+#define NT_STATUS_TRANSACTION_TIMED_OUT NT_STATUS(0xC0000000 | 528)
+#define NT_STATUS_TRANSACTION_NO_RELEASE NT_STATUS(0xC0000000 | 529)
+#define NT_STATUS_TRANSACTION_NO_MATCH NT_STATUS(0xC0000000 | 530)
+#define NT_STATUS_TRANSACTION_RESPONDED NT_STATUS(0xC0000000 | 531)
+#define NT_STATUS_TRANSACTION_INVALID_ID NT_STATUS(0xC0000000 | 532)
+#define NT_STATUS_TRANSACTION_INVALID_TYPE NT_STATUS(0xC0000000 | 533)
+#define NT_STATUS_NOT_SERVER_SESSION NT_STATUS(0xC0000000 | 534)
+#define NT_STATUS_NOT_CLIENT_SESSION NT_STATUS(0xC0000000 | 535)
+#define NT_STATUS_CANNOT_LOAD_REGISTRY_FILE NT_STATUS(0xC0000000 | 536)
+#define NT_STATUS_DEBUG_ATTACH_FAILED NT_STATUS(0xC0000000 | 537)
+#define NT_STATUS_SYSTEM_PROCESS_TERMINATED NT_STATUS(0xC0000000 | 538)
+#define NT_STATUS_DATA_NOT_ACCEPTED NT_STATUS(0xC0000000 | 539)
+#define NT_STATUS_NO_BROWSER_SERVERS_FOUND NT_STATUS(0xC0000000 | 540)
+#define NT_STATUS_VDM_HARD_ERROR NT_STATUS(0xC0000000 | 541)
+#define NT_STATUS_DRIVER_CANCEL_TIMEOUT NT_STATUS(0xC0000000 | 542)
+#define NT_STATUS_REPLY_MESSAGE_MISMATCH NT_STATUS(0xC0000000 | 543)
+#define NT_STATUS_MAPPED_ALIGNMENT NT_STATUS(0xC0000000 | 544)
+#define NT_STATUS_IMAGE_CHECKSUM_MISMATCH NT_STATUS(0xC0000000 | 545)
+#define NT_STATUS_LOST_WRITEBEHIND_DATA NT_STATUS(0xC0000000 | 546)
+#define NT_STATUS_CLIENT_SERVER_PARAMETERS_INVALID NT_STATUS(0xC0000000 | 547)
+#define NT_STATUS_PASSWORD_MUST_CHANGE NT_STATUS(0xC0000000 | 548)
+#define NT_STATUS_NOT_FOUND NT_STATUS(0xC0000000 | 549)
+#define NT_STATUS_NOT_TINY_STREAM NT_STATUS(0xC0000000 | 550)
+#define NT_STATUS_RECOVERY_FAILURE NT_STATUS(0xC0000000 | 551)
+#define NT_STATUS_STACK_OVERFLOW_READ NT_STATUS(0xC0000000 | 552)
+#define NT_STATUS_FAIL_CHECK NT_STATUS(0xC0000000 | 553)
+#define NT_STATUS_DUPLICATE_OBJECTID NT_STATUS(0xC0000000 | 554)
+#define NT_STATUS_OBJECTID_EXISTS NT_STATUS(0xC0000000 | 555)
+#define NT_STATUS_CONVERT_TO_LARGE NT_STATUS(0xC0000000 | 556)
+#define NT_STATUS_RETRY NT_STATUS(0xC0000000 | 557)
+#define NT_STATUS_FOUND_OUT_OF_SCOPE NT_STATUS(0xC0000000 | 558)
+#define NT_STATUS_ALLOCATE_BUCKET NT_STATUS(0xC0000000 | 559)
+#define NT_STATUS_PROPSET_NOT_FOUND NT_STATUS(0xC0000000 | 560)
+#define NT_STATUS_MARSHALL_OVERFLOW NT_STATUS(0xC0000000 | 561)
+#define NT_STATUS_INVALID_VARIANT NT_STATUS(0xC0000000 | 562)
+#define NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND NT_STATUS(0xC0000000 | 563)
+#define NT_STATUS_ACCOUNT_LOCKED_OUT NT_STATUS(0xC0000000 | 564)
+#define NT_STATUS_HANDLE_NOT_CLOSABLE NT_STATUS(0xC0000000 | 565)
+#define NT_STATUS_CONNECTION_REFUSED NT_STATUS(0xC0000000 | 566)
+#define NT_STATUS_GRACEFUL_DISCONNECT NT_STATUS(0xC0000000 | 567)
+#define NT_STATUS_ADDRESS_ALREADY_ASSOCIATED NT_STATUS(0xC0000000 | 568)
+#define NT_STATUS_ADDRESS_NOT_ASSOCIATED NT_STATUS(0xC0000000 | 569)
+#define NT_STATUS_CONNECTION_INVALID NT_STATUS(0xC0000000 | 570)
+#define NT_STATUS_CONNECTION_ACTIVE NT_STATUS(0xC0000000 | 571)
+#define NT_STATUS_NETWORK_UNREACHABLE NT_STATUS(0xC0000000 | 572)
+#define NT_STATUS_HOST_UNREACHABLE NT_STATUS(0xC0000000 | 573)
+#define NT_STATUS_PROTOCOL_UNREACHABLE NT_STATUS(0xC0000000 | 574)
+#define NT_STATUS_PORT_UNREACHABLE NT_STATUS(0xC0000000 | 575)
+#define NT_STATUS_REQUEST_ABORTED NT_STATUS(0xC0000000 | 576)
+#define NT_STATUS_CONNECTION_ABORTED NT_STATUS(0xC0000000 | 577)
+#define NT_STATUS_BAD_COMPRESSION_BUFFER NT_STATUS(0xC0000000 | 578)
+#define NT_STATUS_USER_MAPPED_FILE NT_STATUS(0xC0000000 | 579)
+#define NT_STATUS_AUDIT_FAILED NT_STATUS(0xC0000000 | 580)
+#define NT_STATUS_TIMER_RESOLUTION_NOT_SET NT_STATUS(0xC0000000 | 581)
+#define NT_STATUS_CONNECTION_COUNT_LIMIT NT_STATUS(0xC0000000 | 582)
+#define NT_STATUS_LOGIN_TIME_RESTRICTION NT_STATUS(0xC0000000 | 583)
+#define NT_STATUS_LOGIN_WKSTA_RESTRICTION NT_STATUS(0xC0000000 | 584)
+#define NT_STATUS_IMAGE_MP_UP_MISMATCH NT_STATUS(0xC0000000 | 585)
+#define NT_STATUS_INSUFFICIENT_LOGON_INFO NT_STATUS(0xC0000000 | 592)
+#define NT_STATUS_BAD_DLL_ENTRYPOINT NT_STATUS(0xC0000000 | 593)
+#define NT_STATUS_BAD_SERVICE_ENTRYPOINT NT_STATUS(0xC0000000 | 594)
+#define NT_STATUS_LPC_REPLY_LOST NT_STATUS(0xC0000000 | 595)
+#define NT_STATUS_IP_ADDRESS_CONFLICT1 NT_STATUS(0xC0000000 | 596)
+#define NT_STATUS_IP_ADDRESS_CONFLICT2 NT_STATUS(0xC0000000 | 597)
+#define NT_STATUS_REGISTRY_QUOTA_LIMIT NT_STATUS(0xC0000000 | 598)
+#define NT_STATUS_PATH_NOT_COVERED NT_STATUS(0xC0000000 | 599)
+#define NT_STATUS_NO_CALLBACK_ACTIVE NT_STATUS(0xC0000000 | 600)
+#define NT_STATUS_LICENSE_QUOTA_EXCEEDED NT_STATUS(0xC0000000 | 601)
+#define NT_STATUS_PWD_TOO_SHORT NT_STATUS(0xC0000000 | 602)
+#define NT_STATUS_PWD_TOO_RECENT NT_STATUS(0xC0000000 | 603)
+#define NT_STATUS_PWD_HISTORY_CONFLICT NT_STATUS(0xC0000000 | 604)
+#define NT_STATUS_PLUGPLAY_NO_DEVICE NT_STATUS(0xC0000000 | 606)
+#define NT_STATUS_UNSUPPORTED_COMPRESSION NT_STATUS(0xC0000000 | 607)
+#define NT_STATUS_INVALID_HW_PROFILE NT_STATUS(0xC0000000 | 608)
+#define NT_STATUS_INVALID_PLUGPLAY_DEVICE_PATH NT_STATUS(0xC0000000 | 609)
+#define NT_STATUS_DRIVER_ORDINAL_NOT_FOUND NT_STATUS(0xC0000000 | 610)
+#define NT_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND NT_STATUS(0xC0000000 | 611)
+#define NT_STATUS_RESOURCE_NOT_OWNED NT_STATUS(0xC0000000 | 612)
+#define NT_STATUS_TOO_MANY_LINKS NT_STATUS(0xC0000000 | 613)
+#define NT_STATUS_QUOTA_LIST_INCONSISTENT NT_STATUS(0xC0000000 | 614)
+#define NT_STATUS_FILE_IS_OFFLINE NT_STATUS(0xC0000000 | 615)
+#define NT_STATUS_NO_SUCH_JOB NT_STATUS(0xC0000000 | 0xEDE) /* scheduler */
diff --git a/source3/include/rpc_lsa.h b/source3/include/rpc_lsa.h
index 9cd9929aa9..0814620980 100644
--- a/source3/include/rpc_lsa.h
+++ b/source3/include/rpc_lsa.h
@@ -130,7 +130,7 @@ typedef struct lsa_q_open_pol_info
typedef struct lsa_r_open_pol_info
{
POLICY_HND pol; /* policy handle */
- uint32 status; /* return code */
+ NTSTATUS status; /* return code */
} LSA_R_OPEN_POL;
@@ -149,7 +149,7 @@ typedef struct lsa_q_open_pol2_info
typedef struct lsa_r_open_pol2_info
{
POLICY_HND pol; /* policy handle */
- uint32 status; /* return code */
+ NTSTATUS status; /* return code */
} LSA_R_OPEN_POL2;
@@ -167,7 +167,7 @@ typedef struct r_lsa_query_sec_obj_info
uint32 ptr;
SEC_DESC_BUF *buf;
- uint32 status; /* return status */
+ NTSTATUS status; /* return status */
} LSA_R_QUERY_SEC_OBJ;
@@ -196,7 +196,7 @@ typedef struct lsa_r_query_info
LSA_INFO_UNION dom;
- uint32 status; /* return code */
+ NTSTATUS status; /* return code */
} LSA_R_QUERY_INFO;
@@ -222,7 +222,7 @@ typedef struct lsa_r_enum_trust_dom_info
UNISTR2 *uni_domain_name;
DOM_SID2 *domain_sid;
- uint32 status; /* return code */
+ NTSTATUS status; /* return code */
} LSA_R_ENUM_TRUST_DOM;
@@ -238,7 +238,7 @@ typedef struct lsa_r_close_info
{
POLICY_HND pol; /* policy handle. should be all zeros. */
- uint32 status; /* return code */
+ NTSTATUS status; /* return code */
} LSA_R_CLOSE;
@@ -331,7 +331,7 @@ typedef struct lsa_r_lookup_sids
LSA_TRANS_NAME_ENUM *names;
uint32 mapped_count;
- uint32 status; /* return code */
+ NTSTATUS status; /* return code */
} LSA_R_LOOKUP_SIDS;
@@ -364,7 +364,7 @@ typedef struct lsa_r_lookup_names
uint32 mapped_count;
- uint32 status; /* return code */
+ NTSTATUS status; /* return code */
} LSA_R_LOOKUP_NAMES;
@@ -384,7 +384,7 @@ typedef struct lsa_r_open_secret
uint32 dummy2;
uint32 dummy3;
uint32 dummy4;
- uint32 status;
+ NTSTATUS status;
} LSA_R_OPEN_SECRET;
typedef struct lsa_enum_priv_entry
@@ -413,7 +413,7 @@ typedef struct lsa_r_enum_privs
LSA_PRIV_ENTRY *privs;
- uint32 status;
+ NTSTATUS status;
} LSA_R_ENUM_PRIVS;
/* LSA_Q_PRIV_GET_DISPNAME - LSA get privilege display name */
@@ -434,7 +434,7 @@ typedef struct lsa_r_priv_get_dispname
/* Don't align ! */
uint16 lang_id;
/* align */
- uint32 status;
+ NTSTATUS status;
} LSA_R_PRIV_GET_DISPNAME;
/* LSA_Q_ENUM_ACCOUNTS */
@@ -450,7 +450,7 @@ typedef struct lsa_r_enum_accounts
{
uint32 enum_context;
LSA_SID_ENUM sids;
- uint32 status;
+ NTSTATUS status;
} LSA_R_ENUM_ACCOUNTS;
/* LSA_Q_UNK_GET_CONNUSER - gets username\domain of connected user
@@ -477,7 +477,7 @@ typedef struct lsa_r_unk_get_connuser
UNIHDR hdr_dom_name;
UNISTR2 uni2_dom_name;
- uint32 status;
+ NTSTATUS status;
} LSA_R_UNK_GET_CONNUSER;
@@ -491,7 +491,7 @@ typedef struct lsa_q_openaccount
typedef struct lsa_r_openaccount
{
POLICY_HND pol; /* policy handle */
- uint32 status;
+ NTSTATUS status;
} LSA_R_OPENACCOUNT;
typedef struct lsa_q_enumprivsaccount
@@ -524,7 +524,7 @@ typedef struct lsa_r_enumprivsaccount
uint32 ptr;
uint32 count;
PRIVILEGE_SET set;
- uint32 status;
+ NTSTATUS status;
} LSA_R_ENUMPRIVSACCOUNT;
typedef struct lsa_q_getsystemaccount
@@ -535,7 +535,7 @@ typedef struct lsa_q_getsystemaccount
typedef struct lsa_r_getsystemaccount
{
uint32 access;
- uint32 status;
+ NTSTATUS status;
} LSA_R_GETSYSTEMACCOUNT;
diff --git a/source3/include/smb.h b/source3/include/smb.h
index d8b5540510..cef75d3713 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -207,7 +207,18 @@ typedef struct nttime_info
uint32 high;
} NTTIME;
+#ifdef __GNUC__XX
+typedef struct {uint32 v;} NTSTATUS;
+#define NT_STATUS(x) ((NTSTATUS) { x })
+#define NT_STATUS_V(x) ((x).v)
+#else
typedef uint32 NTSTATUS;
+#define NT_STATUS(x) (x)
+#define NT_STATUS_V(x) (x)
+#endif
+
+#define NT_STATUS_IS_OK(x) (NT_STATUS_V(x) == 0)
+#define NT_STATUS_IS_ERR(x) (NT_STATUS_V(x) & 0xc0000000)
/* Allowable account control bits */
#define ACB_DISABLED 0x0001 /* 1 = User account disabled */
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 0c66a8e7a9..4e8868be74 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -135,7 +135,7 @@
/* these are the datagram types */
#define DGRAM_DIRECT_UNIQUE 0x10
-#define ERROR_DOS(class,code) error_packet(outbuf,0,class,code,__LINE__)
+#define ERROR_DOS(class,code) error_packet(outbuf,NT_STATUS_OK,class,code,__LINE__)
#define ERROR_NT(status) error_packet(outbuf,status,0,0,__LINE__)
#define ERROR_BOTH(status,class,code) error_packet(outbuf,status,class,code,__LINE__)
diff --git a/source3/lib/util_seaccess.c b/source3/lib/util_seaccess.c
index 8b75a5f487..1716226272 100644
--- a/source3/lib/util_seaccess.c
+++ b/source3/lib/util_seaccess.c
@@ -47,7 +47,8 @@ static BOOL token_sid_in_ace( NT_USER_TOKEN *token, SEC_ACE *ace)
bits not yet granted. Zero means permission allowed (no more needed bits).
**********************************************************************************/
-static uint32 check_ace(SEC_ACE *ace, NT_USER_TOKEN *token, uint32 acc_desired, uint32 *status)
+static uint32 check_ace(SEC_ACE *ace, NT_USER_TOKEN *token, uint32 acc_desired,
+ NTSTATUS *status)
{
uint32 mask = ace->info.mask;
@@ -106,7 +107,9 @@ static uint32 check_ace(SEC_ACE *ace, NT_USER_TOKEN *token, uint32 acc_desired,
include other bits requested.
**********************************************************************************/
-static BOOL get_max_access( SEC_ACL *the_acl, NT_USER_TOKEN *token, uint32 *granted, uint32 desired, uint32 *status)
+static BOOL get_max_access( SEC_ACL *the_acl, NT_USER_TOKEN *token, uint32 *granted,
+ uint32 desired,
+ NTSTATUS *status)
{
uint32 acc_denied = 0;
uint32 acc_granted = 0;
@@ -202,7 +205,8 @@ void se_map_generic(uint32 *access_mask, struct generic_mapping *mapping)
*****************************************************************************/
BOOL se_access_check(SEC_DESC *sd, struct current_user *user,
- uint32 acc_desired, uint32 *acc_granted, uint32 *status)
+ uint32 acc_desired, uint32 *acc_granted,
+ NTSTATUS *status)
{
extern NT_USER_TOKEN anonymous_token;
size_t i;
@@ -263,7 +267,8 @@ BOOL se_access_check(SEC_DESC *sd, struct current_user *user,
if (tmp_acc_desired & MAXIMUM_ALLOWED_ACCESS) {
tmp_acc_desired &= ~MAXIMUM_ALLOWED_ACCESS;
- return get_max_access( the_acl, token, acc_granted, tmp_acc_desired, status);
+ return get_max_access( the_acl, token, acc_granted, tmp_acc_desired,
+ status);
}
for ( i = 0 ; i < the_acl->num_aces && tmp_acc_desired != 0; i++) {
@@ -276,9 +281,9 @@ BOOL se_access_check(SEC_DESC *sd, struct current_user *user,
(unsigned int)tmp_acc_desired ));
tmp_acc_desired = check_ace( ace, token, tmp_acc_desired, status);
- if (*status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_V(*status)) {
*acc_granted = 0;
- DEBUG(5,("se_access_check: ACE %u denied with status %x.\n", (unsigned int)i, (unsigned int)*status ));
+ DEBUG(5,("se_access_check: ACE %u denied with status %s.\n", (unsigned int)i, get_nt_error_msg(*status)));
return False;
}
}
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 896360ce98..f485d328e2 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -76,7 +76,7 @@ char *cli_errstr(struct cli_state *cli)
/* Case #1: 32-bit NT errors */
if (flgs2 & FLAGS2_32_BIT_ERROR_CODES) {
- uint32 status = IVAL(cli->inbuf,smb_rcls);
+ NTSTATUS status = NT_STATUS(IVAL(cli->inbuf,smb_rcls));
return get_nt_error_msg(status);
}
@@ -103,7 +103,7 @@ char *cli_errstr(struct cli_state *cli)
/* Return the 32-bit NT status code from the last packet */
-uint32 cli_nt_error(struct cli_state *cli)
+NTSTATUS cli_nt_error(struct cli_state *cli)
{
int flgs2 = SVAL(cli->inbuf,smb_flg2);
@@ -113,7 +113,7 @@ uint32 cli_nt_error(struct cli_state *cli)
return dos_to_ntstatus(class, code);
}
- return IVAL(cli->inbuf,smb_rcls);
+ return NT_STATUS(IVAL(cli->inbuf,smb_rcls));
}
@@ -130,7 +130,7 @@ void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *ecode)
flgs2 = SVAL(cli->inbuf,smb_flg2);
if (flgs2 & FLAGS2_32_BIT_ERROR_CODES) {
- uint32 ntstatus = IVAL(cli->inbuf, smb_rcls);
+ NTSTATUS ntstatus = NT_STATUS(IVAL(cli->inbuf, smb_rcls));
ntstatus_to_dos(ntstatus, eclass, ecode);
return;
}
@@ -175,29 +175,38 @@ int cli_errno_from_dos(uint8 eclass, uint32 num)
}
/* Return a UNIX errno from a NT status code */
-
-int cli_errno_from_nt(uint32 status)
+static struct {
+ NTSTATUS status;
+ int error;
+} nt_errno_map[] = {
+ {NT_STATUS_ACCESS_VIOLATION, EACCES},
+ {NT_STATUS_NO_SUCH_FILE, ENOENT},
+ {NT_STATUS_NO_SUCH_DEVICE, ENODEV},
+ {NT_STATUS_INVALID_HANDLE, EBADF},
+ {NT_STATUS_NO_MEMORY, ENOMEM},
+ {NT_STATUS_ACCESS_DENIED, EACCES},
+ {NT_STATUS_OBJECT_NAME_NOT_FOUND, ENOENT},
+ {NT_STATUS_SHARING_VIOLATION, EBUSY},
+ {NT_STATUS_OBJECT_PATH_INVALID, ENOTDIR},
+ {NT_STATUS_OBJECT_NAME_COLLISION, EEXIST},
+ {NT_STATUS_PATH_NOT_COVERED, ENOENT},
+ {NT_STATUS(0), 0}
+};
+
+int cli_errno_from_nt(NTSTATUS status)
{
- DEBUG(10,("cli_errno_from_nt: 32 bit codes: code=%08x\n", status));
+ int i;
+ DEBUG(10,("cli_errno_from_nt: 32 bit codes: code=%08x\n", NT_STATUS_V(status)));
/* Status codes without this bit set are not errors */
- if (!(status & 0xc0000000))
+ if (!(NT_STATUS_V(status) & 0xc0000000))
return 0;
- switch (status) {
- case NT_STATUS_ACCESS_VIOLATION: return EACCES;
- case NT_STATUS_NO_SUCH_FILE: return ENOENT;
- case NT_STATUS_NO_SUCH_DEVICE: return ENODEV;
- case NT_STATUS_INVALID_HANDLE: return EBADF;
- case NT_STATUS_NO_MEMORY: return ENOMEM;
- case NT_STATUS_ACCESS_DENIED: return EACCES;
- case NT_STATUS_OBJECT_NAME_NOT_FOUND: return ENOENT;
- case NT_STATUS_SHARING_VIOLATION: return EBUSY;
- case NT_STATUS_OBJECT_PATH_INVALID: return ENOTDIR;
- case NT_STATUS_OBJECT_NAME_COLLISION: return EEXIST;
- case NT_STATUS_PATH_NOT_COVERED: return ENOENT;
- }
+ for (i=0;nt_errno_map[i].error;i++) {
+ if (NT_STATUS_V(nt_errno_map[i].status) ==
+ NT_STATUS_V(status)) return nt_errno_map[i].error;
+ }
/* for all other cases - a default code */
return EINVAL;
@@ -208,7 +217,7 @@ int cli_errno_from_nt(uint32 status)
int cli_errno(struct cli_state *cli)
{
- uint32 status;
+ NTSTATUS status;
if (cli_is_dos_error) {
uint8 eclass;
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 6566acf4ef..abbb8cd110 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -110,16 +110,17 @@ ssize_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_
errors. */
if (cli_is_error(cli)) {
- uint32 status = 0;
+ NTSTATUS status = NT_STATUS_OK;
uint8 eclass = 0;
+ uint32 ecode = 0;
if (cli_is_nt_error(cli))
status = cli_nt_error(cli);
else
- cli_dos_error(cli, &eclass, &status);
+ cli_dos_error(cli, &eclass, &ecode);
- if ((eclass == ERRDOS && status == ERRmoredata) ||
- status == STATUS_MORE_ENTRIES)
+ if ((eclass == ERRDOS && ecode == ERRmoredata) ||
+ NT_STATUS_V(status) == NT_STATUS_V(STATUS_MORE_ENTRIES))
return -1;
}
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c
index 6ae1014435..bcf1bf5f74 100644
--- a/source3/libsmb/clitrans.c
+++ b/source3/libsmb/clitrans.c
@@ -145,8 +145,7 @@ BOOL cli_receive_trans(struct cli_state *cli,int trans,
int total_data=0;
int total_param=0;
int this_data,this_param;
- uint8 eclass;
- uint32 ecode;
+ NTSTATUS status;
char *tdata;
char *tparam;
@@ -170,19 +169,9 @@ BOOL cli_receive_trans(struct cli_state *cli,int trans,
* to a trans call. This is not an error and should not
* be treated as such.
*/
-
- if (cli_is_error(cli)) {
- if (cli_is_dos_error(cli)) {
- cli_dos_error(cli, &eclass, &ecode);
-
- if(cli->nt_pipe_fnum == 0)
- return(False);
-
- if(!(eclass == ERRDOS && ecode == ERRmoredata)) {
- if (eclass != 0 && (ecode != (0x80000000 | STATUS_BUFFER_OVERFLOW)))
- return(False);
- }
- }
+ status = cli_nt_error(cli);
+
+ if (NT_STATUS_IS_ERR(status)) {
return False;
}
@@ -251,11 +240,8 @@ BOOL cli_receive_trans(struct cli_state *cli,int trans,
CVAL(cli->inbuf,smb_com)));
return(False);
}
- if (cli_is_dos_error(cli)) {
- cli_dos_error(cli, &eclass, &ecode);
- if(cli->nt_pipe_fnum == 0 ||
- !(eclass == ERRDOS && ecode == ERRmoredata))
- return(False);
+ if (NT_STATUS_IS_ERR(cli_nt_error(cli))) {
+ return(False);
}
}
diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c
new file mode 100644
index 0000000000..92a4b19847
--- /dev/null
+++ b/source3/libsmb/errormap.c
@@ -0,0 +1,854 @@
+/*
+ * Unix SMB/Netbios implementation.
+ * Version 3.0
+ * error mapping functions
+ * Copyright (C) Andrew Tridgell 2001
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include "includes.h"
+
+/* NT status -> dos error map */
+static struct {
+ uint8 dos_class;
+ uint32 dos_code;
+ NTSTATUS ntstatus;
+} ntstatus_to_dos_map[] = {
+ {ERRDOS, 997, NT_STATUS(0x00000103)},
+ {ERRDOS, 111, STATUS_MORE_ENTRIES},
+ {ERRDOS, 1300, NT_STATUS(0x00000106)},
+ {ERRDOS, 1301, NT_STATUS(0x00000107)},
+ {ERRDOS, 1022, NT_STATUS(0x0000010c)},
+ {ERRDOS, 1302, NT_STATUS(0x0000010d)},
+ {ERRDOS, 8201, NT_STATUS(0x00000121)},
+ {ERRDOS, 31, NT_STATUS_UNSUCCESSFUL},
+ {ERRSRV, ERRsmbcmd, NT_STATUS_NOT_IMPLEMENTED},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_INFO_CLASS},
+ {ERRDOS, 24, NT_STATUS_INFO_LENGTH_MISMATCH},
+ {ERRDOS, 998, NT_STATUS_ACCESS_VIOLATION},
+ {ERRDOS, 999, NT_STATUS_IN_PAGE_ERROR},
+ {ERRDOS, 1454, NT_STATUS_PAGEFILE_QUOTA},
+ {ERRDOS, ERRbadfid, NT_STATUS_INVALID_HANDLE},
+ {ERRDOS, 1001, NT_STATUS_BAD_INITIAL_STACK},
+ {ERRDOS, 193, NT_STATUS_BAD_INITIAL_PC},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_CID},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER},
+ {ERRDOS, ERRbadfile, NT_STATUS_NO_SUCH_DEVICE},
+ {ERRDOS, ERRbadfile, NT_STATUS_NO_SUCH_FILE},
+ {ERRSRV, ERRsmbcmd, NT_STATUS_INVALID_DEVICE_REQUEST},
+ {ERRDOS, 38, NT_STATUS_END_OF_FILE},
+ {ERRDOS, 34, NT_STATUS_WRONG_VOLUME},
+ {ERRDOS, 21, NT_STATUS_NO_MEDIA_IN_DEVICE},
+ {ERRDOS, 1785, NT_STATUS_UNRECOGNIZED_MEDIA},
+ {ERRDOS, 27, NT_STATUS_NONEXISTENT_SECTOR},
+ {ERRDOS, 111, NT_STATUS_MORE_PROCESSING_REQUIRED},
+ {ERRDOS, ERRnomem, NT_STATUS_NO_MEMORY},
+ {ERRDOS, 487, NT_STATUS_CONFLICTING_ADDRESSES},
+ {ERRDOS, 487, NT_STATUS_NOT_MAPPED_VIEW},
+ {ERRDOS, ERRbadpipe, NT_STATUS(0xc000001a)},
+ {ERRDOS, ERRbadpipe, NT_STATUS_UNABLE_TO_DELETE_SECTION},
+ {ERRSRV, ERRsmbcmd, NT_STATUS_INVALID_SYSTEM_SERVICE},
+ {ERRDOS, 29, NT_STATUS_ILLEGAL_INSTRUCTION},
+ {ERRDOS, ERRbadaccess, NT_STATUS_INVALID_LOCK_SEQUENCE},
+ {ERRDOS, ERRbadaccess, NT_STATUS_INVALID_VIEW_SIZE},
+ {ERRDOS, 193, NT_STATUS_INVALID_FILE_FOR_SECTION},
+ {ERRDOS, ERRbadaccess, NT_STATUS_ALREADY_COMMITTED},
+ {ERRDOS, ERRbadaccess, NT_STATUS_ACCESS_DENIED},
+ {ERRDOS, 122, NT_STATUS_BUFFER_TOO_SMALL},
+ {ERRDOS, ERRbadfid, NT_STATUS_OBJECT_TYPE_MISMATCH},
+ {ERRDOS, 37, NT_STATUS_NONCONTINUABLE_EXCEPTION},
+ {ERRDOS, 38, NT_STATUS_INVALID_DISPOSITION},
+ {ERRDOS, 158, NT_STATUS_NOT_LOCKED},
+ {ERRDOS, 43, NT_STATUS_PARITY_ERROR},
+ {ERRDOS, 487, NT_STATUS_UNABLE_TO_DECOMMIT_VM},
+ {ERRDOS, 487, NT_STATUS_NOT_COMMITTED},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_MIX},
+ {ERRDOS, 26, NT_STATUS_DISK_CORRUPT_ERROR},
+ {ERRSRV, 206, NT_STATUS_OBJECT_NAME_INVALID},
+ {ERRDOS, ERRbadfile, NT_STATUS_OBJECT_NAME_NOT_FOUND},
+ {ERRDOS, ERRfilexists, NT_STATUS_OBJECT_NAME_COLLISION},
+ {ERRDOS, ERRbadfid, NT_STATUS_PORT_DISCONNECTED},
+ {ERRDOS, 161, NT_STATUS_OBJECT_PATH_INVALID},
+ {ERRDOS, ERRbadpath, NT_STATUS_OBJECT_PATH_NOT_FOUND},
+ {ERRDOS, 161, NT_STATUS_OBJECT_PATH_SYNTAX_BAD},
+ {ERRDOS, 1117, NT_STATUS_DATA_OVERRUN},
+ {ERRDOS, 1117, NT_STATUS_DATA_LATE_ERROR},
+ {ERRDOS, ERRbaddata, NT_STATUS_DATA_ERROR},
+ {ERRDOS, ERRbaddata, NT_STATUS_CRC_ERROR},
+ {ERRDOS, ERRnomem, NT_STATUS_SECTION_TOO_BIG},
+ {ERRDOS, ERRbadaccess, NT_STATUS_PORT_CONNECTION_REFUSED},
+ {ERRDOS, ERRbadfid, NT_STATUS_INVALID_PORT_HANDLE},
+ {ERRDOS, ERRbadshare, NT_STATUS_SHARING_VIOLATION},
+ {ERRDOS, 1816, NT_STATUS_QUOTA_EXCEEDED},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PAGE_PROTECTION},
+ {ERRDOS, 288, NT_STATUS_MUTANT_NOT_OWNED},
+ {ERRDOS, 298, NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED},
+ {ERRDOS, ERRbadpipe, NT_STATUS_PORT_ALREADY_SET},
+ {ERRDOS, ERRbadpipe, NT_STATUS_SECTION_NOT_IMAGE},
+ {ERRDOS, 156, NT_STATUS_SUSPEND_COUNT_EXCEEDED},
+ {ERRDOS, ERRbadaccess, NT_STATUS_THREAD_IS_TERMINATING},
+ {ERRDOS, ERRbadpipe, NT_STATUS_BAD_WORKING_SET_LIMIT},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INCOMPATIBLE_FILE_MAP},
+ {ERRDOS, ERRbadpipe, NT_STATUS_SECTION_PROTECTION},
+ {ERRDOS, 282, NT_STATUS_EAS_NOT_SUPPORTED},
+ {ERRDOS, 275, NT_STATUS_EA_TOO_LARGE},
+ {ERRDOS, 276, NT_STATUS_NONEXISTENT_EA_ENTRY},
+ {ERRDOS, 276, NT_STATUS_NO_EAS_ON_FILE},
+ {ERRDOS, 276, NT_STATUS_EA_CORRUPT_ERROR},
+ {ERRDOS, ERRlock, NT_STATUS_FILE_LOCK_CONFLICT},
+ {ERRDOS, ERRlock, NT_STATUS_LOCK_NOT_GRANTED},
+ {ERRDOS, ERRbadaccess, NT_STATUS_DELETE_PENDING},
+ {ERRDOS, ERRunsup, NT_STATUS_CTL_FILE_NOT_SUPPORTED},
+ {ERRDOS, 1305, NT_STATUS_UNKNOWN_REVISION},
+ {ERRDOS, 1306, NT_STATUS_REVISION_MISMATCH},
+ {ERRDOS, 1307, NT_STATUS_INVALID_OWNER},
+ {ERRDOS, 1308, NT_STATUS_INVALID_PRIMARY_GROUP},
+ {ERRDOS, 1309, NT_STATUS_NO_IMPERSONATION_TOKEN},
+ {ERRDOS, 1310, NT_STATUS_CANT_DISABLE_MANDATORY},
+ {ERRDOS, 1311, NT_STATUS_NO_LOGON_SERVERS},
+ {ERRDOS, 1312, NT_STATUS_NO_SUCH_LOGON_SESSION},
+ {ERRDOS, 1313, NT_STATUS_NO_SUCH_PRIVILEGE},
+ {ERRDOS, 1314, NT_STATUS_PRIVILEGE_NOT_HELD},
+ {ERRDOS, 1315, NT_STATUS_INVALID_ACCOUNT_NAME},
+ {ERRDOS, 1316, NT_STATUS_USER_EXISTS},
+ {ERRDOS, 1317, NT_STATUS_NO_SUCH_USER},
+ {ERRDOS, 1318, NT_STATUS_GROUP_EXISTS},
+ {ERRDOS, 1319, NT_STATUS_NO_SUCH_GROUP},
+ {ERRDOS, 1320, NT_STATUS_MEMBER_IN_GROUP},
+ {ERRDOS, 1321, NT_STATUS_MEMBER_NOT_IN_GROUP},
+ {ERRDOS, 1322, NT_STATUS_LAST_ADMIN},
+ {ERRSRV, ERRbadpw, NT_STATUS_WRONG_PASSWORD},
+ {ERRDOS, 1324, NT_STATUS_ILL_FORMED_PASSWORD},
+ {ERRDOS, 1325, NT_STATUS_PASSWORD_RESTRICTION},
+ {ERRDOS, 1326, NT_STATUS_LOGON_FAILURE},
+ {ERRDOS, 1327, NT_STATUS_ACCOUNT_RESTRICTION},
+ {ERRDOS, 1328, NT_STATUS_INVALID_LOGON_HOURS},
+ {ERRDOS, 1329, NT_STATUS_INVALID_WORKSTATION},
+ {ERRDOS, 1330, NT_STATUS_PASSWORD_EXPIRED},
+ {ERRDOS, 1331, NT_STATUS_ACCOUNT_DISABLED},
+ {ERRDOS, 1332, NT_STATUS_NONE_MAPPED},
+ {ERRDOS, 1333, NT_STATUS_TOO_MANY_LUIDS_REQUESTED},
+ {ERRDOS, 1334, NT_STATUS_LUIDS_EXHAUSTED},
+ {ERRDOS, 1335, NT_STATUS_INVALID_SUB_AUTHORITY},
+ {ERRDOS, 1336, NT_STATUS_INVALID_ACL},
+ {ERRDOS, 1337, NT_STATUS_INVALID_SID},
+ {ERRDOS, 1338, NT_STATUS_INVALID_SECURITY_DESCR},
+ {ERRDOS, 127, NT_STATUS_PROCEDURE_NOT_FOUND},
+ {ERRDOS, 193, NT_STATUS_INVALID_IMAGE_FORMAT},
+ {ERRDOS, 1008, NT_STATUS_NO_TOKEN},
+ {ERRDOS, 1340, NT_STATUS_BAD_INHERITANCE_ACL},
+ {ERRDOS, 158, NT_STATUS_RANGE_NOT_LOCKED},
+ {ERRSRV, ERRnoroom, NT_STATUS_DISK_FULL},
+ {ERRDOS, 1341, NT_STATUS_SERVER_DISABLED},
+ {ERRDOS, 1342, NT_STATUS_SERVER_NOT_DISABLED},
+ {ERRDOS, 68, NT_STATUS_TOO_MANY_GUIDS_REQUESTED},
+ {ERRDOS, 259, NT_STATUS_GUIDS_EXHAUSTED},
+ {ERRDOS, 1343, NT_STATUS_INVALID_ID_AUTHORITY},
+ {ERRDOS, 259, NT_STATUS_AGENTS_EXHAUSTED},
+ {ERRDOS, 154, NT_STATUS_INVALID_VOLUME_LABEL},
+ {ERRDOS, 14, NT_STATUS_SECTION_NOT_EXTENDED},
+ {ERRDOS, 487, NT_STATUS_NOT_MAPPED_DATA},
+ {ERRDOS, 1812, NT_STATUS_RESOURCE_DATA_NOT_FOUND},
+ {ERRDOS, 1813, NT_STATUS_RESOURCE_TYPE_NOT_FOUND},
+ {ERRDOS, 1814, NT_STATUS_RESOURCE_NAME_NOT_FOUND},
+ {ERRDOS, 140, NT_STATUS_ARRAY_BOUNDS_EXCEEDED},
+ {ERRDOS, 141, NT_STATUS_FLOAT_DENORMAL_OPERAND},
+ {ERRDOS, 142, NT_STATUS_FLOAT_DIVIDE_BY_ZERO},
+ {ERRDOS, 143, NT_STATUS_FLOAT_INEXACT_RESULT},
+ {ERRDOS, 144, NT_STATUS_FLOAT_INVALID_OPERATION},
+ {ERRDOS, 145, NT_STATUS_FLOAT_OVERFLOW},
+ {ERRDOS, 146, NT_STATUS_FLOAT_STACK_CHECK},
+ {ERRDOS, 147, NT_STATUS_FLOAT_UNDERFLOW},
+ {ERRDOS, 148, NT_STATUS_INTEGER_DIVIDE_BY_ZERO},
+ {ERRDOS, 534, NT_STATUS_INTEGER_OVERFLOW},
+ {ERRDOS, 150, NT_STATUS_PRIVILEGED_INSTRUCTION},
+ {ERRDOS, ERRnomem, NT_STATUS_TOO_MANY_PAGING_FILES},
+ {ERRDOS, 1006, NT_STATUS_FILE_INVALID},
+ {ERRDOS, 1344, NT_STATUS_ALLOTTED_SPACE_EXCEEDED},
+ {ERRDOS, ERRnomem, NT_STATUS_INSUFFICIENT_RESOURCES},
+ {ERRDOS, ERRbadpath, NT_STATUS_DFS_EXIT_PATH_FOUND},
+ {ERRDOS, ERRbaddata, NT_STATUS_DEVICE_DATA_ERROR},
+ {ERRDOS, 1167, NT_STATUS_DEVICE_NOT_CONNECTED},
+ {ERRDOS, 21, NT_STATUS_DEVICE_POWER_FAILURE},
+ {ERRDOS, 487, NT_STATUS_FREE_VM_NOT_AT_BASE},
+ {ERRDOS, 487, NT_STATUS_MEMORY_NOT_ALLOCATED},
+ {ERRDOS, 1453, NT_STATUS_WORKING_SET_QUOTA},
+ {ERRDOS, 19, NT_STATUS_MEDIA_WRITE_PROTECTED},
+ {ERRDOS, 21, NT_STATUS_DEVICE_NOT_READY},
+ {ERRDOS, 1345, NT_STATUS_INVALID_GROUP_ATTRIBUTES},
+ {ERRDOS, 1346, NT_STATUS_BAD_IMPERSONATION_LEVEL},
+ {ERRDOS, 1347, NT_STATUS_CANT_OPEN_ANONYMOUS},
+ {ERRDOS, 1348, NT_STATUS_BAD_VALIDATION_CLASS},
+ {ERRDOS, 1349, NT_STATUS_BAD_TOKEN_TYPE},
+ {ERRDOS, ERRbadpipe, NT_STATUS_BAD_MASTER_BOOT_RECORD},
+ {ERRDOS, ERRpipebusy, NT_STATUS_INSTANCE_NOT_AVAILABLE},
+ {ERRDOS, ERRpipebusy, NT_STATUS_PIPE_NOT_AVAILABLE},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PIPE_STATE},
+ {ERRDOS, ERRpipebusy, NT_STATUS_PIPE_BUSY},
+ {ERRSRV, ERRsmbcmd, NT_STATUS_ILLEGAL_FUNCTION},
+ {ERRDOS, ERRnotconnected, NT_STATUS_PIPE_DISCONNECTED},
+ {ERRDOS, ERRpipeclosing, NT_STATUS_PIPE_CLOSING},
+ {ERRDOS, 535, NT_STATUS_PIPE_CONNECTED},
+ {ERRDOS, 536, NT_STATUS_PIPE_LISTENING},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_READ_MODE},
+ {ERRDOS, 121, NT_STATUS_IO_TIMEOUT},
+ {ERRDOS, 38, NT_STATUS_FILE_FORCED_CLOSED},
+ {ERRDOS, ERRbadaccess, NT_STATUS_FILE_IS_A_DIRECTORY},
+ {ERRDOS, ERRunsup, NT_STATUS_NOT_SUPPORTED},
+ {ERRDOS, 51, NT_STATUS_REMOTE_NOT_LISTENING},
+ {ERRDOS, 52, NT_STATUS_DUPLICATE_NAME},
+ {ERRDOS, 53, NT_STATUS_BAD_NETWORK_PATH},
+ {ERRDOS, 54, NT_STATUS_NETWORK_BUSY},
+ {ERRDOS, 55, NT_STATUS_DEVICE_DOES_NOT_EXIST},
+ {ERRDOS, 56, NT_STATUS_TOO_MANY_COMMANDS},
+ {ERRDOS, 57, NT_STATUS_ADAPTER_HARDWARE_ERROR},
+ {ERRDOS, 58, NT_STATUS_INVALID_NETWORK_RESPONSE},
+ {ERRDOS, 59, NT_STATUS_UNEXPECTED_NETWORK_ERROR},
+ {ERRDOS, 60, NT_STATUS_BAD_REMOTE_ADAPTER},
+ {ERRSRV, ERRqfull, NT_STATUS_PRINT_QUEUE_FULL},
+ {ERRSRV, ERRqtoobig, NT_STATUS_NO_SPOOL_SPACE},
+ {ERRSRV, ERRinvpfid, NT_STATUS_PRINT_CANCELLED},
+ {ERRSRV, ERRinvnid, NT_STATUS_NETWORK_NAME_DELETED},
+ {ERRSRV, ERRaccess, NT_STATUS_NETWORK_ACCESS_DENIED},
+ {ERRSRV, ERRbadtype, NT_STATUS_BAD_DEVICE_TYPE},
+ {ERRSRV, ERRinvnetname, NT_STATUS_BAD_NETWORK_NAME},
+ {ERRDOS, 68, NT_STATUS_TOO_MANY_NAMES},
+ {ERRSRV, ERRtoomanyuids, NT_STATUS_TOO_MANY_SESSIONS},
+ {ERRSRV, ERRpaused, NT_STATUS_SHARING_PAUSED},
+ {ERRSRV, ERRmsgoff, NT_STATUS_REQUEST_NOT_ACCEPTED},
+ {ERRDOS, 72, NT_STATUS_REDIRECTOR_PAUSED},
+ {ERRDOS, 88, NT_STATUS_NET_WRITE_FAULT},
+ {ERRDOS, ERRdiffdevice, NT_STATUS_NOT_SAME_DEVICE},
+ {ERRDOS, ERRbadaccess, NT_STATUS_FILE_RENAMED},
+ {ERRDOS, 240, NT_STATUS_VIRTUAL_CIRCUIT_CLOSED},
+ {ERRDOS, 1350, NT_STATUS_NO_SECURITY_ON_OBJECT},
+ {ERRDOS, ERRpipeclosing, NT_STATUS_PIPE_EMPTY},
+ {ERRDOS, 1351, NT_STATUS_CANT_ACCESS_DOMAIN_INFO},
+ {ERRDOS, 1352, NT_STATUS_INVALID_SERVER_STATE},
+ {ERRDOS, 1353, NT_STATUS_INVALID_DOMAIN_STATE},
+ {ERRDOS, 1354, NT_STATUS_INVALID_DOMAIN_ROLE},
+ {ERRDOS, 1355, NT_STATUS_NO_SUCH_DOMAIN},
+ {ERRDOS, 1356, NT_STATUS_DOMAIN_EXISTS},
+ {ERRDOS, 1357, NT_STATUS_DOMAIN_LIMIT_EXCEEDED},
+ {ERRDOS, 300, NT_STATUS_OPLOCK_NOT_GRANTED},
+ {ERRDOS, 301, NT_STATUS_INVALID_OPLOCK_PROTOCOL},
+ {ERRDOS, 1358, NT_STATUS_INTERNAL_DB_CORRUPTION},
+ {ERRDOS, 1359, NT_STATUS_INTERNAL_ERROR},
+ {ERRDOS, 1360, NT_STATUS_GENERIC_NOT_MAPPED},
+ {ERRDOS, 1361, NT_STATUS_BAD_DESCRIPTOR_FORMAT},
+ {ERRDOS, 1784, NT_STATUS_INVALID_USER_BUFFER},
+ {ERRDOS, 1362, NT_STATUS_NOT_LOGON_PROCESS},
+ {ERRDOS, 1363, NT_STATUS_LOGON_SESSION_EXISTS},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_1},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_2},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_3},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_4},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_5},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_6},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_7},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_8},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_9},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_10},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_11},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_PARAMETER_12},
+ {ERRDOS, ERRbadpath, NT_STATUS_REDIRECTOR_NOT_STARTED},
+ {ERRDOS, 1001, NT_STATUS_STACK_OVERFLOW},
+ {ERRDOS, 1364, NT_STATUS_NO_SUCH_PACKAGE},
+ {ERRDOS, 203, NT_STATUS(0xc0000100)},
+ {ERRDOS, ERRremcd, NT_STATUS_DIRECTORY_NOT_EMPTY},
+ {ERRDOS, 276, NT_STATUS_FILE_CORRUPT_ERROR},
+ {ERRDOS, 267, NT_STATUS_NOT_A_DIRECTORY},
+ {ERRDOS, 1365, NT_STATUS_BAD_LOGON_SESSION_STATE},
+ {ERRDOS, 1366, NT_STATUS_LOGON_SESSION_COLLISION},
+ {ERRDOS, 206, NT_STATUS_NAME_TOO_LONG},
+ {ERRDOS, 2401, NT_STATUS_FILES_OPEN},
+ {ERRDOS, 2404, NT_STATUS_CONNECTION_IN_USE},
+ {ERRDOS, ERRbadaccess, NT_STATUS_PROCESS_IS_TERMINATING},
+ {ERRDOS, 1367, NT_STATUS_INVALID_LOGON_TYPE},
+ {ERRDOS, 1368, NT_STATUS_CANNOT_IMPERSONATE},
+ {ERRDOS, 1056, NT_STATUS_IMAGE_ALREADY_LOADED},
+ {ERRDOS, 1444, NT_STATUS_NO_LDT},
+ {ERRDOS, 193, NT_STATUS_INVALID_IMAGE_NE_FORMAT},
+ {ERRDOS, 1369, NT_STATUS_RXACT_INVALID_STATE},
+ {ERRDOS, 1370, NT_STATUS_RXACT_COMMIT_FAILURE},
+ {ERRDOS, 1006, NT_STATUS_MAPPED_FILE_SIZE_ZERO},
+ {ERRDOS, ERRnofids, NT_STATUS_TOO_MANY_OPENED_FILES},
+ {ERRDOS, 995, NT_STATUS_CANCELLED},
+ {ERRDOS, ERRbadaccess, NT_STATUS_CANNOT_DELETE},
+ {ERRDOS, 1210, NT_STATUS_INVALID_COMPUTER_NAME},
+ {ERRDOS, ERRbadaccess, NT_STATUS_FILE_DELETED},
+ {ERRDOS, 1371, NT_STATUS_SPECIAL_ACCOUNT},
+ {ERRDOS, 1372, NT_STATUS_SPECIAL_GROUP},
+ {ERRDOS, 1373, NT_STATUS_SPECIAL_USER},
+ {ERRDOS, 1374, NT_STATUS_MEMBERS_PRIMARY_GROUP},
+ {ERRDOS, ERRbadfid, NT_STATUS_FILE_CLOSED},
+ {ERRDOS, 1375, NT_STATUS_TOKEN_ALREADY_IN_USE},
+ {ERRDOS, 1455, NT_STATUS_COMMITMENT_LIMIT},
+ {ERRDOS, 193, NT_STATUS_INVALID_IMAGE_LE_FORMAT},
+ {ERRDOS, 193, NT_STATUS_INVALID_IMAGE_NOT_MZ},
+ {ERRDOS, 193, NT_STATUS_INVALID_IMAGE_PROTECT},
+ {ERRDOS, 193, NT_STATUS_INVALID_IMAGE_WIN_16},
+ {ERRDOS, 1398, NT_STATUS_TIME_DIFFERENCE_AT_DC},
+ {ERRDOS, 126, NT_STATUS_DLL_NOT_FOUND},
+ {ERRDOS, 182, NT_STATUS_ORDINAL_NOT_FOUND},
+ {ERRDOS, 127, NT_STATUS_ENTRYPOINT_NOT_FOUND},
+ {ERRSRV, ERRinvnid, NT_STATUS_LOCAL_DISCONNECT},
+ {ERRSRV, ERRinvnid, NT_STATUS_REMOTE_DISCONNECT},
+ {ERRDOS, 51, NT_STATUS_REMOTE_RESOURCES},
+ {ERRDOS, 59, NT_STATUS_LINK_FAILED},
+ {ERRDOS, 59, NT_STATUS_LINK_TIMEOUT},
+ {ERRDOS, 59, NT_STATUS_INVALID_CONNECTION},
+ {ERRDOS, 59, NT_STATUS_INVALID_ADDRESS},
+ {ERRDOS, 1114, NT_STATUS_DLL_INIT_FAILED},
+ {ERRDOS, 124, NT_STATUS_INVALID_LEVEL},
+ {ERRSRV, ERRbadpw, NT_STATUS_WRONG_PASSWORD_CORE},
+ {ERRDOS, 109, NT_STATUS_PIPE_BROKEN},
+ {ERRDOS, 1009, NT_STATUS_REGISTRY_CORRUPT},
+ {ERRDOS, 1016, NT_STATUS_REGISTRY_IO_FAILED},
+ {ERRDOS, 1005, NT_STATUS_UNRECOGNIZED_VOLUME},
+ {ERRDOS, 1118, NT_STATUS_SERIAL_NO_DEVICE_INITED},
+ {ERRDOS, 1376, NT_STATUS_NO_SUCH_ALIAS},
+ {ERRDOS, 1377, NT_STATUS_MEMBER_NOT_IN_ALIAS},
+ {ERRDOS, 1378, NT_STATUS_MEMBER_IN_ALIAS},
+ {ERRDOS, 1379, NT_STATUS_ALIAS_EXISTS},
+ {ERRDOS, 1380, NT_STATUS_LOGON_NOT_GRANTED},
+ {ERRDOS, 1381, NT_STATUS_TOO_MANY_SECRETS},
+ {ERRDOS, 1382, NT_STATUS_SECRET_TOO_LONG},
+ {ERRDOS, 1383, NT_STATUS_INTERNAL_DB_ERROR},
+ {ERRDOS, 1007, NT_STATUS_FULLSCREEN_MODE},
+ {ERRDOS, 1384, NT_STATUS_TOO_MANY_CONTEXT_IDS},
+ {ERRDOS, 1385, NT_STATUS_LOGON_TYPE_NOT_GRANTED},
+ {ERRDOS, 1017, NT_STATUS_NOT_REGISTRY_FILE},
+ {ERRDOS, 1386, NT_STATUS_NT_CROSS_ENCRYPTION_REQUIRED},
+ {ERRDOS, 1117, NT_STATUS_FT_MISSING_MEMBER},
+ {ERRDOS, 1113, NT_STATUS_UNMAPPABLE_CHARACTER},
+ {ERRDOS, 1122, NT_STATUS_FLOPPY_ID_MARK_NOT_FOUND},
+ {ERRDOS, 1123, NT_STATUS_FLOPPY_WRONG_CYLINDER},
+ {ERRDOS, 1124, NT_STATUS_FLOPPY_UNKNOWN_ERROR},
+ {ERRDOS, 1125, NT_STATUS_FLOPPY_BAD_REGISTERS},
+ {ERRDOS, 1126, NT_STATUS_DISK_RECALIBRATE_FAILED},
+ {ERRDOS, 1127, NT_STATUS_DISK_OPERATION_FAILED},
+ {ERRDOS, 1128, NT_STATUS_DISK_RESET_FAILED},
+ {ERRDOS, 1119, NT_STATUS_SHARED_IRQ_BUSY},
+ {ERRDOS, 1117, NT_STATUS_FT_ORPHANING},
+ {ERRDOS, 1105, NT_STATUS_PARTITION_FAILURE},
+ {ERRDOS, 1106, NT_STATUS_INVALID_BLOCK_LENGTH},
+ {ERRDOS, 1107, NT_STATUS_DEVICE_NOT_PARTITIONED},
+ {ERRDOS, 1108, NT_STATUS_UNABLE_TO_LOCK_MEDIA},
+ {ERRDOS, 1109, NT_STATUS_UNABLE_TO_UNLOAD_MEDIA},
+ {ERRDOS, 1129, NT_STATUS_EOM_OVERFLOW},
+ {ERRDOS, 1112, NT_STATUS_NO_MEDIA},
+ {ERRDOS, 1387, NT_STATUS_NO_SUCH_MEMBER},
+ {ERRDOS, 1388, NT_STATUS_INVALID_MEMBER},
+ {ERRDOS, 1018, NT_STATUS_KEY_DELETED},
+ {ERRDOS, 1019, NT_STATUS_NO_LOG_SPACE},
+ {ERRDOS, 1389, NT_STATUS_TOO_MANY_SIDS},
+ {ERRDOS, 1390, NT_STATUS_LM_CROSS_ENCRYPTION_REQUIRED},
+ {ERRDOS, 1020, NT_STATUS_KEY_HAS_CHILDREN},
+ {ERRDOS, 1021, NT_STATUS_CHILD_MUST_BE_VOLATILE},
+ {ERRDOS, ERRbadpipe, NT_STATUS_DEVICE_CONFIGURATION_ERROR},
+ {ERRDOS, 1117, NT_STATUS_DRIVER_INTERNAL_ERROR},
+ {ERRDOS, 22, NT_STATUS_INVALID_DEVICE_STATE},
+ {ERRDOS, 1117, NT_STATUS_IO_DEVICE_ERROR},
+ {ERRDOS, 1117, NT_STATUS_DEVICE_PROTOCOL_ERROR},
+ {ERRDOS, 1502, NT_STATUS_LOG_FILE_FULL},
+ {ERRDOS, 19, NT_STATUS_TOO_LATE},
+ {ERRDOS, 1786, NT_STATUS_NO_TRUST_LSA_SECRET},
+ {ERRDOS, 1787, NT_STATUS_NO_TRUST_SAM_ACCOUNT},
+ {ERRDOS, 1788, NT_STATUS_TRUSTED_DOMAIN_FAILURE},
+ {ERRDOS, 1789, NT_STATUS_TRUSTED_RELATIONSHIP_FAILURE},
+ {ERRDOS, 1500, NT_STATUS_EVENTLOG_FILE_CORRUPT},
+ {ERRDOS, 1501, NT_STATUS_EVENTLOG_CANT_START},
+ {ERRDOS, 1790, NT_STATUS_TRUST_FAILURE},
+ {ERRDOS, 1792, NT_STATUS_NETLOGON_NOT_STARTED},
+ {ERRDOS, 1793, NT_STATUS_ACCOUNT_EXPIRED},
+ {ERRDOS, 1131, NT_STATUS_POSSIBLE_DEADLOCK},
+ {ERRDOS, 1219, NT_STATUS_NETWORK_CREDENTIAL_CONFLICT},
+ {ERRDOS, 1220, NT_STATUS_REMOTE_SESSION_LIMIT},
+ {ERRDOS, 1503, NT_STATUS_EVENTLOG_FILE_CHANGED},
+ {ERRDOS, 1807, NT_STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT},
+ {ERRDOS, 1808, NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT},
+ {ERRDOS, 1809, NT_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT},
+ {ERRDOS, 1810, NT_STATUS_DOMAIN_TRUST_INCONSISTENT},
+ {ERRDOS, 1394, NT_STATUS_NO_USER_SESSION_KEY},
+ {ERRDOS, 59, NT_STATUS_USER_SESSION_DELETED},
+ {ERRDOS, 1815, NT_STATUS_RESOURCE_LANG_NOT_FOUND},
+ {ERRDOS, 1130, NT_STATUS_INSUFF_SERVER_RESOURCES},
+ {ERRDOS, 1784, NT_STATUS_INVALID_BUFFER_SIZE},
+ {ERRDOS, 1214, NT_STATUS_INVALID_ADDRESS_COMPONENT},
+ {ERRDOS, 1214, NT_STATUS_INVALID_ADDRESS_WILDCARD},
+ {ERRDOS, 68, NT_STATUS_TOO_MANY_ADDRESSES},
+ {ERRDOS, 52, NT_STATUS_ADDRESS_ALREADY_EXISTS},
+ {ERRSRV, ERRinvnid, NT_STATUS_ADDRESS_CLOSED},
+ {ERRSRV, ERRinvnid, NT_STATUS_CONNECTION_DISCONNECTED},
+ {ERRSRV, ERRinvnid, NT_STATUS_CONNECTION_RESET},
+ {ERRDOS, 68, NT_STATUS_TOO_MANY_NODES},
+ {ERRDOS, 59, NT_STATUS_TRANSACTION_ABORTED},
+ {ERRDOS, 59, NT_STATUS_TRANSACTION_TIMED_OUT},
+ {ERRDOS, 59, NT_STATUS_TRANSACTION_NO_RELEASE},
+ {ERRDOS, 59, NT_STATUS_TRANSACTION_NO_MATCH},
+ {ERRDOS, 59, NT_STATUS_TRANSACTION_RESPONDED},
+ {ERRDOS, 59, NT_STATUS_TRANSACTION_INVALID_ID},
+ {ERRDOS, 59, NT_STATUS_TRANSACTION_INVALID_TYPE},
+ {ERRDOS, ERRunsup, NT_STATUS_NOT_SERVER_SESSION},
+ {ERRDOS, ERRunsup, NT_STATUS_NOT_CLIENT_SESSION},
+ {ERRDOS, 6118, NT_STATUS_NO_BROWSER_SERVERS_FOUND},
+ {ERRDOS, 1132, NT_STATUS_MAPPED_ALIGNMENT},
+ {ERRDOS, 193, NT_STATUS_IMAGE_CHECKSUM_MISMATCH},
+ {ERRDOS, 1907, NT_STATUS_PASSWORD_MUST_CHANGE},
+ {ERRDOS, 1168, NT_STATUS_NOT_FOUND},
+ {ERRDOS, 554, NT_STATUS_DUPLICATE_OBJECTID},
+ {ERRDOS, 555, NT_STATUS_OBJECTID_EXISTS},
+ {ERRDOS, 1237, NT_STATUS_RETRY},
+ {ERRDOS, 1170, NT_STATUS_PROPSET_NOT_FOUND},
+ {ERRDOS, 1908, NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND},
+ {ERRDOS, 1909, NT_STATUS_ACCOUNT_LOCKED_OUT},
+ {ERRDOS, ERRbadfid, NT_STATUS_HANDLE_NOT_CLOSABLE},
+ {ERRDOS, 1225, NT_STATUS_CONNECTION_REFUSED},
+ {ERRDOS, 1226, NT_STATUS_GRACEFUL_DISCONNECT},
+ {ERRDOS, 1227, NT_STATUS_ADDRESS_ALREADY_ASSOCIATED},
+ {ERRDOS, 1228, NT_STATUS_ADDRESS_NOT_ASSOCIATED},
+ {ERRDOS, 1229, NT_STATUS_CONNECTION_INVALID},
+ {ERRDOS, 1230, NT_STATUS_CONNECTION_ACTIVE},
+ {ERRDOS, 1231, NT_STATUS_NETWORK_UNREACHABLE},
+ {ERRDOS, 1232, NT_STATUS_HOST_UNREACHABLE},
+ {ERRDOS, 1233, NT_STATUS_PROTOCOL_UNREACHABLE},
+ {ERRDOS, 1234, NT_STATUS_PORT_UNREACHABLE},
+ {ERRDOS, 1235, NT_STATUS_REQUEST_ABORTED},
+ {ERRDOS, 1236, NT_STATUS_CONNECTION_ABORTED},
+ {ERRDOS, 1224, NT_STATUS_USER_MAPPED_FILE},
+ {ERRDOS, 1238, NT_STATUS_CONNECTION_COUNT_LIMIT},
+ {ERRDOS, 1239, NT_STATUS_LOGIN_TIME_RESTRICTION},
+ {ERRDOS, 1240, NT_STATUS_LOGIN_WKSTA_RESTRICTION},
+ {ERRDOS, 193, NT_STATUS_IMAGE_MP_UP_MISMATCH},
+ {ERRDOS, 1359, NT_STATUS_LPC_REPLY_LOST},
+ {ERRDOS, 1232, NT_STATUS_PATH_NOT_COVERED},
+ {ERRDOS, 1395, NT_STATUS_LICENSE_QUOTA_EXCEEDED},
+ {ERRDOS, 1058, NT_STATUS_PLUGPLAY_NO_DEVICE},
+ {ERRDOS, 182, NT_STATUS_DRIVER_ORDINAL_NOT_FOUND},
+ {ERRDOS, 127, NT_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND},
+ {ERRDOS, 288, NT_STATUS_RESOURCE_NOT_OWNED},
+ {ERRDOS, 1142, NT_STATUS_TOO_MANY_LINKS},
+ {ERRDOS, 4350, NT_STATUS_FILE_IS_OFFLINE},
+ {ERRDOS, 2001, NT_STATUS(0xc000026c)},
+ {ERRDOS, 1201, NT_STATUS(0xc000026d)},
+ {ERRDOS, 21, NT_STATUS(0xc000026e)},
+ {ERRDOS, 1169, NT_STATUS(0xc0000272)},
+ {ERRDOS, 4390, NT_STATUS(0xc0000275)},
+ {ERRDOS, 4393, NT_STATUS(0xc0000276)},
+ {ERRDOS, 4394, NT_STATUS(0xc0000277)},
+ {ERRDOS, 4392, NT_STATUS(0xc0000278)},
+ {ERRDOS, 1920, NT_STATUS(0xc0000279)},
+ {ERRDOS, 1921, NT_STATUS(0xc0000280)},
+ {ERRDOS, 161, NT_STATUS(0xc0000281)},
+ {ERRDOS, 1160, NT_STATUS(0xc0000283)},
+ {ERRDOS, 1161, NT_STATUS(0xc0000284)},
+ {ERRDOS, 1162, NT_STATUS(0xc0000285)},
+ {ERRDOS, 1163, NT_STATUS(0xc0000286)},
+ {ERRDOS, 1164, NT_STATUS(0xc0000287)},
+ {ERRDOS, ERRbadaccess, NT_STATUS(0xc000028a)},
+ {ERRDOS, ERRbadaccess, NT_STATUS(0xc000028b)},
+ {ERRDOS, ERRbadaccess, NT_STATUS(0xc000028d)},
+ {ERRDOS, ERRbadaccess, NT_STATUS(0xc000028e)},
+ {ERRDOS, ERRbadaccess, NT_STATUS(0xc000028f)},
+ {ERRDOS, ERRbadaccess, NT_STATUS(0xc0000290)},
+ {ERRDOS, 6007, NT_STATUS(0xc0000291)},
+ {ERRDOS, 6008, NT_STATUS(0xc0000292)},
+ {ERRDOS, 6002, NT_STATUS(0xc0000293)},
+ {ERRDOS, 4200, NT_STATUS(0xc0000295)},
+ {ERRDOS, 4201, NT_STATUS(0xc0000296)},
+ {ERRDOS, 4202, NT_STATUS(0xc0000297)},
+ {ERRDOS, 4203, NT_STATUS(0xc0000298)},
+ {ERRDOS, 8218, NT_STATUS(0xc0000299)},
+ {ERRDOS, 8219, NT_STATUS(0xc000029a)},
+ {ERRDOS, 8220, NT_STATUS(0xc000029b)},
+ {ERRSRV, ERRsmbcmd, NT_STATUS(0xc000029c)},
+ {ERRDOS, 4351, NT_STATUS(0xc000029d)},
+ {ERRDOS, 4352, NT_STATUS(0xc000029e)},
+ {ERRDOS, 1172, NT_STATUS(0xc000029f)},
+ {ERRDOS, 8202, NT_STATUS(0xc00002a1)},
+ {ERRDOS, 8203, NT_STATUS(0xc00002a2)},
+ {ERRDOS, 8204, NT_STATUS(0xc00002a3)},
+ {ERRDOS, 8205, NT_STATUS(0xc00002a4)},
+ {ERRDOS, 8206, NT_STATUS(0xc00002a5)},
+ {ERRDOS, 8207, NT_STATUS(0xc00002a6)},
+ {ERRDOS, 8208, NT_STATUS(0xc00002a7)},
+ {ERRDOS, 8209, NT_STATUS(0xc00002a8)},
+ {ERRDOS, 8210, NT_STATUS(0xc00002a9)},
+ {ERRDOS, 8211, NT_STATUS(0xc00002aa)},
+ {ERRDOS, 8212, NT_STATUS(0xc00002ab)},
+ {ERRDOS, 8213, NT_STATUS(0xc00002ac)},
+ {ERRDOS, 8214, NT_STATUS(0xc00002ad)},
+ {ERRDOS, 8215, NT_STATUS(0xc00002ae)},
+ {ERRDOS, 8216, NT_STATUS(0xc00002af)},
+ {ERRDOS, 8217, NT_STATUS(0xc00002b0)},
+ {ERRDOS, 8478, NT_STATUS(0xc00002b1)},
+ {ERRDOS, 4391, NT_STATUS(0xc00002b2)},
+ {ERRDOS, 1617, NT_STATUS(0xc00002b6)},
+ {ERRDOS, 1178, NT_STATUS(0xc00002b7)},
+ {ERRDOS, 1179, NT_STATUS(0xc00002b8)},
+ {ERRDOS, 8228, NT_STATUS(0xc00002c1)},
+ {ERRDOS, 1397, NT_STATUS(0xc00002c3)},
+ {ERRDOS, 998, NT_STATUS(0xc00002c5)},
+ {ERRDOS, 4213, NT_STATUS(0xc00002c6)},
+ {ERRDOS, 4214, NT_STATUS(0xc00002c7)},
+ {ERRDOS, 4328, NT_STATUS(0xc00002ca)},
+ {ERRDOS, 8504, NT_STATUS(0xc00002cb)},
+ {ERRDOS, 1251, NT_STATUS(0xc00002cc)},
+ {ERRDOS, 8505, NT_STATUS(0xc00002cd)},
+ {ERRDOS, 1181, NT_STATUS(0xc00002cf)},
+ {ERRDOS, 8506, NT_STATUS(0xc00002d0)},
+ {ERRDOS, 8513, NT_STATUS(0xc00002d4)},
+ {ERRDOS, 8514, NT_STATUS(0xc00002d5)},
+ {ERRDOS, 8515, NT_STATUS(0xc00002d6)},
+ {ERRDOS, 8516, NT_STATUS(0xc00002d7)},
+ {ERRDOS, 8517, NT_STATUS(0xc00002d8)},
+ {ERRDOS, 8518, NT_STATUS(0xc00002d9)},
+ {ERRDOS, 8519, NT_STATUS(0xc00002da)},
+ {ERRDOS, 8520, NT_STATUS(0xc00002db)},
+ {ERRDOS, 8521, NT_STATUS(0xc00002dc)},
+ {ERRDOS, ERRunsup, NT_STATUS(0xc00002dd)},
+ {ERRDOS, 8529, NT_STATUS(0xc00002df)},
+ {ERRDOS, 8530, NT_STATUS(0xc00002e0)},
+ {ERRDOS, 8531, NT_STATUS(0xc00002e1)},
+ {ERRDOS, 8532, NT_STATUS(0xc00002e2)},
+ {ERRDOS, 8541, NT_STATUS(0xc00002e3)},
+ {ERRDOS, 8547, NT_STATUS(0xc00002e4)},
+ {ERRDOS, 8548, NT_STATUS(0xc00002e5)},
+ {ERRDOS, 8549, NT_STATUS(0xc00002e6)},
+ {ERRDOS, 8557, NT_STATUS(0xc00002e7)},
+ {ERRDOS, 1115, NT_STATUS(0xc00002fe)},
+ {ERRDOS, 1255, NT_STATUS(0xc00002ff)},
+ {ERRDOS, 1254, NT_STATUS(0xc0000300)},
+ {ERRDOS, ERRbadfunc, NT_STATUS(0x80000001)},
+ {ERRDOS, 998, NT_STATUS(0x80000002)},
+ {ERRDOS, ERRbadpath, NT_STATUS(0x80000003)},
+ {ERRDOS, ERRnofids, NT_STATUS(0x80000004)},
+ {ERRDOS, 111, NT_STATUS(0x80000005)},
+ {ERRDOS, ERRnofiles, NT_STATUS(0x80000006)},
+ {ERRDOS, 1391, NT_STATUS(0x8000000b)},
+ {ERRDOS, 299, NT_STATUS(0x8000000d)},
+ {ERRDOS, 28, NT_STATUS(0x8000000e)},
+ {ERRDOS, 21, NT_STATUS(0x8000000f)},
+ {ERRDOS, 21, NT_STATUS(0x80000010)},
+ {ERRDOS, 170, NT_STATUS(0x80000011)},
+ {ERRDOS, 259, NT_STATUS(0x80000012)},
+ {ERRDOS, 254, NT_STATUS(0x80000013)},
+ {ERRDOS, 275, NT_STATUS(0x80000014)},
+ {ERRDOS, 275, NT_STATUS(0x80000015)},
+ {ERRDOS, 1110, NT_STATUS(0x80000016)},
+ {ERRDOS, 259, NT_STATUS_UNABLE_TO_FREE_VM},
+ {ERRDOS, 1101, NT_STATUS(0x8000001b)},
+ {ERRDOS, 1110, NT_STATUS(0x8000001c)},
+ {ERRDOS, 1111, NT_STATUS(0x8000001d)},
+ {ERRDOS, 1100, NT_STATUS(0x8000001e)},
+ {ERRDOS, 1102, NT_STATUS(0x8000001f)},
+ {ERRDOS, 1103, NT_STATUS(0x80000021)},
+ {ERRDOS, 1104, NT_STATUS(0x80000022)},
+ {ERRDOS, 2402, NT_STATUS(0x80000025)},
+ {ERRDOS, 1165, NT_STATUS(0x80000288)},
+ {ERRDOS, 1166, NT_STATUS(0x80000289)},
+};
+
+
+/* dos -> nt status error map */
+static struct {
+ uint8 dos_class;
+ uint32 dos_code;
+ NTSTATUS ntstatus;
+} dos_to_ntstatus_map[] = {
+ {ERRDOS, ERRbadfunc, NT_STATUS_NOT_IMPLEMENTED},
+ {ERRDOS, ERRbadfile, NT_STATUS_NO_SUCH_FILE},
+ {ERRDOS, ERRbadpath, NT_STATUS_OBJECT_PATH_NOT_FOUND},
+ {ERRDOS, ERRnofids, NT_STATUS_TOO_MANY_OPENED_FILES},
+ {ERRDOS, ERRnoaccess, NT_STATUS_INVALID_LOCK_SEQUENCE},
+ {ERRDOS, ERRbadfid, NT_STATUS_INVALID_HANDLE},
+ {ERRDOS, ERRnomem, NT_STATUS_INSUFFICIENT_RESOURCES},
+ {ERRDOS, ERRbadaccess, NT_STATUS_INVALID_LOCK_SEQUENCE},
+ {ERRDOS, ERRbaddata, NT_STATUS_DATA_ERROR},
+ {ERRDOS, 14, NT_STATUS_SECTION_NOT_EXTENDED},
+ {ERRDOS, ERRremcd, NT_STATUS_DIRECTORY_NOT_EMPTY},
+ {ERRDOS, ERRdiffdevice, NT_STATUS_NOT_SAME_DEVICE},
+ {ERRDOS, ERRnofiles, NT_STATUS(0x80000006)},
+ {ERRDOS, 19, NT_STATUS_MEDIA_WRITE_PROTECTED},
+ {ERRDOS, 21, NT_STATUS_NO_MEDIA_IN_DEVICE},
+ {ERRDOS, 22, NT_STATUS_INVALID_DEVICE_STATE},
+ {ERRDOS, 23, NT_STATUS_DATA_ERROR},
+ {ERRDOS, 24, NT_STATUS_DATA_ERROR},
+ {ERRDOS, 26, NT_STATUS_DISK_CORRUPT_ERROR},
+ {ERRDOS, 27, NT_STATUS_NONEXISTENT_SECTOR},
+ {ERRDOS, 28, NT_STATUS(0x8000000e)},
+ {ERRDOS, 31, NT_STATUS_UNSUCCESSFUL},
+ {ERRDOS, ERRbadshare, NT_STATUS_SHARING_VIOLATION},
+ {ERRDOS, ERRlock, NT_STATUS_FILE_LOCK_CONFLICT},
+ {ERRDOS, 34, NT_STATUS_WRONG_VOLUME},
+ {ERRDOS, 38, NT_STATUS_END_OF_FILE},
+ {ERRDOS, ERRunsup, NT_STATUS_CTL_FILE_NOT_SUPPORTED},
+ {ERRDOS, 51, NT_STATUS_REMOTE_NOT_LISTENING},
+ {ERRDOS, 52, NT_STATUS_DUPLICATE_NAME},
+ {ERRDOS, 53, NT_STATUS_BAD_NETWORK_PATH},
+ {ERRDOS, 54, NT_STATUS_NETWORK_BUSY},
+ {ERRDOS, 55, NT_STATUS_DEVICE_DOES_NOT_EXIST},
+ {ERRDOS, 56, NT_STATUS_TOO_MANY_COMMANDS},
+ {ERRDOS, 57, NT_STATUS_ADAPTER_HARDWARE_ERROR},
+ {ERRDOS, 58, NT_STATUS_INVALID_NETWORK_RESPONSE},
+ {ERRDOS, 59, NT_STATUS_UNEXPECTED_NETWORK_ERROR},
+ {ERRDOS, 60, NT_STATUS_BAD_REMOTE_ADAPTER},
+ {ERRDOS, 61, NT_STATUS_PRINT_QUEUE_FULL},
+ {ERRDOS, 62, NT_STATUS_NO_SPOOL_SPACE},
+ {ERRDOS, 63, NT_STATUS_PRINT_CANCELLED},
+ {ERRDOS, 64, NT_STATUS_NETWORK_NAME_DELETED},
+ {ERRDOS, 65, NT_STATUS_NETWORK_ACCESS_DENIED},
+ {ERRDOS, 66, NT_STATUS_BAD_DEVICE_TYPE},
+ {ERRDOS, ERRnosuchshare, NT_STATUS_BAD_NETWORK_NAME},
+ {ERRDOS, 68, NT_STATUS_TOO_MANY_GUIDS_REQUESTED},
+ {ERRDOS, 69, NT_STATUS_TOO_MANY_SESSIONS},
+ {ERRDOS, 70, NT_STATUS_SHARING_PAUSED},
+ {ERRDOS, 71, NT_STATUS_REQUEST_NOT_ACCEPTED},
+ {ERRDOS, 72, NT_STATUS_REDIRECTOR_PAUSED},
+ {ERRDOS, ERRfilexists, NT_STATUS_OBJECT_NAME_COLLISION},
+ {ERRDOS, 86, NT_STATUS_WRONG_PASSWORD},
+ {ERRDOS, 87, NT_STATUS_INVALID_INFO_CLASS},
+ {ERRDOS, 88, NT_STATUS_NET_WRITE_FAULT},
+ {ERRDOS, 109, NT_STATUS_PIPE_BROKEN},
+ {ERRDOS, 111, STATUS_MORE_ENTRIES},
+ {ERRDOS, 112, NT_STATUS_DISK_FULL},
+ {ERRDOS, 121, NT_STATUS_IO_TIMEOUT},
+ {ERRDOS, 122, NT_STATUS_BUFFER_TOO_SMALL},
+ {ERRDOS, ERRinvalidname, NT_STATUS_OBJECT_NAME_INVALID},
+ {ERRDOS, 124, NT_STATUS_INVALID_LEVEL},
+ {ERRDOS, 126, NT_STATUS_DLL_NOT_FOUND},
+ {ERRDOS, 127, NT_STATUS_PROCEDURE_NOT_FOUND},
+ {ERRDOS, 145, NT_STATUS_DIRECTORY_NOT_EMPTY},
+ {ERRDOS, 154, NT_STATUS_INVALID_VOLUME_LABEL},
+ {ERRDOS, 156, NT_STATUS_SUSPEND_COUNT_EXCEEDED},
+ {ERRDOS, 158, NT_STATUS_NOT_LOCKED},
+ {ERRDOS, 161, NT_STATUS_OBJECT_PATH_INVALID},
+ {ERRDOS, 170, NT_STATUS(0x80000011)},
+ {ERRDOS, 182, NT_STATUS_ORDINAL_NOT_FOUND},
+ {ERRDOS, 183, NT_STATUS_OBJECT_NAME_COLLISION},
+ {ERRDOS, 193, NT_STATUS_BAD_INITIAL_PC},
+ {ERRDOS, 203, NT_STATUS(0xc0000100)},
+ {ERRDOS, 206, NT_STATUS_NAME_TOO_LONG},
+ {ERRDOS, ERRbadpipe, NT_STATUS_INVALID_INFO_CLASS},
+ {ERRDOS, ERRpipebusy, NT_STATUS_INSTANCE_NOT_AVAILABLE},
+ {ERRDOS, ERRpipeclosing, NT_STATUS_PIPE_CLOSING},
+ {ERRDOS, ERRnotconnected, NT_STATUS_PIPE_DISCONNECTED},
+ {ERRDOS, ERRmoredata, STATUS_MORE_ENTRIES},
+ {ERRDOS, 240, NT_STATUS_VIRTUAL_CIRCUIT_CLOSED},
+ {ERRDOS, 254, NT_STATUS(0x80000013)},
+ {ERRDOS, 255, NT_STATUS_EA_TOO_LARGE},
+ {ERRDOS, 259, NT_STATUS_GUIDS_EXHAUSTED},
+ {ERRDOS, 267, NT_STATUS_NOT_A_DIRECTORY},
+ {ERRDOS, 275, NT_STATUS_EA_TOO_LARGE},
+ {ERRDOS, 276, NT_STATUS_NONEXISTENT_EA_ENTRY},
+ {ERRDOS, 277, NT_STATUS_NONEXISTENT_EA_ENTRY},
+ {ERRDOS, 278, NT_STATUS_NONEXISTENT_EA_ENTRY},
+ {ERRDOS, 282, NT_STATUS_EAS_NOT_SUPPORTED},
+ {ERRDOS, 288, NT_STATUS_MUTANT_NOT_OWNED},
+ {ERRDOS, 298, NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED},
+ {ERRDOS, 299, NT_STATUS(0x8000000d)},
+ {ERRDOS, 300, NT_STATUS_OPLOCK_NOT_GRANTED},
+ {ERRDOS, 301, NT_STATUS_INVALID_OPLOCK_PROTOCOL},
+ {ERRDOS, 487, NT_STATUS_CONFLICTING_ADDRESSES},
+ {ERRDOS, 534, NT_STATUS_INTEGER_OVERFLOW},
+ {ERRDOS, 535, NT_STATUS_PIPE_CONNECTED},
+ {ERRDOS, 536, NT_STATUS_PIPE_LISTENING},
+ {ERRDOS, 995, NT_STATUS_CANCELLED},
+ {ERRDOS, 997, NT_STATUS(0x00000103)},
+ {ERRDOS, 998, NT_STATUS_ACCESS_VIOLATION},
+ {ERRDOS, 999, NT_STATUS_IN_PAGE_ERROR},
+ {ERRDOS, 1001, NT_STATUS_BAD_INITIAL_STACK},
+ {ERRDOS, 1005, NT_STATUS_UNRECOGNIZED_VOLUME},
+ {ERRDOS, 1006, NT_STATUS_FILE_INVALID},
+ {ERRDOS, 1007, NT_STATUS_FULLSCREEN_MODE},
+ {ERRDOS, 1008, NT_STATUS_NO_TOKEN},
+ {ERRDOS, 1009, NT_STATUS_REGISTRY_CORRUPT},
+ {ERRDOS, 1016, NT_STATUS_REGISTRY_IO_FAILED},
+ {ERRDOS, 1017, NT_STATUS_NOT_REGISTRY_FILE},
+ {ERRDOS, 1018, NT_STATUS_KEY_DELETED},
+ {ERRDOS, 1019, NT_STATUS_NO_LOG_SPACE},
+ {ERRDOS, 1020, NT_STATUS_KEY_HAS_CHILDREN},
+ {ERRDOS, 1021, NT_STATUS_CHILD_MUST_BE_VOLATILE},
+ {ERRDOS, 1022, NT_STATUS(0x0000010c)},
+ {ERRSRV, ERRbadpw, NT_STATUS_WRONG_PASSWORD},
+ {ERRSRV, ERRbadtype, NT_STATUS_BAD_DEVICE_TYPE},
+ {ERRSRV, ERRaccess, NT_STATUS_NETWORK_ACCESS_DENIED},
+ {ERRSRV, ERRinvnid, NT_STATUS_NETWORK_NAME_DELETED},
+ {ERRSRV, ERRinvnetname, NT_STATUS_BAD_NETWORK_NAME},
+ {ERRSRV, ERRinvdevice, NT_STATUS_BAD_DEVICE_TYPE},
+ {ERRSRV, ERRqfull, NT_STATUS_PRINT_QUEUE_FULL},
+ {ERRSRV, ERRqtoobig, NT_STATUS_NO_SPOOL_SPACE},
+ {ERRSRV, ERRinvpfid, NT_STATUS_PRINT_CANCELLED},
+ {ERRSRV, ERRsmbcmd, NT_STATUS_NOT_IMPLEMENTED},
+ {ERRSRV, ERRbadpermits, NT_STATUS_NETWORK_ACCESS_DENIED},
+ {ERRSRV, ERRpaused, NT_STATUS_SHARING_PAUSED},
+ {ERRSRV, ERRmsgoff, NT_STATUS_REQUEST_NOT_ACCEPTED},
+ {ERRSRV, ERRnoroom, NT_STATUS_DISK_FULL},
+ {ERRSRV, ERRnoresource, NT_STATUS_REQUEST_NOT_ACCEPTED},
+ {ERRSRV, ERRtoomanyuids, NT_STATUS_TOO_MANY_SESSIONS},
+ {ERRSRV, 123, NT_STATUS_OBJECT_NAME_INVALID},
+ {ERRSRV, 206, NT_STATUS_OBJECT_NAME_INVALID},
+ {ERRHRD, 1, NT_STATUS_NOT_IMPLEMENTED},
+ {ERRHRD, 2, NT_STATUS_NO_SUCH_DEVICE},
+ {ERRHRD, 3, NT_STATUS_OBJECT_PATH_NOT_FOUND},
+ {ERRHRD, 4, NT_STATUS_TOO_MANY_OPENED_FILES},
+ {ERRHRD, 5, NT_STATUS_INVALID_LOCK_SEQUENCE},
+ {ERRHRD, 6, NT_STATUS_INVALID_HANDLE},
+ {ERRHRD, 8, NT_STATUS_INSUFFICIENT_RESOURCES},
+ {ERRHRD, 12, NT_STATUS_INVALID_LOCK_SEQUENCE},
+ {ERRHRD, 13, NT_STATUS_DATA_ERROR},
+ {ERRHRD, 14, NT_STATUS_SECTION_NOT_EXTENDED},
+ {ERRHRD, 16, NT_STATUS_DIRECTORY_NOT_EMPTY},
+ {ERRHRD, 17, NT_STATUS_NOT_SAME_DEVICE},
+ {ERRHRD, 18, NT_STATUS(0x80000006)},
+ {ERRHRD, ERRnowrite, NT_STATUS_MEDIA_WRITE_PROTECTED},
+ {ERRHRD, ERRnotready, NT_STATUS_NO_MEDIA_IN_DEVICE},
+ {ERRHRD, ERRbadcmd, NT_STATUS_INVALID_DEVICE_STATE},
+ {ERRHRD, ERRdata, NT_STATUS_DATA_ERROR},
+ {ERRHRD, ERRbadreq, NT_STATUS_DATA_ERROR},
+ {ERRHRD, ERRbadmedia, NT_STATUS_DISK_CORRUPT_ERROR},
+ {ERRHRD, ERRbadsector, NT_STATUS_NONEXISTENT_SECTOR},
+ {ERRHRD, ERRnopaper, NT_STATUS(0x8000000e)},
+ {ERRHRD, ERRgeneral, NT_STATUS_UNSUCCESSFUL},
+ {ERRHRD, ERRbadshare, NT_STATUS_SHARING_VIOLATION},
+ {ERRHRD, ERRlock, NT_STATUS_FILE_LOCK_CONFLICT},
+ {ERRHRD, ERRwrongdisk, NT_STATUS_WRONG_VOLUME},
+ {ERRHRD, 38, NT_STATUS_END_OF_FILE},
+ {ERRHRD, 50, NT_STATUS_CTL_FILE_NOT_SUPPORTED},
+ {ERRHRD, 51, NT_STATUS_REMOTE_NOT_LISTENING},
+ {ERRHRD, 52, NT_STATUS_DUPLICATE_NAME},
+ {ERRHRD, 53, NT_STATUS_BAD_NETWORK_PATH},
+ {ERRHRD, 54, NT_STATUS_NETWORK_BUSY},
+ {ERRHRD, 55, NT_STATUS_DEVICE_DOES_NOT_EXIST},
+ {ERRHRD, 56, NT_STATUS_TOO_MANY_COMMANDS},
+ {ERRHRD, 57, NT_STATUS_ADAPTER_HARDWARE_ERROR},
+ {ERRHRD, 58, NT_STATUS_INVALID_NETWORK_RESPONSE},
+ {ERRHRD, 59, NT_STATUS_UNEXPECTED_NETWORK_ERROR},
+ {ERRHRD, 60, NT_STATUS_BAD_REMOTE_ADAPTER},
+ {ERRHRD, 61, NT_STATUS_PRINT_QUEUE_FULL},
+ {ERRHRD, 62, NT_STATUS_NO_SPOOL_SPACE},
+ {ERRHRD, 63, NT_STATUS_PRINT_CANCELLED},
+ {ERRHRD, 64, NT_STATUS_NETWORK_NAME_DELETED},
+ {ERRHRD, 65, NT_STATUS_NETWORK_ACCESS_DENIED},
+ {ERRHRD, 66, NT_STATUS_BAD_DEVICE_TYPE},
+ {ERRHRD, 67, NT_STATUS_BAD_NETWORK_NAME},
+ {ERRHRD, 68, NT_STATUS_TOO_MANY_GUIDS_REQUESTED},
+ {ERRHRD, 69, NT_STATUS_TOO_MANY_SESSIONS},
+ {ERRHRD, 70, NT_STATUS_SHARING_PAUSED},
+ {ERRHRD, 71, NT_STATUS_REQUEST_NOT_ACCEPTED},
+ {ERRHRD, 72, NT_STATUS_REDIRECTOR_PAUSED},
+ {ERRHRD, 80, NT_STATUS_OBJECT_NAME_COLLISION},
+ {ERRHRD, 86, NT_STATUS_WRONG_PASSWORD},
+ {ERRHRD, 87, NT_STATUS_INVALID_INFO_CLASS},
+ {ERRHRD, 88, NT_STATUS_NET_WRITE_FAULT},
+ {ERRHRD, 109, NT_STATUS_PIPE_BROKEN},
+ {ERRHRD, 111, STATUS_MORE_ENTRIES},
+ {ERRHRD, 112, NT_STATUS_DISK_FULL},
+ {ERRHRD, 121, NT_STATUS_IO_TIMEOUT},
+ {ERRHRD, 122, NT_STATUS_BUFFER_TOO_SMALL},
+ {ERRHRD, 123, NT_STATUS_OBJECT_NAME_INVALID},
+ {ERRHRD, 124, NT_STATUS_INVALID_LEVEL},
+ {ERRHRD, 126, NT_STATUS_DLL_NOT_FOUND},
+ {ERRHRD, 127, NT_STATUS_PROCEDURE_NOT_FOUND},
+ {ERRHRD, 145, NT_STATUS_DIRECTORY_NOT_EMPTY},
+ {ERRHRD, 154, NT_STATUS_INVALID_VOLUME_LABEL},
+ {ERRHRD, 156, NT_STATUS_SUSPEND_COUNT_EXCEEDED},
+ {ERRHRD, 158, NT_STATUS_NOT_LOCKED},
+ {ERRHRD, 161, NT_STATUS_OBJECT_PATH_INVALID},
+ {ERRHRD, 170, NT_STATUS(0x80000011)},
+ {ERRHRD, 182, NT_STATUS_ORDINAL_NOT_FOUND},
+ {ERRHRD, 183, NT_STATUS_OBJECT_NAME_COLLISION},
+ {ERRHRD, 193, NT_STATUS_BAD_INITIAL_PC},
+ {ERRHRD, 203, NT_STATUS(0xc0000100)},
+ {ERRHRD, 206, NT_STATUS_NAME_TOO_LONG},
+ {ERRHRD, 230, NT_STATUS_INVALID_INFO_CLASS},
+ {ERRHRD, 231, NT_STATUS_INSTANCE_NOT_AVAILABLE},
+ {ERRHRD, 232, NT_STATUS_PIPE_CLOSING},
+ {ERRHRD, 233, NT_STATUS_PIPE_DISCONNECTED},
+ {ERRHRD, 234, STATUS_MORE_ENTRIES},
+ {ERRHRD, 240, NT_STATUS_VIRTUAL_CIRCUIT_CLOSED},
+ {ERRHRD, 254, NT_STATUS(0x80000013)},
+ {ERRHRD, 255, NT_STATUS_EA_TOO_LARGE},
+ {ERRHRD, 259, NT_STATUS_GUIDS_EXHAUSTED},
+ {ERRHRD, 267, NT_STATUS_NOT_A_DIRECTORY},
+ {ERRHRD, 275, NT_STATUS_EA_TOO_LARGE},
+ {ERRHRD, 276, NT_STATUS_NONEXISTENT_EA_ENTRY},
+ {ERRHRD, 277, NT_STATUS_NONEXISTENT_EA_ENTRY},
+ {ERRHRD, 278, NT_STATUS_NONEXISTENT_EA_ENTRY},
+ {ERRHRD, 282, NT_STATUS_EAS_NOT_SUPPORTED},
+ {ERRHRD, 288, NT_STATUS_MUTANT_NOT_OWNED},
+ {ERRHRD, 298, NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED},
+ {ERRHRD, 299, NT_STATUS(0x8000000d)},
+ {ERRHRD, 300, NT_STATUS_OPLOCK_NOT_GRANTED},
+ {ERRHRD, 301, NT_STATUS_INVALID_OPLOCK_PROTOCOL},
+ {ERRHRD, 487, NT_STATUS_CONFLICTING_ADDRESSES},
+ {ERRHRD, 534, NT_STATUS_INTEGER_OVERFLOW},
+ {ERRHRD, 535, NT_STATUS_PIPE_CONNECTED},
+ {ERRHRD, 536, NT_STATUS_PIPE_LISTENING},
+ {ERRHRD, 995, NT_STATUS_CANCELLED},
+ {ERRHRD, 997, NT_STATUS(0x00000103)},
+ {ERRHRD, 998, NT_STATUS_ACCESS_VIOLATION},
+ {ERRHRD, 999, NT_STATUS_IN_PAGE_ERROR},
+ {ERRHRD, 1001, NT_STATUS_BAD_INITIAL_STACK},
+ {ERRHRD, 1005, NT_STATUS_UNRECOGNIZED_VOLUME},
+ {ERRHRD, 1006, NT_STATUS_FILE_INVALID},
+ {ERRHRD, 1007, NT_STATUS_FULLSCREEN_MODE},
+ {ERRHRD, 1008, NT_STATUS_NO_TOKEN},
+ {ERRHRD, 1009, NT_STATUS_REGISTRY_CORRUPT},
+ {ERRHRD, 1016, NT_STATUS_REGISTRY_IO_FAILED},
+ {ERRHRD, 1017, NT_STATUS_NOT_REGISTRY_FILE},
+ {ERRHRD, 1018, NT_STATUS_KEY_DELETED},
+ {ERRHRD, 1019, NT_STATUS_NO_LOG_SPACE},
+ {ERRHRD, 1020, NT_STATUS_KEY_HAS_CHILDREN},
+ {ERRHRD, 1021, NT_STATUS_CHILD_MUST_BE_VOLATILE},
+ {ERRHRD, 1022, NT_STATUS(0x0000010c)},
+};
+
+
+/*****************************************************************************
+convert a dos eclas/ecode to a NT status32 code
+ *****************************************************************************/
+NTSTATUS dos_to_ntstatus(int eclass, int ecode)
+{
+ int i;
+ for (i=0; NT_STATUS_V(dos_to_ntstatus_map[i].ntstatus); i++) {
+ if (eclass == dos_to_ntstatus_map[i].dos_class &&
+ ecode == dos_to_ntstatus_map[i].dos_code) {
+ return dos_to_ntstatus_map[i].ntstatus;
+ }
+ }
+ return NT_STATUS_UNSUCCESSFUL;
+}
+
+
+/*****************************************************************************
+convert a NT status code to a dos class/code
+ *****************************************************************************/
+void ntstatus_to_dos(NTSTATUS ntstatus, uint8 *eclass, uint32 *ecode)
+{
+ int i;
+ for (i=0; NT_STATUS_V(ntstatus_to_dos_map[i].ntstatus); i++) {
+ if (NT_STATUS_V(ntstatus) ==
+ NT_STATUS_V(ntstatus_to_dos_map[i].ntstatus)) {
+ *eclass = ntstatus_to_dos_map[i].dos_class;
+ *ecode = ntstatus_to_dos_map[i].dos_code;
+ return;
+ }
+ }
+ *eclass = ERRSRV;
+ *ecode = ERRerror;
+}
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c
index 1b8e8737f7..7fdeb4e5a7 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/libsmb/nterr.c
@@ -26,8 +26,7 @@
typedef struct
{
char *nt_errstr;
- uint32 nt_errcode;
-
+ NTSTATUS nt_errcode;
} nt_err_code_struct;
nt_err_code_struct nt_errs[] =
@@ -534,22 +533,22 @@ nt_err_code_struct nt_errs[] =
{ "NT_STATUS_TOO_MANY_LINKS", NT_STATUS_TOO_MANY_LINKS },
{ "NT_STATUS_QUOTA_LIST_INCONSISTENT", NT_STATUS_QUOTA_LIST_INCONSISTENT },
{ "NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE },
- { NULL, 0 }
+ { NULL, NT_STATUS(0) }
};
/*****************************************************************************
returns an NT error message. not amazingly helpful, but better than a number.
*****************************************************************************/
-char *get_nt_error_msg(uint32 nt_code)
+char *get_nt_error_msg(NTSTATUS nt_code)
{
static pstring msg;
int idx = 0;
- slprintf(msg, sizeof(msg), "NT code 0x%08x", nt_code);
+ slprintf(msg, sizeof(msg), "NT code 0x%08x", NT_STATUS_V(nt_code));
while (nt_errs[idx].nt_errstr != NULL) {
- if ((nt_errs[idx].nt_errcode & 0xFFFFFF) ==
- (nt_code & 0xFFFFFF)) {
+ if ((NT_STATUS_V(nt_errs[idx].nt_errcode) & 0xFFFFFF) ==
+ (NT_STATUS_V(nt_code) & 0xFFFFFF)) {
return nt_errs[idx].nt_errstr;
}
idx++;
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index d6915140a5..e905bd56e9 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -105,7 +105,7 @@ NTSTATUS do_lock(files_struct *fsp,connection_struct *conn, uint16 lock_pid,
BOOL ok = False;
if (!lp_locking(SNUM(conn)))
- return NT_STATUS_NOPROBLEMO;
+ return NT_STATUS(0);
/* NOTE! 0 byte long ranges ARE allowed and should be stored */
@@ -156,10 +156,10 @@ NTSTATUS do_unlock(files_struct *fsp,connection_struct *conn, uint16 lock_pid,
BOOL ok = False;
if (!lp_locking(SNUM(conn)))
- return NT_STATUS_NOPROBLEMO;
+ return NT_STATUS(0);
if (!OPEN_FSP(fsp) || !fsp->can_lock || (fsp->conn != conn)) {
- return NT_STATUS_INVALID_HANDLE;
+ return NT_STATUS(NT_STATUS_INVALID_HANDLE);
}
DEBUG(10,("do_unlock: unlock start=%.0f len=%.0f requested for file %s\n",
@@ -176,15 +176,15 @@ NTSTATUS do_unlock(files_struct *fsp,connection_struct *conn, uint16 lock_pid,
if (!ok) {
DEBUG(10,("do_unlock: returning ERRlock.\n" ));
- return NT_STATUS_LOCK_NOT_GRANTED;
+ return NT_STATUS(NT_STATUS_LOCK_NOT_GRANTED);
}
if (!lp_posix_locking(SNUM(conn)))
- return NT_STATUS_NOPROBLEMO;
+ return NT_STATUS(0);
(void)release_posix_lock(fsp, offset, count);
- return NT_STATUS_NOPROBLEMO; /* Did unlock */
+ return NT_STATUS(0);
}
/****************************************************************************
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index cb1b2fb3c9..fd4e3b6ec2 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -295,7 +295,7 @@ static void init_reply_lookup_sids(LSA_R_LOOKUP_SIDS *r_l,
_lsa_open_policy2.
***************************************************************************/
-uint32 _lsa_open_policy2(pipes_struct *p, LSA_Q_OPEN_POL2 *q_u, LSA_R_OPEN_POL2 *r_u)
+NTSTATUS _lsa_open_policy2(pipes_struct *p, LSA_Q_OPEN_POL2 *q_u, LSA_R_OPEN_POL2 *r_u)
{
/* lkclXXXX having decoded it, ignore all fields in the open policy! */
diff --git a/source3/smbd/auth.c b/source3/smbd/auth.c
index 8ea867fe8c..ec493b7c06 100644
--- a/source3/smbd/auth.c
+++ b/source3/smbd/auth.c
@@ -56,10 +56,11 @@ static BOOL check_domain_match(char *user, char *domain)
as it makes the calls itself when needed.
****************************************************************************/
-uint32 check_password(const auth_usersupplied_info *user_info, auth_serversupplied_info *server_info)
+NTSTATUS check_password(const auth_usersupplied_info *user_info,
+ auth_serversupplied_info *server_info)
{
- uint32 nt_status = NT_STATUS_LOGON_FAILURE;
+ NTSTATUS nt_status = NT_STATUS_LOGON_FAILURE;
BOOL done_pam = False;
DEBUG(3, ("check_password: Checking password for user %s with the new password interface\n", user_info->smb_username.str));
@@ -120,9 +121,9 @@ SMB hash
return True if the password is correct, False otherwise
****************************************************************************/
-uint32 pass_check_smb_with_chal(char *user, char *domain, uchar chal[8],
- uchar *lm_pwd, int lm_pwd_len,
- uchar *nt_pwd, int nt_pwd_len)
+NTSTATUS pass_check_smb_with_chal(char *user, char *domain, uchar chal[8],
+ uchar *lm_pwd, int lm_pwd_len,
+ uchar *nt_pwd, int nt_pwd_len)
{
auth_usersupplied_info user_info;
@@ -196,9 +197,9 @@ uint32 pass_check_smb_with_chal(char *user, char *domain, uchar chal[8],
return check_password(&user_info, &server_info);
}
-uint32 pass_check_smb(char *user, char *domain,
- uchar *lm_pwd, int lm_pwd_len,
- uchar *nt_pwd, int nt_pwd_len)
+NTSTATUS pass_check_smb(char *user, char *domain,
+ uchar *lm_pwd, int lm_pwd_len,
+ uchar *nt_pwd, int nt_pwd_len)
{
uchar chal[8];
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c
index 697e1df194..1365985660 100644
--- a/source3/smbd/blocking.c
+++ b/source3/smbd/blocking.c
@@ -276,7 +276,7 @@ static BOOL process_lockread(blocking_lock_record *blr)
status = do_lock( fsp, conn, SVAL(inbuf,smb_pid), (SMB_BIG_UINT)numtoread,
(SMB_BIG_UINT)startpos, READ_LOCK);
- if (status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_V(status)) {
if ((errno != EACCES) && (errno != EAGAIN)) {
/*
* We have other than a "can't get lock" POSIX
@@ -342,7 +342,7 @@ static BOOL process_lock(blocking_lock_record *blr)
errno = 0;
status = do_lock(fsp, conn, SVAL(inbuf,smb_pid), (SMB_BIG_UINT)count,
(SMB_BIG_UINT)offset, WRITE_LOCK);
- if (status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_IS_ERR(status)) {
if((errno != EACCES) && (errno != EAGAIN)) {
/*
* We have other than a "can't get lock" POSIX
@@ -391,7 +391,7 @@ static BOOL process_lockingX(blocking_lock_record *blr)
uint16 lock_pid;
BOOL large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES);
char *data;
- NTSTATUS status = 0;
+ NTSTATUS status = NT_STATUS_OK;
data = smb_buf(inbuf) + ((large_file_format ? 20 : 10)*num_ulocks);
@@ -414,7 +414,7 @@ static BOOL process_lockingX(blocking_lock_record *blr)
errno = 0;
status = do_lock(fsp,conn,count,lock_pid,offset,
((locktype & 1) ? READ_LOCK : WRITE_LOCK));
- if (status != NT_STATUS_NOPROBLEMO) break;
+ if (NT_STATUS_IS_ERR(status)) break;
}
if(blr->lock_num == num_locks) {
diff --git a/source3/smbd/error.c b/source3/smbd/error.c
index 27dacda377..f2613dc3a8 100644
--- a/source3/smbd/error.c
+++ b/source3/smbd/error.c
@@ -84,14 +84,14 @@ int unix_error_packet(char *outbuf,int def_class,uint32 def_code,int line)
}
}
- return error_packet(outbuf,0,eclass,ecode,line);
+ return error_packet(outbuf,NT_STATUS_OK,eclass,ecode,line);
}
/****************************************************************************
create an error packet. Normally called using the ERROR() macro
****************************************************************************/
-int error_packet(char *outbuf,uint32 ntstatus,
+int error_packet(char *outbuf,NTSTATUS ntstatus,
uint8 eclass,uint32 ecode,int line)
{
int outsize = set_message(outbuf,0,0,True);
@@ -101,10 +101,10 @@ int error_packet(char *outbuf,uint32 ntstatus,
DEBUG(3,("error string = %s\n",strerror(errno)));
if (global_client_caps & CAP_STATUS32) {
- if (ntstatus == 0 && eclass) {
+ if (NT_STATUS_V(ntstatus) == 0 && eclass) {
ntstatus = dos_to_ntstatus(eclass, ecode);
}
- SIVAL(outbuf,smb_rcls,ntstatus);
+ SIVAL(outbuf,smb_rcls,NT_STATUS_V(ntstatus));
SSVAL(outbuf,smb_flg2, SVAL(outbuf,smb_flg2)|FLAGS2_32_BIT_ERROR_CODES);
DEBUG(3,("error packet at line %d cmd=%d (%s) %s\n",
line,
@@ -114,7 +114,7 @@ int error_packet(char *outbuf,uint32 ntstatus,
return outsize;
}
- if (eclass == 0 && ntstatus) {
+ if (eclass == 0 && NT_STATUS_V(ntstatus)) {
ntstatus_to_dos(ntstatus, &eclass, &ecode);
}
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 2981c6bfb2..8a70e69365 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -63,7 +63,7 @@ struct generic_mapping file_generic_mapping = {
HACK ! Always assumes smb_setup field is zero.
****************************************************************************/
-static int send_nt_replies(char *inbuf, char *outbuf, int bufsize, uint32 nt_error, char *params,
+static int send_nt_replies(char *inbuf, char *outbuf, int bufsize, NTSTATUS nt_error, char *params,
int paramsize, char *pdata, int datasize)
{
extern int max_send;
@@ -83,7 +83,7 @@ static int send_nt_replies(char *inbuf, char *outbuf, int bufsize, uint32 nt_err
set_message(outbuf,18,0,True);
- if(nt_error != 0) {
+ if (NT_STATUS_V(nt_error)) {
ERROR_NT(nt_error);
}
@@ -937,7 +937,7 @@ static int do_nt_transact_create_pipe( connection_struct *conn,
DEBUG(5,("do_nt_transact_create_pipe: open name = %s\n", fname));
/* Send the required number of replies */
- send_nt_replies(inbuf, outbuf, bufsize, 0, params, 69, *ppdata, 0);
+ send_nt_replies(inbuf, outbuf, bufsize, NT_STATUS_OK, params, 69, *ppdata, 0);
return -1;
}
@@ -1353,7 +1353,7 @@ static int call_nt_transact_create(connection_struct *conn,
DEBUG(5,("call_nt_transact_create: open name = %s\n", fname));
/* Send the required number of replies */
- send_nt_replies(inbuf, outbuf, bufsize, 0, params, 69, *ppdata, 0);
+ send_nt_replies(inbuf, outbuf, bufsize, NT_STATUS_OK, params, 69, *ppdata, 0);
return -1;
}
@@ -1450,7 +1450,7 @@ static int call_nt_transact_rename(connection_struct *conn,
/*
* Rename was successful.
*/
- send_nt_replies(inbuf, outbuf, bufsize, 0, NULL, 0, NULL, 0);
+ send_nt_replies(inbuf, outbuf, bufsize, NT_STATUS_OK, NULL, 0, NULL, 0);
DEBUG(3,("nt transact rename from = %s, to = %s succeeded.\n",
fsp->fsp_name, new_name));
@@ -1570,7 +1570,7 @@ security descriptor.\n"));
talloc_destroy(mem_ctx);
- send_nt_replies(inbuf, outbuf, bufsize, 0, params, 4, data, (int)sd_size);
+ send_nt_replies(inbuf, outbuf, bufsize, NT_STATUS_OK, params, 4, data, (int)sd_size);
return -1;
}
@@ -1609,7 +1609,7 @@ static int call_nt_transact_set_security_desc(connection_struct *conn,
if (!set_sd( fsp, data, total_data_count, security_info_sent, &error_class, &error_code))
return ERROR_DOS(error_class, error_code);
- send_nt_replies(inbuf, outbuf, bufsize, 0, NULL, 0, NULL, 0);
+ send_nt_replies(inbuf, outbuf, bufsize, NT_STATUS_OK, NULL, 0, NULL, 0);
return -1;
}
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 236bb48ce9..f1a83c27f0 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -487,7 +487,7 @@ static int session_trust_account(connection_struct *conn, char *inbuf, char *out
if (!last_challenge(user_info.chal)) {
DEBUG(1,("smb_password_ok: no challenge done - password failed\n"));
- return NT_STATUS_LOGON_FAILURE;
+ return ERROR_NT(NT_STATUS_LOGON_FAILURE);
}
pdb_init_sam(&sam_trust_acct);
@@ -789,9 +789,11 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
add_session_user(user);
if (!guest) {
- valid_password = (pass_check_smb(user, domain,
- (unsigned char *)smb_apasswd, smb_apasslen,
- (unsigned char *)smb_ntpasswd, smb_ntpasslen) == NT_STATUS_NOPROBLEMO);
+ valid_password = NT_STATUS_IS_OK(pass_check_smb(user, domain,
+ (unsigned char *)smb_apasswd,
+ smb_apasslen,
+ (unsigned char *)smb_ntpasswd,
+ smb_ntpasslen));
/* The true branch will be executed if
(1) the NT password failed (or was not tried), and
@@ -2086,7 +2088,7 @@ int reply_lockread(connection_struct *conn, char *inbuf,char *outbuf, int length
status = do_lock(fsp, conn, SVAL(inbuf,smb_pid),
(SMB_BIG_UINT)numtoread, (SMB_BIG_UINT)startpos, WRITE_LOCK);
- if (status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_V(status)) {
if (lp_blocking_locks(SNUM(conn))) {
/*
* A blocking lock was requested. Package up
@@ -2407,7 +2409,7 @@ int reply_writeunlock(connection_struct *conn, char *inbuf,char *outbuf,
status = do_unlock(fsp, conn, SVAL(inbuf,smb_pid), (SMB_BIG_UINT)numtowrite,
(SMB_BIG_UINT)startpos);
- if (status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_V(status)) {
END_PROFILE(SMBwriteunlock);
return ERROR_NT(status);
}
@@ -2885,8 +2887,8 @@ int reply_lock(connection_struct *conn,
fsp->fd, fsp->fnum, (double)offset, (double)count));
status = do_lock(fsp, conn, SVAL(inbuf,smb_pid), count, offset, WRITE_LOCK);
- if (status != NT_STATUS_NOPROBLEMO) {
- if (status != NT_STATUS_NOPROBLEMO && lp_blocking_locks(SNUM(conn))) {
+ if (NT_STATUS_V(status)) {
+ if (lp_blocking_locks(SNUM(conn))) {
/*
* A blocking lock was requested. Package up
* this smb into a queued request and push it
@@ -2924,7 +2926,7 @@ int reply_unlock(connection_struct *conn, char *inbuf,char *outbuf, int size,
offset = (SMB_BIG_UINT)IVAL(inbuf,smb_vwv3);
status = do_unlock(fsp, conn, SVAL(inbuf,smb_pid), count, offset);
- if (status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_V(status)) {
END_PROFILE(SMBunlock);
return ERROR_NT(status);
}
@@ -4232,7 +4234,7 @@ no oplock granted on this file (%s).\n", fsp->fnum, fsp->fsp_name));
(double)offset, (double)count, (unsigned int)lock_pid, fsp->fsp_name ));
status = do_unlock(fsp,conn,lock_pid,count,offset);
- if (status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_V(status)) {
END_PROFILE(SMBlockingX);
return ERROR_NT(status);
}
@@ -4265,7 +4267,7 @@ no oplock granted on this file (%s).\n", fsp->fnum, fsp->fsp_name));
status = do_lock(fsp,conn,lock_pid, count,offset,
((locktype & 1) ? READ_LOCK : WRITE_LOCK));
- if (status != NT_STATUS_NOPROBLEMO) {
+ if (NT_STATUS_V(status)) {
if ((lock_timeout != 0) && lp_blocking_locks(SNUM(conn))) {
/*
* A blocking lock was requested. Package up