1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5#ifndef __COMMON_LANGUAGE_RUNTIME_HRESULTS__
6#define __COMMON_LANGUAGE_RUNTIME_HRESULTS__
7
8#include <winerror.h>
9
10
11//
12//This file is AutoGenerated -- Do Not Edit by hand!!!
13//
14//Add new HRESULTS along with their corresponding error messages to
15//corerror.xml
16//
17
18#ifndef FACILITY_URT
19#define FACILITY_URT 0x13
20#endif
21#ifndef EMAKEHR
22#define SMAKEHR(val) MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_URT, val)
23#define EMAKEHR(val) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_URT, val)
24#endif
25
26#define CLDB_S_TRUNCATION SMAKEHR(0x1106)
27#define META_S_DUPLICATE SMAKEHR(0x1197)
28#define CORDBG_S_BAD_START_SEQUENCE_POINT SMAKEHR(0x130b)
29#define CORDBG_S_BAD_END_SEQUENCE_POINT SMAKEHR(0x130c)
30#define CORDBG_S_FUNC_EVAL_HAS_NO_RESULT SMAKEHR(0x1316)
31#define CORDBG_S_VALUE_POINTS_TO_VOID SMAKEHR(0x1317)
32#define CORDBG_S_FUNC_EVAL_ABORTED SMAKEHR(0x1319)
33#define CORDBG_S_AT_END_OF_STACK SMAKEHR(0x1324)
34#define CORDBG_S_NOT_ALL_BITS_SET SMAKEHR(0x1c13)
35#define CEE_E_CVTRES_NOT_FOUND EMAKEHR(0x1001)
36#define COR_E_TYPEUNLOADED EMAKEHR(0x1013)
37#define COR_E_APPDOMAINUNLOADED EMAKEHR(0x1014)
38#define COR_E_CANNOTUNLOADAPPDOMAIN EMAKEHR(0x1015)
39#define MSEE_E_ASSEMBLYLOADINPROGRESS EMAKEHR(0x1016)
40#define COR_E_ASSEMBLYEXPECTED EMAKEHR(0x1018)
41#define COR_E_FIXUPSINEXE EMAKEHR(0x1019)
42#define COR_E_NEWER_RUNTIME EMAKEHR(0x101b)
43#define COR_E_MULTIMODULEASSEMBLIESDIALLOWED EMAKEHR(0x101e)
44#define HOST_E_DEADLOCK EMAKEHR(0x1020)
45#define HOST_E_INVALIDOPERATION EMAKEHR(0x1022)
46#define HOST_E_CLRNOTAVAILABLE EMAKEHR(0x1023)
47#define HOST_E_EXITPROCESS_THREADABORT EMAKEHR(0x1027)
48#define HOST_E_EXITPROCESS_ADUNLOAD EMAKEHR(0x1028)
49#define HOST_E_EXITPROCESS_TIMEOUT EMAKEHR(0x1029)
50#define HOST_E_EXITPROCESS_OUTOFMEMORY EMAKEHR(0x102a)
51#define COR_E_MODULE_HASH_CHECK_FAILED EMAKEHR(0x1039)
52#define FUSION_E_REF_DEF_MISMATCH EMAKEHR(0x1040)
53#define FUSION_E_INVALID_PRIVATE_ASM_LOCATION EMAKEHR(0x1041)
54#define FUSION_E_ASM_MODULE_MISSING EMAKEHR(0x1042)
55#define FUSION_E_PRIVATE_ASM_DISALLOWED EMAKEHR(0x1044)
56#define FUSION_E_SIGNATURE_CHECK_FAILED EMAKEHR(0x1045)
57#define FUSION_E_INVALID_NAME EMAKEHR(0x1047)
58#define FUSION_E_CODE_DOWNLOAD_DISABLED EMAKEHR(0x1048)
59#define FUSION_E_HOST_GAC_ASM_MISMATCH EMAKEHR(0x1050)
60#define FUSION_E_LOADFROM_BLOCKED EMAKEHR(0x1051)
61#define FUSION_E_CACHEFILE_FAILED EMAKEHR(0x1052)
62#define FUSION_E_APP_DOMAIN_LOCKED EMAKEHR(0x1053)
63#define FUSION_E_CONFIGURATION_ERROR EMAKEHR(0x1054)
64#define FUSION_E_MANIFEST_PARSE_ERROR EMAKEHR(0x1055)
65#define COR_E_LOADING_REFERENCE_ASSEMBLY EMAKEHR(0x1058)
66#define COR_E_NI_AND_RUNTIME_VERSION_MISMATCH EMAKEHR(0x1059)
67#define COR_E_LOADING_WINMD_REFERENCE_ASSEMBLY EMAKEHR(0x1069)
68#define CLDB_E_FILE_BADREAD EMAKEHR(0x1100)
69#define CLDB_E_FILE_BADWRITE EMAKEHR(0x1101)
70#define CLDB_E_FILE_OLDVER EMAKEHR(0x1107)
71#define CLDB_E_SMDUPLICATE EMAKEHR(0x110a)
72#define CLDB_E_NO_DATA EMAKEHR(0x110b)
73#define CLDB_E_INCOMPATIBLE EMAKEHR(0x110d)
74#define CLDB_E_FILE_CORRUPT EMAKEHR(0x110e)
75#define CLDB_E_BADUPDATEMODE EMAKEHR(0x1110)
76#define CLDB_E_INDEX_NOTFOUND EMAKEHR(0x1124)
77#define CLDB_E_RECORD_NOTFOUND EMAKEHR(0x1130)
78#define CLDB_E_RECORD_OUTOFORDER EMAKEHR(0x1135)
79#define CLDB_E_TOO_BIG EMAKEHR(0x1154)
80#define META_E_INVALID_TOKEN_TYPE EMAKEHR(0x115f)
81#define TLBX_E_LIBNOTREGISTERED EMAKEHR(0x1165)
82#define META_E_BADMETADATA EMAKEHR(0x118a)
83#define META_E_BAD_SIGNATURE EMAKEHR(0x1192)
84#define META_E_BAD_INPUT_PARAMETER EMAKEHR(0x1193)
85#define META_E_CANNOTRESOLVETYPEREF EMAKEHR(0x1196)
86#define META_E_STRINGSPACE_FULL EMAKEHR(0x1198)
87#define META_E_HAS_UNMARKALL EMAKEHR(0x119a)
88#define META_E_MUST_CALL_UNMARKALL EMAKEHR(0x119b)
89#define META_E_CA_INVALID_TARGET EMAKEHR(0x11c0)
90#define META_E_CA_INVALID_VALUE EMAKEHR(0x11c1)
91#define META_E_CA_INVALID_BLOB EMAKEHR(0x11c2)
92#define META_E_CA_REPEATED_ARG EMAKEHR(0x11c3)
93#define META_E_CA_UNKNOWN_ARGUMENT EMAKEHR(0x11c4)
94#define META_E_CA_UNEXPECTED_TYPE EMAKEHR(0x11c7)
95#define META_E_CA_INVALID_ARGTYPE EMAKEHR(0x11c8)
96#define META_E_CA_INVALID_ARG_FOR_TYPE EMAKEHR(0x11c9)
97#define META_E_CA_INVALID_UUID EMAKEHR(0x11ca)
98#define META_E_CA_INVALID_MARSHALAS_FIELDS EMAKEHR(0x11cb)
99#define META_E_CA_NT_FIELDONLY EMAKEHR(0x11cc)
100#define META_E_CA_NEGATIVE_PARAMINDEX EMAKEHR(0x11cd)
101#define META_E_CA_NEGATIVE_CONSTSIZE EMAKEHR(0x11cf)
102#define META_E_CA_FIXEDSTR_SIZE_REQUIRED EMAKEHR(0x11d0)
103#define META_E_CA_CUSTMARSH_TYPE_REQUIRED EMAKEHR(0x11d1)
104#define META_E_NOT_IN_ENC_MODE EMAKEHR(0x11d4)
105#define META_E_CA_BAD_FRIENDS_ARGS EMAKEHR(0x11e5)
106#define META_E_CA_FRIENDS_SN_REQUIRED EMAKEHR(0x11e6)
107#define VLDTR_E_RID_OUTOFRANGE EMAKEHR(0x1203)
108#define VLDTR_E_STRING_INVALID EMAKEHR(0x1206)
109#define VLDTR_E_GUID_INVALID EMAKEHR(0x1207)
110#define VLDTR_E_BLOB_INVALID EMAKEHR(0x1208)
111#define VLDTR_E_MR_BADCALLINGCONV EMAKEHR(0x1224)
112#define VLDTR_E_SIGNULL EMAKEHR(0x1237)
113#define VLDTR_E_MD_BADCALLINGCONV EMAKEHR(0x1239)
114#define VLDTR_E_MD_THISSTATIC EMAKEHR(0x123a)
115#define VLDTR_E_MD_NOTTHISNOTSTATIC EMAKEHR(0x123b)
116#define VLDTR_E_MD_NOARGCNT EMAKEHR(0x123c)
117#define VLDTR_E_SIG_MISSELTYPE EMAKEHR(0x123d)
118#define VLDTR_E_SIG_MISSTKN EMAKEHR(0x123e)
119#define VLDTR_E_SIG_TKNBAD EMAKEHR(0x123f)
120#define VLDTR_E_SIG_MISSFPTR EMAKEHR(0x1240)
121#define VLDTR_E_SIG_MISSFPTRARGCNT EMAKEHR(0x1241)
122#define VLDTR_E_SIG_MISSRANK EMAKEHR(0x1242)
123#define VLDTR_E_SIG_MISSNSIZE EMAKEHR(0x1243)
124#define VLDTR_E_SIG_MISSSIZE EMAKEHR(0x1244)
125#define VLDTR_E_SIG_MISSNLBND EMAKEHR(0x1245)
126#define VLDTR_E_SIG_MISSLBND EMAKEHR(0x1246)
127#define VLDTR_E_SIG_BADELTYPE EMAKEHR(0x1247)
128#define VLDTR_E_TD_ENCLNOTNESTED EMAKEHR(0x1256)
129#define VLDTR_E_FMD_PINVOKENOTSTATIC EMAKEHR(0x1277)
130#define VLDTR_E_SIG_SENTINMETHODDEF EMAKEHR(0x12df)
131#define VLDTR_E_SIG_SENTMUSTVARARG EMAKEHR(0x12e0)
132#define VLDTR_E_SIG_MULTSENTINELS EMAKEHR(0x12e1)
133#define VLDTR_E_SIG_MISSARG EMAKEHR(0x12e3)
134#define VLDTR_E_SIG_BYREFINFIELD EMAKEHR(0x12e4)
135#define CORDBG_E_UNRECOVERABLE_ERROR EMAKEHR(0x1300)
136#define CORDBG_E_PROCESS_TERMINATED EMAKEHR(0x1301)
137#define CORDBG_E_PROCESS_NOT_SYNCHRONIZED EMAKEHR(0x1302)
138#define CORDBG_E_CLASS_NOT_LOADED EMAKEHR(0x1303)
139#define CORDBG_E_IL_VAR_NOT_AVAILABLE EMAKEHR(0x1304)
140#define CORDBG_E_BAD_REFERENCE_VALUE EMAKEHR(0x1305)
141#define CORDBG_E_FIELD_NOT_AVAILABLE EMAKEHR(0x1306)
142#define CORDBG_E_NON_NATIVE_FRAME EMAKEHR(0x1307)
143#define CORDBG_E_CODE_NOT_AVAILABLE EMAKEHR(0x1309)
144#define CORDBG_E_FUNCTION_NOT_IL EMAKEHR(0x130a)
145#define CORDBG_E_CANT_SET_IP_INTO_FINALLY EMAKEHR(0x130e)
146#define CORDBG_E_CANT_SET_IP_OUT_OF_FINALLY EMAKEHR(0x130f)
147#define CORDBG_E_CANT_SET_IP_INTO_CATCH EMAKEHR(0x1310)
148#define CORDBG_E_SET_IP_NOT_ALLOWED_ON_NONLEAF_FRAME EMAKEHR(0x1311)
149#define CORDBG_E_SET_IP_IMPOSSIBLE EMAKEHR(0x1312)
150#define CORDBG_E_FUNC_EVAL_BAD_START_POINT EMAKEHR(0x1313)
151#define CORDBG_E_INVALID_OBJECT EMAKEHR(0x1314)
152#define CORDBG_E_FUNC_EVAL_NOT_COMPLETE EMAKEHR(0x1315)
153#define CORDBG_E_STATIC_VAR_NOT_AVAILABLE EMAKEHR(0x131a)
154#define CORDBG_E_CANT_SETIP_INTO_OR_OUT_OF_FILTER EMAKEHR(0x131c)
155#define CORDBG_E_CANT_CHANGE_JIT_SETTING_FOR_ZAP_MODULE EMAKEHR(0x131d)
156#define CORDBG_E_CANT_SET_IP_OUT_OF_FINALLY_ON_WIN64 EMAKEHR(0x131e)
157#define CORDBG_E_CANT_SET_IP_OUT_OF_CATCH_ON_WIN64 EMAKEHR(0x131f)
158#define CORDBG_E_CANT_SET_TO_JMC EMAKEHR(0x1323)
159#define CORDBG_E_NO_CONTEXT_FOR_INTERNAL_FRAME EMAKEHR(0x1325)
160#define CORDBG_E_NOT_CHILD_FRAME EMAKEHR(0x1326)
161#define CORDBG_E_NON_MATCHING_CONTEXT EMAKEHR(0x1327)
162#define CORDBG_E_PAST_END_OF_STACK EMAKEHR(0x1328)
163#define CORDBG_E_FUNC_EVAL_CANNOT_UPDATE_REGISTER_IN_NONLEAF_FRAME EMAKEHR(0x1329)
164#define CORDBG_E_BAD_THREAD_STATE EMAKEHR(0x132d)
165#define CORDBG_E_DEBUGGER_ALREADY_ATTACHED EMAKEHR(0x132e)
166#define CORDBG_E_SUPERFLOUS_CONTINUE EMAKEHR(0x132f)
167#define CORDBG_E_SET_VALUE_NOT_ALLOWED_ON_NONLEAF_FRAME EMAKEHR(0x1330)
168#define CORDBG_E_ENC_MODULE_NOT_ENC_ENABLED EMAKEHR(0x1332)
169#define CORDBG_E_SET_IP_NOT_ALLOWED_ON_EXCEPTION EMAKEHR(0x1333)
170#define CORDBG_E_VARIABLE_IS_ACTUALLY_LITERAL EMAKEHR(0x1334)
171#define CORDBG_E_PROCESS_DETACHED EMAKEHR(0x1335)
172#define CORDBG_E_ENC_CANT_ADD_FIELD_TO_VALUE_OR_LAYOUT_CLASS EMAKEHR(0x1338)
173#define CORDBG_E_FIELD_NOT_STATIC EMAKEHR(0x133b)
174#define CORDBG_E_FIELD_NOT_INSTANCE EMAKEHR(0x133c)
175#define CORDBG_E_ENC_JIT_CANT_UPDATE EMAKEHR(0x133f)
176#define CORDBG_E_ENC_INTERNAL_ERROR EMAKEHR(0x1341)
177#define CORDBG_E_ENC_HANGING_FIELD EMAKEHR(0x1342)
178#define CORDBG_E_MODULE_NOT_LOADED EMAKEHR(0x1343)
179#define CORDBG_E_UNABLE_TO_SET_BREAKPOINT EMAKEHR(0x1345)
180#define CORDBG_E_DEBUGGING_NOT_POSSIBLE EMAKEHR(0x1346)
181#define CORDBG_E_KERNEL_DEBUGGER_ENABLED EMAKEHR(0x1347)
182#define CORDBG_E_KERNEL_DEBUGGER_PRESENT EMAKEHR(0x1348)
183#define CORDBG_E_INCOMPATIBLE_PROTOCOL EMAKEHR(0x134b)
184#define CORDBG_E_TOO_MANY_PROCESSES EMAKEHR(0x134c)
185#define CORDBG_E_INTEROP_NOT_SUPPORTED EMAKEHR(0x134d)
186#define CORDBG_E_NO_REMAP_BREAKPIONT EMAKEHR(0x134e)
187#define CORDBG_E_OBJECT_NEUTERED EMAKEHR(0x134f)
188#define CORPROF_E_FUNCTION_NOT_COMPILED EMAKEHR(0x1350)
189#define CORPROF_E_DATAINCOMPLETE EMAKEHR(0x1351)
190#define CORPROF_E_FUNCTION_NOT_IL EMAKEHR(0x1354)
191#define CORPROF_E_NOT_MANAGED_THREAD EMAKEHR(0x1355)
192#define CORPROF_E_CALL_ONLY_FROM_INIT EMAKEHR(0x1356)
193#define CORPROF_E_NOT_YET_AVAILABLE EMAKEHR(0x135b)
194#define CORPROF_E_TYPE_IS_PARAMETERIZED EMAKEHR(0x135c)
195#define CORPROF_E_FUNCTION_IS_PARAMETERIZED EMAKEHR(0x135d)
196#define CORPROF_E_STACKSNAPSHOT_INVALID_TGT_THREAD EMAKEHR(0x135e)
197#define CORPROF_E_STACKSNAPSHOT_UNMANAGED_CTX EMAKEHR(0x135f)
198#define CORPROF_E_STACKSNAPSHOT_UNSAFE EMAKEHR(0x1360)
199#define CORPROF_E_STACKSNAPSHOT_ABORTED EMAKEHR(0x1361)
200#define CORPROF_E_LITERALS_HAVE_NO_ADDRESS EMAKEHR(0x1362)
201#define CORPROF_E_UNSUPPORTED_CALL_SEQUENCE EMAKEHR(0x1363)
202#define CORPROF_E_ASYNCHRONOUS_UNSAFE EMAKEHR(0x1364)
203#define CORPROF_E_CLASSID_IS_ARRAY EMAKEHR(0x1365)
204#define CORPROF_E_CLASSID_IS_COMPOSITE EMAKEHR(0x1366)
205#define CORPROF_E_PROFILER_DETACHING EMAKEHR(0x1367)
206#define CORPROF_E_PROFILER_NOT_ATTACHABLE EMAKEHR(0x1368)
207#define CORPROF_E_UNRECOGNIZED_PIPE_MSG_FORMAT EMAKEHR(0x1369)
208#define CORPROF_E_PROFILER_ALREADY_ACTIVE EMAKEHR(0x136a)
209#define CORPROF_E_PROFILEE_INCOMPATIBLE_WITH_TRIGGER EMAKEHR(0x136b)
210#define CORPROF_E_IPC_FAILED EMAKEHR(0x136c)
211#define CORPROF_E_PROFILEE_PROCESS_NOT_FOUND EMAKEHR(0x136d)
212#define CORPROF_E_CALLBACK3_REQUIRED EMAKEHR(0x136e)
213#define CORPROF_E_UNSUPPORTED_FOR_ATTACHING_PROFILER EMAKEHR(0x136f)
214#define CORPROF_E_IRREVERSIBLE_INSTRUMENTATION_PRESENT EMAKEHR(0x1370)
215#define CORPROF_E_RUNTIME_UNINITIALIZED EMAKEHR(0x1371)
216#define CORPROF_E_IMMUTABLE_FLAGS_SET EMAKEHR(0x1372)
217#define CORPROF_E_PROFILER_NOT_YET_INITIALIZED EMAKEHR(0x1373)
218#define CORPROF_E_INCONSISTENT_WITH_FLAGS EMAKEHR(0x1374)
219#define CORPROF_E_PROFILER_CANCEL_ACTIVATION EMAKEHR(0x1375)
220#define CORPROF_E_CONCURRENT_GC_NOT_PROFILABLE EMAKEHR(0x1376)
221#define CORPROF_E_DEBUGGING_DISABLED EMAKEHR(0x1378)
222#define CORPROF_E_TIMEOUT_WAITING_FOR_CONCURRENT_GC EMAKEHR(0x1379)
223#define CORPROF_E_MODULE_IS_DYNAMIC EMAKEHR(0x137a)
224#define CORPROF_E_CALLBACK4_REQUIRED EMAKEHR(0x137b)
225#define CORPROF_E_REJIT_NOT_ENABLED EMAKEHR(0x137c)
226#define CORPROF_E_FUNCTION_IS_COLLECTIBLE EMAKEHR(0x137e)
227#define CORPROF_E_CALLBACK6_REQUIRED EMAKEHR(0x1380)
228#define CORPROF_E_CALLBACK7_REQUIRED EMAKEHR(0x1382)
229#define SECURITY_E_INCOMPATIBLE_SHARE EMAKEHR(0x1401)
230#define SECURITY_E_UNVERIFIABLE EMAKEHR(0x1402)
231#define SECURITY_E_INCOMPATIBLE_EVIDENCE EMAKEHR(0x1403)
232#define CORSEC_E_POLICY_EXCEPTION EMAKEHR(0x1416)
233#define CORSEC_E_MIN_GRANT_FAIL EMAKEHR(0x1417)
234#define CORSEC_E_NO_EXEC_PERM EMAKEHR(0x1418)
235#define CORSEC_E_XMLSYNTAX EMAKEHR(0x1419)
236#define CORSEC_E_INVALID_STRONGNAME EMAKEHR(0x141a)
237#define CORSEC_E_MISSING_STRONGNAME EMAKEHR(0x141b)
238#define CORSEC_E_INVALID_IMAGE_FORMAT EMAKEHR(0x141d)
239#define CORSEC_E_INVALID_PUBLICKEY EMAKEHR(0x141e)
240#define CORSEC_E_SIGNATURE_MISMATCH EMAKEHR(0x1420)
241#define CORSEC_E_CRYPTO EMAKEHR(0x1430)
242#define CORSEC_E_CRYPTO_UNEX_OPER EMAKEHR(0x1431)
243#define CORSECATTR_E_BAD_ACTION EMAKEHR(0x1442)
244#define COR_E_EXCEPTION EMAKEHR(0x1500)
245#define COR_E_SYSTEM EMAKEHR(0x1501)
246#define COR_E_ARGUMENTOUTOFRANGE EMAKEHR(0x1502)
247#define COR_E_ARRAYTYPEMISMATCH EMAKEHR(0x1503)
248#define COR_E_CONTEXTMARSHAL EMAKEHR(0x1504)
249#define COR_E_TIMEOUT EMAKEHR(0x1505)
250#define COR_E_EXECUTIONENGINE EMAKEHR(0x1506)
251#define COR_E_FIELDACCESS EMAKEHR(0x1507)
252#define COR_E_INDEXOUTOFRANGE EMAKEHR(0x1508)
253#define COR_E_INVALIDOPERATION EMAKEHR(0x1509)
254#define COR_E_SECURITY EMAKEHR(0x150a)
255#define COR_E_SERIALIZATION EMAKEHR(0x150c)
256#define COR_E_VERIFICATION EMAKEHR(0x150d)
257#define COR_E_METHODACCESS EMAKEHR(0x1510)
258#define COR_E_MISSINGFIELD EMAKEHR(0x1511)
259#define COR_E_MISSINGMEMBER EMAKEHR(0x1512)
260#define COR_E_MISSINGMETHOD EMAKEHR(0x1513)
261#define COR_E_MULTICASTNOTSUPPORTED EMAKEHR(0x1514)
262#define COR_E_NOTSUPPORTED EMAKEHR(0x1515)
263#define COR_E_OVERFLOW EMAKEHR(0x1516)
264#define COR_E_RANK EMAKEHR(0x1517)
265#define COR_E_SYNCHRONIZATIONLOCK EMAKEHR(0x1518)
266#define COR_E_THREADINTERRUPTED EMAKEHR(0x1519)
267#define COR_E_MEMBERACCESS EMAKEHR(0x151a)
268#define COR_E_THREADSTATE EMAKEHR(0x1520)
269#define COR_E_THREADSTOP EMAKEHR(0x1521)
270#define COR_E_TYPELOAD EMAKEHR(0x1522)
271#define COR_E_ENTRYPOINTNOTFOUND EMAKEHR(0x1523)
272#define COR_E_DLLNOTFOUND EMAKEHR(0x1524)
273#define COR_E_THREADSTART EMAKEHR(0x1525)
274#define COR_E_INVALIDCOMOBJECT EMAKEHR(0x1527)
275#define COR_E_NOTFINITENUMBER EMAKEHR(0x1528)
276#define COR_E_DUPLICATEWAITOBJECT EMAKEHR(0x1529)
277#define COR_E_SEMAPHOREFULL EMAKEHR(0x152b)
278#define COR_E_WAITHANDLECANNOTBEOPENED EMAKEHR(0x152c)
279#define COR_E_ABANDONEDMUTEX EMAKEHR(0x152d)
280#define COR_E_THREADABORTED EMAKEHR(0x1530)
281#define COR_E_INVALIDOLEVARIANTTYPE EMAKEHR(0x1531)
282#define COR_E_MISSINGMANIFESTRESOURCE EMAKEHR(0x1532)
283#define COR_E_SAFEARRAYTYPEMISMATCH EMAKEHR(0x1533)
284#define COR_E_TYPEINITIALIZATION EMAKEHR(0x1534)
285#define COR_E_MARSHALDIRECTIVE EMAKEHR(0x1535)
286#define COR_E_MISSINGSATELLITEASSEMBLY EMAKEHR(0x1536)
287#define COR_E_FORMAT EMAKEHR(0x1537)
288#define COR_E_SAFEARRAYRANKMISMATCH EMAKEHR(0x1538)
289#define COR_E_PLATFORMNOTSUPPORTED EMAKEHR(0x1539)
290#define COR_E_INVALIDPROGRAM EMAKEHR(0x153a)
291#define COR_E_OPERATIONCANCELED EMAKEHR(0x153b)
292#define COR_E_INSUFFICIENTMEMORY EMAKEHR(0x153d)
293#define COR_E_RUNTIMEWRAPPED EMAKEHR(0x153e)
294#define COR_E_DATAMISALIGNED EMAKEHR(0x1541)
295#define COR_E_CODECONTRACTFAILED EMAKEHR(0x1542)
296#define COR_E_TYPEACCESS EMAKEHR(0x1543)
297#define COR_E_ACCESSING_CCW EMAKEHR(0x1544)
298#define COR_E_KEYNOTFOUND EMAKEHR(0x1577)
299#define COR_E_INSUFFICIENTEXECUTIONSTACK EMAKEHR(0x1578)
300#define COR_E_APPLICATION EMAKEHR(0x1600)
301#define COR_E_INVALIDFILTERCRITERIA EMAKEHR(0x1601)
302#define COR_E_REFLECTIONTYPELOAD EMAKEHR(0x1602)
303#define COR_E_TARGET EMAKEHR(0x1603)
304#define COR_E_TARGETINVOCATION EMAKEHR(0x1604)
305#define COR_E_CUSTOMATTRIBUTEFORMAT EMAKEHR(0x1605)
306#define COR_E_IO EMAKEHR(0x1620)
307#define COR_E_FILELOAD EMAKEHR(0x1621)
308#define COR_E_OBJECTDISPOSED EMAKEHR(0x1622)
309#define COR_E_FAILFAST EMAKEHR(0x1623)
310#define COR_E_HOSTPROTECTION EMAKEHR(0x1640)
311#define COR_E_ILLEGAL_REENTRANCY EMAKEHR(0x1641)
312#define CLR_E_SHIM_RUNTIMELOAD EMAKEHR(0x1700)
313#define CLR_E_SHIM_LEGACYRUNTIMEALREADYBOUND EMAKEHR(0x1704)
314#define VER_E_FIELD_SIG EMAKEHR(0x1815)
315#define VER_E_CIRCULAR_VAR_CONSTRAINTS EMAKEHR(0x18ce)
316#define VER_E_CIRCULAR_MVAR_CONSTRAINTS EMAKEHR(0x18cf)
317#define COR_E_Data EMAKEHR(0x1920)
318#define VLDTR_E_SIG_BADVOID EMAKEHR(0x1b24)
319#define VLDTR_E_GP_ILLEGAL_VARIANT_MVAR EMAKEHR(0x1b2d)
320#define CORDBG_E_THREAD_NOT_SCHEDULED EMAKEHR(0x1c00)
321#define CORDBG_E_HANDLE_HAS_BEEN_DISPOSED EMAKEHR(0x1c01)
322#define CORDBG_E_NONINTERCEPTABLE_EXCEPTION EMAKEHR(0x1c02)
323#define CORDBG_E_INTERCEPT_FRAME_ALREADY_SET EMAKEHR(0x1c04)
324#define CORDBG_E_NO_NATIVE_PATCH_AT_ADDR EMAKEHR(0x1c05)
325#define CORDBG_E_MUST_BE_INTEROP_DEBUGGING EMAKEHR(0x1c06)
326#define CORDBG_E_NATIVE_PATCH_ALREADY_AT_ADDR EMAKEHR(0x1c07)
327#define CORDBG_E_TIMEOUT EMAKEHR(0x1c08)
328#define CORDBG_E_CANT_CALL_ON_THIS_THREAD EMAKEHR(0x1c09)
329#define CORDBG_E_ENC_INFOLESS_METHOD EMAKEHR(0x1c0a)
330#define CORDBG_E_ENC_IN_FUNCLET EMAKEHR(0x1c0c)
331#define CORDBG_E_ENC_EDIT_NOT_SUPPORTED EMAKEHR(0x1c0e)
332#define CORDBG_E_NOTREADY EMAKEHR(0x1c10)
333#define CORDBG_E_CANNOT_RESOLVE_ASSEMBLY EMAKEHR(0x1c11)
334#define CORDBG_E_MUST_BE_IN_LOAD_MODULE EMAKEHR(0x1c12)
335#define CORDBG_E_CANNOT_BE_ON_ATTACH EMAKEHR(0x1c13)
336#define CORDBG_E_NGEN_NOT_SUPPORTED EMAKEHR(0x1c14)
337#define CORDBG_E_ILLEGAL_SHUTDOWN_ORDER EMAKEHR(0x1c15)
338#define CORDBG_E_CANNOT_DEBUG_FIBER_PROCESS EMAKEHR(0x1c16)
339#define CORDBG_E_MUST_BE_IN_CREATE_PROCESS EMAKEHR(0x1c17)
340#define CORDBG_E_DETACH_FAILED_OUTSTANDING_EVALS EMAKEHR(0x1c18)
341#define CORDBG_E_DETACH_FAILED_OUTSTANDING_STEPPERS EMAKEHR(0x1c19)
342#define CORDBG_E_CANT_INTEROP_STEP_OUT EMAKEHR(0x1c20)
343#define CORDBG_E_DETACH_FAILED_OUTSTANDING_BREAKPOINTS EMAKEHR(0x1c21)
344#define CORDBG_E_ILLEGAL_IN_STACK_OVERFLOW EMAKEHR(0x1c22)
345#define CORDBG_E_ILLEGAL_AT_GC_UNSAFE_POINT EMAKEHR(0x1c23)
346#define CORDBG_E_ILLEGAL_IN_PROLOG EMAKEHR(0x1c24)
347#define CORDBG_E_ILLEGAL_IN_NATIVE_CODE EMAKEHR(0x1c25)
348#define CORDBG_E_ILLEGAL_IN_OPTIMIZED_CODE EMAKEHR(0x1c26)
349#define CORDBG_E_APPDOMAIN_MISMATCH EMAKEHR(0x1c28)
350#define CORDBG_E_CONTEXT_UNVAILABLE EMAKEHR(0x1c29)
351#define CORDBG_E_UNCOMPATIBLE_PLATFORMS EMAKEHR(0x1c30)
352#define CORDBG_E_DEBUGGING_DISABLED EMAKEHR(0x1c31)
353#define CORDBG_E_DETACH_FAILED_ON_ENC EMAKEHR(0x1c32)
354#define CORDBG_E_CURRENT_EXCEPTION_IS_OUTSIDE_CURRENT_EXECUTION_SCOPE EMAKEHR(0x1c33)
355#define CORDBG_E_HELPER_MAY_DEADLOCK EMAKEHR(0x1c34)
356#define CORDBG_E_MISSING_METADATA EMAKEHR(0x1c35)
357#define CORDBG_E_TARGET_INCONSISTENT EMAKEHR(0x1c36)
358#define CORDBG_E_DETACH_FAILED_OUTSTANDING_TARGET_RESOURCES EMAKEHR(0x1c37)
359#define CORDBG_E_TARGET_READONLY EMAKEHR(0x1c38)
360#define CORDBG_E_MISMATCHED_CORWKS_AND_DACWKS_DLLS EMAKEHR(0x1c39)
361#define CORDBG_E_MODULE_LOADED_FROM_DISK EMAKEHR(0x1c3a)
362#define CORDBG_E_SYMBOLS_NOT_AVAILABLE EMAKEHR(0x1c3b)
363#define CORDBG_E_DEBUG_COMPONENT_MISSING EMAKEHR(0x1c3c)
364#define CORDBG_E_LIBRARY_PROVIDER_ERROR EMAKEHR(0x1c43)
365#define CORDBG_E_NOT_CLR EMAKEHR(0x1c44)
366#define CORDBG_E_MISSING_DATA_TARGET_INTERFACE EMAKEHR(0x1c45)
367#define CORDBG_E_UNSUPPORTED_DEBUGGING_MODEL EMAKEHR(0x1c46)
368#define CORDBG_E_UNSUPPORTED_FORWARD_COMPAT EMAKEHR(0x1c47)
369#define CORDBG_E_UNSUPPORTED_VERSION_STRUCT EMAKEHR(0x1c48)
370#define CORDBG_E_READVIRTUAL_FAILURE EMAKEHR(0x1c49)
371#define CORDBG_E_VALUE_POINTS_TO_FUNCTION EMAKEHR(0x1c4a)
372#define CORDBG_E_CORRUPT_OBJECT EMAKEHR(0x1c4b)
373#define CORDBG_E_GC_STRUCTURES_INVALID EMAKEHR(0x1c4c)
374#define CORDBG_E_INVALID_OPCODE EMAKEHR(0x1c4d)
375#define CORDBG_E_UNSUPPORTED EMAKEHR(0x1c4e)
376#define CORDBG_E_MISSING_DEBUGGER_EXPORTS EMAKEHR(0x1c4f)
377#define CORDBG_E_DATA_TARGET_ERROR EMAKEHR(0x1c61)
378#define CORDBG_E_NO_IMAGE_AVAILABLE EMAKEHR(0x1c64)
379#define PEFMT_E_64BIT EMAKEHR(0x1d02)
380#define PEFMT_E_32BIT EMAKEHR(0x1d0b)
381#define NGEN_E_SYS_ASM_NI_MISSING EMAKEHR(0x1f06)
382#define CLDB_E_INTERNALERROR EMAKEHR(0x1fff)
383#define CLR_E_BIND_ASSEMBLY_VERSION_TOO_LOW EMAKEHR(0x2000)
384#define CLR_E_BIND_ASSEMBLY_PUBLIC_KEY_MISMATCH EMAKEHR(0x2001)
385#define CLR_E_BIND_IMAGE_UNAVAILABLE EMAKEHR(0x2002)
386#define CLR_E_BIND_UNRECOGNIZED_IDENTITY_FORMAT EMAKEHR(0x2003)
387#define CLR_E_BIND_ASSEMBLY_NOT_FOUND EMAKEHR(0x2004)
388#define CLR_E_BIND_TYPE_NOT_FOUND EMAKEHR(0x2005)
389#define CLR_E_BIND_SYS_ASM_NI_MISSING EMAKEHR(0x2006)
390#define CLR_E_BIND_NI_SECURITY_FAILURE EMAKEHR(0x2007)
391#define CLR_E_BIND_NI_DEP_IDENTITY_MISMATCH EMAKEHR(0x2008)
392#define CLR_E_GC_OOM EMAKEHR(0x2009)
393#define COR_E_UNAUTHORIZEDACCESS E_ACCESSDENIED
394#define COR_E_ARGUMENT E_INVALIDARG
395#define COR_E_INVALIDCAST E_NOINTERFACE
396#define COR_E_OUTOFMEMORY E_OUTOFMEMORY
397#define COR_E_NULLREFERENCE E_POINTER
398#define COR_E_ARITHMETIC __HRESULT_FROM_WIN32(ERROR_ARITHMETIC_OVERFLOW)
399#define COR_E_PATHTOOLONG __HRESULT_FROM_WIN32(ERROR_FILENAME_EXCED_RANGE)
400#define COR_E_FILENOTFOUND __HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
401#define COR_E_ENDOFSTREAM __HRESULT_FROM_WIN32(ERROR_HANDLE_EOF)
402#define COR_E_DIRECTORYNOTFOUND __HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND)
403#define COR_E_STACKOVERFLOW __HRESULT_FROM_WIN32(ERROR_STACK_OVERFLOW)
404#define COR_E_AMBIGUOUSMATCH _HRESULT_TYPEDEF_(0x8000211DL)
405#define COR_E_TARGETPARAMCOUNT _HRESULT_TYPEDEF_(0x8002000EL)
406#define COR_E_DIVIDEBYZERO _HRESULT_TYPEDEF_(0x80020012L)
407#define COR_E_BADIMAGEFORMAT _HRESULT_TYPEDEF_(0x8007000BL)
408
409
410#endif // __COMMON_LANGUAGE_RUNTIME_HRESULTS__
411