Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
40bc5f64
Commit
40bc5f64
authored
Aug 16, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Aug 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add more error codes.
parent
80e85cdb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
220 additions
and
15 deletions
+220
-15
error.c
dlls/ntdll/error.c
+40
-15
error.c
dlls/ntdll/tests/error.c
+29
-0
winerror.h
include/winerror.h
+151
-0
No files found.
dlls/ntdll/error.c
View file @
40bc5f64
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
*
*
* Copyright 2000 Alexandre Julliard
* Copyright 2000 Alexandre Julliard
* Copyright 2002 Andriy Palamarchuk
* Copyright 2002 Andriy Palamarchuk
* Copyright 2010 André Hentschel
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -210,10 +211,10 @@ static const DWORD table_00000102[32] =
...
@@ -210,10 +211,10 @@ static const DWORD table_00000102[32] =
ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY
/* 00000121 (STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY) */
ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY
/* 00000121 (STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY) */
};
};
static
const
DWORD
table_40000002
[
12
]
=
static
const
DWORD
table_40000002
[
36
]
=
{
{
ERROR_INVALID_PARAMETER
,
/* 40000002 (STATUS_WORKING_SET_LIMIT_RANGE) */
ERROR_INVALID_PARAMETER
,
/* 40000002 (STATUS_WORKING_SET_LIMIT_RANGE) */
0
,
/* 40000003 (STATUS_IMAGE_NOT_AT_BASE) */
ERROR_IMAGE_NOT_AT_BASE
,
/* 40000003 (STATUS_IMAGE_NOT_AT_BASE) */
0
,
/* 40000004 (STATUS_RXACT_STATE_CREATED) */
0
,
/* 40000004 (STATUS_RXACT_STATE_CREATED) */
0
,
/* 40000005 (STATUS_SEGMENT_NOTIFICATION) */
0
,
/* 40000005 (STATUS_SEGMENT_NOTIFICATION) */
ERROR_LOCAL_USER_SESSION_KEY
,
/* 40000006 (STATUS_LOCAL_USER_SESSION_KEY) */
ERROR_LOCAL_USER_SESSION_KEY
,
/* 40000006 (STATUS_LOCAL_USER_SESSION_KEY) */
...
@@ -223,7 +224,31 @@ static const DWORD table_40000002[12] =
...
@@ -223,7 +224,31 @@ static const DWORD table_40000002[12] =
0
,
/* 4000000a (STATUS_FT_READ_RECOVERY_FROM_BACKUP) */
0
,
/* 4000000a (STATUS_FT_READ_RECOVERY_FROM_BACKUP) */
0
,
/* 4000000b (STATUS_FT_WRITE_RECOVERY) */
0
,
/* 4000000b (STATUS_FT_WRITE_RECOVERY) */
ERROR_COUNTER_TIMEOUT
,
/* 4000000c (STATUS_SERIAL_COUNTER_TIMEOUT) */
ERROR_COUNTER_TIMEOUT
,
/* 4000000c (STATUS_SERIAL_COUNTER_TIMEOUT) */
ERROR_NULL_LM_PASSWORD
/* 4000000d (STATUS_NULL_LM_PASSWORD) */
ERROR_NULL_LM_PASSWORD
,
/* 4000000d (STATUS_NULL_LM_PASSWORD) */
ERROR_IMAGE_MACHINE_TYPE_MISMATCH
,
/* 4000000e (STATUS_IMAGE_MACHINE_TYPE_MISMATCH) */
ERROR_RECEIVE_PARTIAL
,
/* 4000000f (STATUS_RECEIVE_PARTIAL) */
ERROR_RECEIVE_EXPEDITED
,
/* 40000010 (STATUS_RECEIVE_EXPEDITED) */
ERROR_RECEIVE_PARTIAL_EXPEDITED
,
/* 40000011 (STATUS_RECEIVE_PARTIAL_EXPEDITED) */
ERROR_EVENT_DONE
,
/* 40000012 (STATUS_EVENT_DONE) */
ERROR_EVENT_PENDING
,
/* 40000013 (STATUS_EVENT_PENDING) */
ERROR_CHECKING_FILE_SYSTEM
,
/* 40000014 (STATUS_CHECKING_FILE_SYSTEM) */
ERROR_FATAL_APP_EXIT
,
/* 40000015 (STATUS_FATAL_APP_EXIT) */
ERROR_PREDEFINED_HANDLE
,
/* 40000016 (STATUS_PREDEFINED_HANDLE) */
ERROR_WAS_UNLOCKED
,
/* 40000017 (STATUS_WAS_UNLOCKED) */
ERROR_SERVICE_NOTIFICATION
,
/* 40000018 (STATUS_SERVICE_NOTIFICATION) */
ERROR_WAS_LOCKED
,
/* 40000019 (STATUS_WAS_LOCKED) */
ERROR_LOG_HARD_ERROR
,
/* 4000001a (STATUS_LOG_HARD_ERROR) */
ERROR_ALREADY_WIN32
,
/* 4000001b (STATUS_ALREADY_WIN32) */
0
,
/* 4000001c (STATUS_WX86_UNSIMULATE) */
0
,
/* 4000001d (STATUS_WX86_CONTINUE) */
0
,
/* 4000001e (STATUS_WX86_SINGLE_STEP) */
0
,
/* 4000001f (STATUS_WX86_BREAKPOINT) */
0
,
/* 40000020 (STATUS_WX86_EXCEPTION_CONTINUE) */
0
,
/* 40000021 (STATUS_WX86_EXCEPTION_LASTCHANCE) */
0
,
/* 40000022 (STATUS_WX86_EXCEPTION_CHAIN) */
ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE
,
/* 40000023 (STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE) */
ERROR_NO_YIELD_PERFORMED
,
/* 40000024 (STATUS_NO_YIELD_PERFORMED) */
ERROR_TIMER_RESUME_IGNORED
/* 40000025 (STATUS_TIMER_RESUME_IGNORED) */
};
};
static
const
DWORD
table_40000370
[
1
]
=
static
const
DWORD
table_40000370
[
1
]
=
...
@@ -699,11 +724,11 @@ static const DWORD table_c0000001[411] =
...
@@ -699,11 +724,11 @@ static const DWORD table_c0000001[411] =
ERROR_TIME_SKEW
,
/* c0000133 (STATUS_TIME_DIFFERENCE_AT_DC) */
ERROR_TIME_SKEW
,
/* c0000133 (STATUS_TIME_DIFFERENCE_AT_DC) */
0
,
/* c0000134 (STATUS_SYNCHRONIZATION_REQUIRED) */
0
,
/* c0000134 (STATUS_SYNCHRONIZATION_REQUIRED) */
ERROR_MOD_NOT_FOUND
,
/* c0000135 (STATUS_DLL_NOT_FOUND) */
ERROR_MOD_NOT_FOUND
,
/* c0000135 (STATUS_DLL_NOT_FOUND) */
0
,
/* c0000136 (STATUS_OPEN_FAILED) */
ERROR_NET_OPEN_FAILED
,
/* c0000136 (STATUS_OPEN_FAILED) */
0
,
/* c0000137 (STATUS_IO_PRIVILEGE_FAILED) */
ERROR_IO_PRIVILEGE_FAILED
,
/* c0000137 (STATUS_IO_PRIVILEGE_FAILED) */
ERROR_INVALID_ORDINAL
,
/* c0000138 (STATUS_ORDINAL_NOT_FOUND) */
ERROR_INVALID_ORDINAL
,
/* c0000138 (STATUS_ORDINAL_NOT_FOUND) */
ERROR_PROC_NOT_FOUND
,
/* c0000139 (STATUS_ENTRYPOINT_NOT_FOUND) */
ERROR_PROC_NOT_FOUND
,
/* c0000139 (STATUS_ENTRYPOINT_NOT_FOUND) */
0
,
/* c000013a (STATUS_CONTROL_C_EXIT) */
ERROR_CONTROL_C_EXIT
,
/* c000013a (STATUS_CONTROL_C_EXIT) */
ERROR_NETNAME_DELETED
,
/* c000013b (STATUS_LOCAL_DISCONNECT) */
ERROR_NETNAME_DELETED
,
/* c000013b (STATUS_LOCAL_DISCONNECT) */
ERROR_NETNAME_DELETED
,
/* c000013c (STATUS_REMOTE_DISCONNECT) */
ERROR_NETNAME_DELETED
,
/* c000013c (STATUS_REMOTE_DISCONNECT) */
ERROR_REM_NOT_LIST
,
/* c000013d (STATUS_REMOTE_RESOURCES) */
ERROR_REM_NOT_LIST
,
/* c000013d (STATUS_REMOTE_RESOURCES) */
...
@@ -712,18 +737,18 @@ static const DWORD table_c0000001[411] =
...
@@ -712,18 +737,18 @@ static const DWORD table_c0000001[411] =
ERROR_UNEXP_NET_ERR
,
/* c0000140 (STATUS_INVALID_CONNECTION) */
ERROR_UNEXP_NET_ERR
,
/* c0000140 (STATUS_INVALID_CONNECTION) */
ERROR_UNEXP_NET_ERR
,
/* c0000141 (STATUS_INVALID_ADDRESS) */
ERROR_UNEXP_NET_ERR
,
/* c0000141 (STATUS_INVALID_ADDRESS) */
ERROR_DLL_INIT_FAILED
,
/* c0000142 (STATUS_DLL_INIT_FAILED) */
ERROR_DLL_INIT_FAILED
,
/* c0000142 (STATUS_DLL_INIT_FAILED) */
0
,
/* c0000143 (STATUS_MISSING_SYSTEMFILE) */
ERROR_MISSING_SYSTEMFILE
,
/* c0000143 (STATUS_MISSING_SYSTEMFILE) */
0
,
/* c0000144 (STATUS_UNHANDLED_EXCEPTION) */
ERROR_UNHANDLED_EXCEPTION
,
/* c0000144 (STATUS_UNHANDLED_EXCEPTION) */
0
,
/* c0000145 (STATUS_APP_INIT_FAILURE) */
ERROR_APP_INIT_FAILURE
,
/* c0000145 (STATUS_APP_INIT_FAILURE) */
0
,
/* c0000146 (STATUS_PAGEFILE_CREATE_FAILED) */
ERROR_PAGEFILE_CREATE_FAILED
,
/* c0000146 (STATUS_PAGEFILE_CREATE_FAILED) */
0
,
/* c0000147 (STATUS_NO_PAGEFILE) */
ERROR_NO_PAGEFILE
,
/* c0000147 (STATUS_NO_PAGEFILE) */
ERROR_INVALID_LEVEL
,
/* c0000148 (STATUS_INVALID_LEVEL) */
ERROR_INVALID_LEVEL
,
/* c0000148 (STATUS_INVALID_LEVEL) */
ERROR_INVALID_PASSWORD
,
/* c0000149 (STATUS_WRONG_PASSWORD_CORE) */
ERROR_INVALID_PASSWORD
,
/* c0000149 (STATUS_WRONG_PASSWORD_CORE) */
0
,
/* c000014a (STATUS_ILLEGAL_FLOAT_CONTEXT) */
ERROR_ILLEGAL_FLOAT_CONTEXT
,
/* c000014a (STATUS_ILLEGAL_FLOAT_CONTEXT) */
ERROR_BROKEN_PIPE
,
/* c000014b (STATUS_PIPE_BROKEN) */
ERROR_BROKEN_PIPE
,
/* c000014b (STATUS_PIPE_BROKEN) */
ERROR_BADDB
,
/* c000014c (STATUS_REGISTRY_CORRUPT) */
ERROR_BADDB
,
/* c000014c (STATUS_REGISTRY_CORRUPT) */
ERROR_REGISTRY_IO_FAILED
,
/* c000014d (STATUS_REGISTRY_IO_FAILED) */
ERROR_REGISTRY_IO_FAILED
,
/* c000014d (STATUS_REGISTRY_IO_FAILED) */
0
,
/* c000014e (STATUS_NO_EVENT_PAIR) */
ERROR_NO_EVENT_PAIR
,
/* c000014e (STATUS_NO_EVENT_PAIR) */
ERROR_UNRECOGNIZED_VOLUME
,
/* c000014f (STATUS_UNRECOGNIZED_VOLUME) */
ERROR_UNRECOGNIZED_VOLUME
,
/* c000014f (STATUS_UNRECOGNIZED_VOLUME) */
ERROR_SERIAL_NO_DEVICE
,
/* c0000150 (STATUS_SERIAL_NO_DEVICE_INITED) */
ERROR_SERIAL_NO_DEVICE
,
/* c0000150 (STATUS_SERIAL_NO_DEVICE_INITED) */
ERROR_NO_SUCH_ALIAS
,
/* c0000151 (STATUS_NO_SUCH_ALIAS) */
ERROR_NO_SUCH_ALIAS
,
/* c0000151 (STATUS_NO_SUCH_ALIAS) */
...
@@ -739,7 +764,7 @@ static const DWORD table_c0000001[411] =
...
@@ -739,7 +764,7 @@ static const DWORD table_c0000001[411] =
ERROR_LOGON_TYPE_NOT_GRANTED
,
/* c000015b (STATUS_LOGON_TYPE_NOT_GRANTED) */
ERROR_LOGON_TYPE_NOT_GRANTED
,
/* c000015b (STATUS_LOGON_TYPE_NOT_GRANTED) */
ERROR_NOT_REGISTRY_FILE
,
/* c000015c (STATUS_NOT_REGISTRY_FILE) */
ERROR_NOT_REGISTRY_FILE
,
/* c000015c (STATUS_NOT_REGISTRY_FILE) */
ERROR_NT_CROSS_ENCRYPTION_REQUIRED
,
/* c000015d (STATUS_NT_CROSS_ENCRYPTION_REQUIRED) */
ERROR_NT_CROSS_ENCRYPTION_REQUIRED
,
/* c000015d (STATUS_NT_CROSS_ENCRYPTION_REQUIRED) */
0
,
/* c000015e (STATUS_DOMAIN_CTRLR_CONFIG_ERROR) */
ERROR_DOMAIN_CTRLR_CONFIG_ERROR
,
/* c000015e (STATUS_DOMAIN_CTRLR_CONFIG_ERROR) */
ERROR_IO_DEVICE
,
/* c000015f (STATUS_FT_MISSING_MEMBER) */
ERROR_IO_DEVICE
,
/* c000015f (STATUS_FT_MISSING_MEMBER) */
0
,
/* c0000160 (STATUS_ILL_FORMED_SERVICE_ENTRY) */
0
,
/* c0000160 (STATUS_ILL_FORMED_SERVICE_ENTRY) */
0
,
/* c0000161 (STATUS_ILLEGAL_CHARACTER) */
0
,
/* c0000161 (STATUS_ILLEGAL_CHARACTER) */
...
@@ -1465,7 +1490,7 @@ static const DWORD table_c0150001[39] =
...
@@ -1465,7 +1490,7 @@ static const DWORD table_c0150001[39] =
static
const
struct
error_table
error_table
[]
=
static
const
struct
error_table
error_table
[]
=
{
{
{
0x00000102
,
0x00000122
,
table_00000102
},
{
0x00000102
,
0x00000122
,
table_00000102
},
{
0x40000002
,
0x400000
0e
,
table_40000002
},
{
0x40000002
,
0x400000
26
,
table_40000002
},
{
0x40000370
,
0x40000371
,
table_40000370
},
{
0x40000370
,
0x40000371
,
table_40000370
},
{
0x40020056
,
0x40020057
,
table_40020056
},
{
0x40020056
,
0x40020057
,
table_40020056
},
{
0x400200af
,
0x400200b0
,
table_400200af
},
{
0x400200af
,
0x400200b0
,
table_400200af
},
...
...
dlls/ntdll/tests/error.c
View file @
40bc5f64
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
* Unit tests for RtlNtStatusToDosError function
* Unit tests for RtlNtStatusToDosError function
*
*
* Copyright (c) 2002 Andriy Palamarchuk
* Copyright (c) 2002 Andriy Palamarchuk
* Copyright (c) 2010 André Hentschel
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -156,6 +157,8 @@ static void run_error_tests(void)
...
@@ -156,6 +157,8 @@ static void run_error_tests(void)
cmp
(
STATUS_CHILD_MUST_BE_VOLATILE
,
ERROR_CHILD_MUST_BE_VOLATILE
);
cmp
(
STATUS_CHILD_MUST_BE_VOLATILE
,
ERROR_CHILD_MUST_BE_VOLATILE
);
cmp
(
STATUS_REGISTRY_CORRUPT
,
ERROR_BADDB
);
cmp
(
STATUS_REGISTRY_CORRUPT
,
ERROR_BADDB
);
cmp
(
STATUS_DLL_NOT_FOUND
,
ERROR_MOD_NOT_FOUND
);
cmp
(
STATUS_DLL_NOT_FOUND
,
ERROR_MOD_NOT_FOUND
);
cmp2
(
STATUS_OPEN_FAILED
,
ERROR_NET_OPEN_FAILED
);
cmp2
(
STATUS_IO_PRIVILEGE_FAILED
,
ERROR_IO_PRIVILEGE_FAILED
);
cmp
(
STATUS_DLL_INIT_FAILED
,
ERROR_DLL_INIT_FAILED
);
cmp
(
STATUS_DLL_INIT_FAILED
,
ERROR_DLL_INIT_FAILED
);
cmp2
(
STATUS_INVALID_IMPORT_OF_NON_DLL
,
ERROR_INVALID_IMPORT_OF_NON_DLL
);
cmp2
(
STATUS_INVALID_IMPORT_OF_NON_DLL
,
ERROR_INVALID_IMPORT_OF_NON_DLL
);
cmp
(
STATUS_ORDINAL_NOT_FOUND
,
ERROR_INVALID_ORDINAL
);
cmp
(
STATUS_ORDINAL_NOT_FOUND
,
ERROR_INVALID_ORDINAL
);
...
@@ -465,6 +468,23 @@ static void run_error_tests(void)
...
@@ -465,6 +468,23 @@ static void run_error_tests(void)
cmp
(
STATUS_NO_QUOTAS_FOR_ACCOUNT
,
ERROR_NO_QUOTAS_FOR_ACCOUNT
);
cmp
(
STATUS_NO_QUOTAS_FOR_ACCOUNT
,
ERROR_NO_QUOTAS_FOR_ACCOUNT
);
cmp
(
STATUS_LOCAL_USER_SESSION_KEY
,
ERROR_LOCAL_USER_SESSION_KEY
);
cmp
(
STATUS_LOCAL_USER_SESSION_KEY
,
ERROR_LOCAL_USER_SESSION_KEY
);
cmp
(
STATUS_NULL_LM_PASSWORD
,
ERROR_NULL_LM_PASSWORD
);
cmp
(
STATUS_NULL_LM_PASSWORD
,
ERROR_NULL_LM_PASSWORD
);
cmp2
(
STATUS_IMAGE_MACHINE_TYPE_MISMATCH
,
ERROR_IMAGE_MACHINE_TYPE_MISMATCH
);
cmp2
(
STATUS_RECEIVE_PARTIAL
,
ERROR_RECEIVE_PARTIAL
);
cmp2
(
STATUS_RECEIVE_EXPEDITED
,
ERROR_RECEIVE_EXPEDITED
);
cmp2
(
STATUS_RECEIVE_PARTIAL_EXPEDITED
,
ERROR_RECEIVE_PARTIAL_EXPEDITED
);
cmp2
(
STATUS_EVENT_DONE
,
ERROR_EVENT_DONE
);
cmp2
(
STATUS_EVENT_PENDING
,
ERROR_EVENT_PENDING
);
cmp2
(
STATUS_CHECKING_FILE_SYSTEM
,
ERROR_CHECKING_FILE_SYSTEM
);
cmp2
(
STATUS_FATAL_APP_EXIT
,
ERROR_FATAL_APP_EXIT
);
cmp2
(
STATUS_PREDEFINED_HANDLE
,
ERROR_PREDEFINED_HANDLE
);
cmp2
(
STATUS_WAS_UNLOCKED
,
ERROR_WAS_UNLOCKED
);
cmp2
(
STATUS_SERVICE_NOTIFICATION
,
ERROR_SERVICE_NOTIFICATION
);
cmp2
(
STATUS_WAS_LOCKED
,
ERROR_WAS_LOCKED
);
cmp2
(
STATUS_LOG_HARD_ERROR
,
ERROR_LOG_HARD_ERROR
);
cmp2
(
STATUS_ALREADY_WIN32
,
ERROR_ALREADY_WIN32
);
cmp2
(
STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE
,
ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE
);
cmp2
(
STATUS_NO_YIELD_PERFORMED
,
ERROR_NO_YIELD_PERFORMED
);
cmp2
(
STATUS_TIMER_RESUME_IGNORED
,
ERROR_TIMER_RESUME_IGNORED
);
cmp
(
STATUS_BAD_INHERITANCE_ACL
,
ERROR_BAD_INHERITANCE_ACL
);
cmp
(
STATUS_BAD_INHERITANCE_ACL
,
ERROR_BAD_INHERITANCE_ACL
);
cmp
(
STATUS_INVALID_GROUP_ATTRIBUTES
,
ERROR_INVALID_GROUP_ATTRIBUTES
);
cmp
(
STATUS_INVALID_GROUP_ATTRIBUTES
,
ERROR_INVALID_GROUP_ATTRIBUTES
);
cmp
(
STATUS_BAD_IMPERSONATION_LEVEL
,
ERROR_BAD_IMPERSONATION_LEVEL
);
cmp
(
STATUS_BAD_IMPERSONATION_LEVEL
,
ERROR_BAD_IMPERSONATION_LEVEL
);
...
@@ -514,6 +534,7 @@ static void run_error_tests(void)
...
@@ -514,6 +534,7 @@ static void run_error_tests(void)
cmp
(
STATUS_TOO_MANY_SIDS
,
ERROR_TOO_MANY_SIDS
);
cmp
(
STATUS_TOO_MANY_SIDS
,
ERROR_TOO_MANY_SIDS
);
cmp
(
STATUS_LM_CROSS_ENCRYPTION_REQUIRED
,
ERROR_LM_CROSS_ENCRYPTION_REQUIRED
);
cmp
(
STATUS_LM_CROSS_ENCRYPTION_REQUIRED
,
ERROR_LM_CROSS_ENCRYPTION_REQUIRED
);
cmp
(
STATUS_MESSAGE_NOT_FOUND
,
ERROR_MR_MID_NOT_FOUND
);
cmp
(
STATUS_MESSAGE_NOT_FOUND
,
ERROR_MR_MID_NOT_FOUND
);
cmp2
(
STATUS_CONTROL_C_EXIT
,
ERROR_CONTROL_C_EXIT
);
cmp
(
STATUS_LOCAL_DISCONNECT
,
ERROR_NETNAME_DELETED
);
cmp
(
STATUS_LOCAL_DISCONNECT
,
ERROR_NETNAME_DELETED
);
cmp
(
STATUS_REMOTE_DISCONNECT
,
ERROR_NETNAME_DELETED
);
cmp
(
STATUS_REMOTE_DISCONNECT
,
ERROR_NETNAME_DELETED
);
cmp
(
STATUS_REMOTE_RESOURCES
,
ERROR_REM_NOT_LIST
);
cmp
(
STATUS_REMOTE_RESOURCES
,
ERROR_REM_NOT_LIST
);
...
@@ -521,6 +542,14 @@ static void run_error_tests(void)
...
@@ -521,6 +542,14 @@ static void run_error_tests(void)
cmp
(
STATUS_LINK_TIMEOUT
,
ERROR_UNEXP_NET_ERR
);
cmp
(
STATUS_LINK_TIMEOUT
,
ERROR_UNEXP_NET_ERR
);
cmp
(
STATUS_INVALID_CONNECTION
,
ERROR_UNEXP_NET_ERR
);
cmp
(
STATUS_INVALID_CONNECTION
,
ERROR_UNEXP_NET_ERR
);
cmp
(
STATUS_INVALID_ADDRESS
,
ERROR_UNEXP_NET_ERR
);
cmp
(
STATUS_INVALID_ADDRESS
,
ERROR_UNEXP_NET_ERR
);
cmp2
(
STATUS_MISSING_SYSTEMFILE
,
ERROR_MISSING_SYSTEMFILE
);
cmp2
(
STATUS_PAGEFILE_CREATE_FAILED
,
ERROR_PAGEFILE_CREATE_FAILED
);
cmp2
(
STATUS_UNHANDLED_EXCEPTION
,
ERROR_UNHANDLED_EXCEPTION
);
cmp2
(
STATUS_APP_INIT_FAILURE
,
ERROR_APP_INIT_FAILURE
);
cmp2
(
STATUS_NO_PAGEFILE
,
ERROR_NO_PAGEFILE
);
cmp2
(
STATUS_ILLEGAL_FLOAT_CONTEXT
,
ERROR_ILLEGAL_FLOAT_CONTEXT
);
cmp2
(
STATUS_NO_EVENT_PAIR
,
ERROR_NO_EVENT_PAIR
);
cmp2
(
STATUS_DOMAIN_CTRLR_CONFIG_ERROR
,
ERROR_DOMAIN_CTRLR_CONFIG_ERROR
);
cmp
(
STATUS_IO_DEVICE_ERROR
,
ERROR_IO_DEVICE
);
cmp
(
STATUS_IO_DEVICE_ERROR
,
ERROR_IO_DEVICE
);
cmp
(
STATUS_DEVICE_PROTOCOL_ERROR
,
ERROR_IO_DEVICE
);
cmp
(
STATUS_DEVICE_PROTOCOL_ERROR
,
ERROR_IO_DEVICE
);
cmp
(
STATUS_DRIVER_INTERNAL_ERROR
,
ERROR_IO_DEVICE
);
cmp
(
STATUS_DRIVER_INTERNAL_ERROR
,
ERROR_IO_DEVICE
);
...
...
include/winerror.h
View file @
40bc5f64
...
@@ -308,7 +308,158 @@ static inline HRESULT HRESULT_FROM_WIN32(unsigned int x)
...
@@ -308,7 +308,158 @@ static inline HRESULT HRESULT_FROM_WIN32(unsigned int x)
#define ERROR_INVALID_LDT_SIZE 561
#define ERROR_INVALID_LDT_SIZE 561
#define ERROR_INVALID_LDT_OFFSET 563
#define ERROR_INVALID_LDT_OFFSET 563
#define ERROR_INVALID_LDT_DESCRIPTOR 564
#define ERROR_INVALID_LDT_DESCRIPTOR 564
#define ERROR_TOO_MANY_THREADS 565
#define ERROR_THREAD_NOT_IN_PROCESS 566
#define ERROR_PAGEFILE_QUOTA_EXCEEDED 567
#define ERROR_LOGON_SERVER_CONFLICT 568
#define ERROR_SYNCHRONIZATION_REQUIRED 569
#define ERROR_NET_OPEN_FAILED 570
#define ERROR_IO_PRIVILEGE_FAILED 571
#define ERROR_CONTROL_C_EXIT 572
#define ERROR_MISSING_SYSTEMFILE 573
#define ERROR_UNHANDLED_EXCEPTION 574
#define ERROR_APP_INIT_FAILURE 575
#define ERROR_PAGEFILE_CREATE_FAILED 576
#define ERROR_INVALID_IMAGE_HASH 577
#define ERROR_NO_PAGEFILE 578
#define ERROR_ILLEGAL_FLOAT_CONTEXT 579
#define ERROR_NO_EVENT_PAIR 580
#define ERROR_DOMAIN_CTRLR_CONFIG_ERROR 581
#define ERROR_ILLEGAL_CHARACTER 582
#define ERROR_UNDEFINED_CHARACTER 583
#define ERROR_FLOPPY_VOLUME 584
#define ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT 585
#define ERROR_BACKUP_CONTROLLER 586
#define ERROR_MUTANT_LIMIT_EXCEEDED 587
#define ERROR_FS_DRIVER_REQUIRED 588
#define ERROR_CANNOT_LOAD_REGISTRY_FILE 589
#define ERROR_DEBUG_ATTACH_FAILED 590
#define ERROR_SYSTEM_PROCESS_TERMINATED 591
#define ERROR_DATA_NOT_ACCEPTED 592
#define ERROR_VDM_HARD_ERROR 593
#define ERROR_DRIVER_CANCEL_TIMEOUT 594
#define ERROR_REPLY_MESSAGE_MISMATCH 595
#define ERROR_LOST_WRITEBEHIND_DATA 596
#define ERROR_CLIENT_SERVER_PARAMETERS_INVALID 597
#define ERROR_NOT_TINY_STREAM 598
#define ERROR_STACK_OVERFLOW_READ 599
#define ERROR_CONVERT_TO_LARGE 600
#define ERROR_FOUND_OUT_OF_SCOPE 601
#define ERROR_ALLOCATE_BUCKET 602
#define ERROR_MARSHALL_OVERFLOW 603
#define ERROR_INVALID_VARIANT 604
#define ERROR_BAD_COMPRESSION_BUFFER 605
#define ERROR_AUDIT_FAILED 606
#define ERROR_TIMER_RESOLUTION_NOT_SET 607
#define ERROR_INSUFFICIENT_LOGON_INFO 608
#define ERROR_BAD_DLL_ENTRYPOINT 609
#define ERROR_BAD_SERVICE_ENTRYPOINT 610
#define ERROR_IP_ADDRESS_CONFLICT1 611
#define ERROR_IP_ADDRESS_CONFLICT2 612
#define ERROR_REGISTRY_QUOTA_LIMIT 613
#define ERROR_NO_CALLBACK_ACTIVE 614
#define ERROR_PWD_TOO_SHORT 615
#define ERROR_PWD_TOO_RECENT 616
#define ERROR_PWD_HISTORY_CONFLICT 617
#define ERROR_UNSUPPORTED_COMPRESSION 618
#define ERROR_INVALID_HW_PROFILE 619
#define ERROR_INVALID_PLUGPLAY_DEVICE_PATH 620
#define ERROR_QUOTA_LIST_INCONSISTENT 621
#define ERROR_EVALUATION_EXPIRATION 622
#define ERROR_ILLEGAL_DLL_RELOCATION 623
#define ERROR_DLL_INIT_FAILED_LOGOFF 624
#define ERROR_VALIDATE_CONTINUE 625
#define ERROR_NO_MORE_MATCHES 626
#define ERROR_RANGE_LIST_CONFLICT 627
#define ERROR_SERVER_SID_MISMATCH 628
#define ERROR_CANT_ENABLE_DENY_ONLY 629
#define ERROR_FLOAT_MULTIPLE_FAULTS 630
#define ERROR_FLOAT_MULTIPLE_TRAPS 631
#define ERROR_NOINTERFACE 632
#define ERROR_DRIVER_FAILED_SLEEP 633
#define ERROR_CORRUPT_SYSTEM_FILE 634
#define ERROR_COMMITMENT_MINIMUM 635
#define ERROR_PNP_RESTART_ENUMERATION 636
#define ERROR_SYSTEM_IMAGE_BAD_SIGNATURE 637
#define ERROR_PNP_REBOOT_REQUIRED 638
#define ERROR_INSUFFICIENT_POWER 639
#define ERROR_MULTIPLE_FAULT_VIOLATION 640
#define ERROR_SYSTEM_SHUTDOWN 641
#define ERROR_PORT_NOT_SET 642
#define ERROR_DS_VERSION_CHECK_FAILURE 643
#define ERROR_RANGE_NOT_FOUND 644
#define ERROR_NOT_SAFE_MODE_DRIVER 646
#define ERROR_FAILED_DRIVER_ENTRY 647
#define ERROR_DEVICE_ENUMERATION_ERROR 648
#define ERROR_MOUNT_POINT_NOT_RESOLVED 649
#define ERROR_INVALID_DEVICE_OBJECT_PARAMETER 650
#define ERROR_MCA_OCCURED 651
#define ERROR_DRIVER_DATABASE_ERROR 652
#define ERROR_SYSTEM_HIVE_TOO_LARGE 653
#define ERROR_DRIVER_FAILED_PRIOR_UNLOAD 654
#define ERROR_VOLSNAP_PREPARE_HIBERNATE 655
#define ERROR_HIBERNATION_FAILURE 656
#define ERROR_FILE_SYSTEM_LIMITATION 665
#define ERROR_ASSERTION_FAILURE 668
#define ERROR_ACPI_ERROR 669
#define ERROR_WOW_ASSERTION 670
#define ERROR_PNP_BAD_MPS_TABLE 671
#define ERROR_PNP_TRANSLATION_FAILED 672
#define ERROR_PNP_IRQ_TRANSLATION_FAILED 673
#define ERROR_PNP_INVALID_ID 674
#define ERROR_WAKE_SYSTEM_DEBUGGER 675
#define ERROR_HANDLES_CLOSED 676
#define ERROR_HANDLES_CLOSED 676
#define ERROR_EXTRANEOUS_INFORMATION 677
#define ERROR_RXACT_COMMIT_NECESSARY 678
#define ERROR_MEDIA_CHECK 679
#define ERROR_GUID_SUBSTITUTION_MADE 680
#define ERROR_STOPPED_ON_SYMLINK 681
#define ERROR_LONGJUMP 682
#define ERROR_PLUGPLAY_QUERY_VETOED 683
#define ERROR_UNWIND_CONSOLIDATE 684
#define ERROR_REGISTRY_HIVE_RECOVERED 685
#define ERROR_DLL_MIGHT_BE_INSECURE 686
#define ERROR_DLL_MIGHT_BE_INCOMPATIBLE 687
#define ERROR_DBG_EXCEPTION_NOT_HANDLED 688
#define ERROR_DBG_REPLY_LATER 689
#define ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE 690
#define ERROR_DBG_TERMINATE_THREAD 691
#define ERROR_DBG_TERMINATE_PROCESS 692
#define ERROR_DBG_CONTROL_C 693
#define ERROR_DBG_PRINTEXCEPTION_C 694
#define ERROR_DBG_RIPEXCEPTION 695
#define ERROR_DBG_CONTROL_BREAK 696
#define ERROR_DBG_COMMAND_EXCEPTION 697
#define ERROR_OBJECT_NAME_EXISTS 698
#define ERROR_THREAD_WAS_SUSPENDED 699
#define ERROR_IMAGE_NOT_AT_BASE 700
#define ERROR_RXACT_STATE_CREATED 701
#define ERROR_SEGMENT_NOTIFICATION 702
#define ERROR_BAD_CURRENT_DIRECTORY 703
#define ERROR_FT_READ_RECOVERY_FROM_BACKUP 704
#define ERROR_FT_WRITE_RECOVERY 705
#define ERROR_IMAGE_MACHINE_TYPE_MISMATCH 706
#define ERROR_RECEIVE_PARTIAL 707
#define ERROR_RECEIVE_EXPEDITED 708
#define ERROR_RECEIVE_PARTIAL_EXPEDITED 709
#define ERROR_EVENT_DONE 710
#define ERROR_EVENT_PENDING 711
#define ERROR_CHECKING_FILE_SYSTEM 712
#define ERROR_FATAL_APP_EXIT 713
#define ERROR_PREDEFINED_HANDLE 714
#define ERROR_WAS_UNLOCKED 715
#define ERROR_SERVICE_NOTIFICATION 716
#define ERROR_WAS_LOCKED 717
#define ERROR_LOG_HARD_ERROR 718
#define ERROR_ALREADY_WIN32 719
#define ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE 720
#define ERROR_NO_YIELD_PERFORMED 721
#define ERROR_TIMER_RESUME_IGNORED 722
#define ERROR_ARBITRATION_UNHANDLED 723
#define ERROR_CARDBUS_NOT_SUPPORTED 724
#define ERROR_MP_PROCESSOR_MISMATCH 725
#define ERROR_HIBERNATED 726
#define ERROR_RESUME_HIBERNATION 727
#define ERROR_EA_ACCESS_DENIED 994
#define ERROR_EA_ACCESS_DENIED 994
#define ERROR_OPERATION_ABORTED 995
#define ERROR_OPERATION_ABORTED 995
#define ERROR_IO_INCOMPLETE 996
#define ERROR_IO_INCOMPLETE 996
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment