mshtml.idl: Added IHTMLButtonElement and DispHTMLButtonElement declarations.
[wine] / include / corerror.h
1 /*
2  * Copyright 2008 James Hawkins
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 #ifndef __WINE_CORERROR_H
20 #define __WINE_CORERROR_H
21
22 #include <winerror.h>
23
24 #ifndef FACILITY_URT
25 #define FACILITY_URT 0x13
26 #endif
27
28 #ifndef EMAKEHR
29 #define SMAKEHR(val) MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_URT, val)
30 #define EMAKEHR(val) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_URT, val)
31 #endif
32
33 #define COR_E_ARGUMENT              E_INVALIDARG
34 #define COR_E_INVALIDCAST           E_NOINTERFACE
35 #define COR_E_NULLREFERENCE         E_POINTER
36 #define COR_E_OUTOFMEMORY           E_OUTOFMEMORY
37 #define COR_E_UNAUTHORIZEDACCESS    E_ACCESSDENIED
38
39 #define COR_E_ARITHMETIC            HRESULT_FROM_WIN32(ERROR_ARITHMETIC_OVERFLOW)
40 #define COR_E_STACKOVERFLOW         HRESULT_FROM_WIN32(ERROR_STACK_OVERFLOW)
41 #define COR_E_ENDOFSTREAM           HRESULT_FROM_WIN32(ERROR_HANDLE_EOF)
42 #define COR_E_FILENOTFOUND          HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
43 #define COR_E_BAD_PATHNAME          HRESULT_FROM_WIN32(ERROR_BAD_PATHNAME)
44 #define COR_E_DIRECTORYNOTFOUND     HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND)
45 #define COR_E_PATHTOOLONG           HRESULT_FROM_WIN32(ERROR_FILENAME_EXCED_RANGE)
46
47 #define COR_E_AMBIGUOUSMATCH    _HRESULT_TYPEDEF_(0x8000211D)
48 #define COR_E_TARGETPARAMCOUNT  _HRESULT_TYPEDEF_(0x8002000E)
49 #define COR_E_DIVIDEBYZERO      _HRESULT_TYPEDEF_(0x80020012)
50 #define COR_E_BADIMAGEFORMAT    _HRESULT_TYPEDEF_(0x8007000B)
51
52 #define COR_E_ASSEMBLYEXPECTED          EMAKEHR(0x1018)
53 #define COR_E_TYPEUNLOADED              EMAKEHR(0x1013)
54 #define COR_E_EXCEPTION                 EMAKEHR(0x1500)
55 #define COR_E_SYSTEM                    EMAKEHR(0x1501)
56 #define COR_E_ARGUMENTOUTOFRANGE        EMAKEHR(0x1502)
57 #define COR_E_ARRAYTYPEMISMATCH         EMAKEHR(0x1503)
58 #define COR_E_CONTEXTMARSHAL            EMAKEHR(0x1504)
59 #define COR_E_TIMEOUT                   EMAKEHR(0x1505)
60 #define COR_E_EXECUTIONENGINE           EMAKEHR(0x1506)
61 #define COR_E_FIELDACCESS               EMAKEHR(0x1507)
62 #define COR_E_INDEXOUTOFRANGE           EMAKEHR(0x1508)
63 #define COR_E_INVALIDOPERATION          EMAKEHR(0x1509)
64 #define COR_E_SECURITY                  EMAKEHR(0x150A)
65 #define COR_E_REMOTING                  EMAKEHR(0x150B)
66 #define COR_E_SERIALIZATION             EMAKEHR(0x150C)
67 #define COR_E_VERIFICATION              EMAKEHR(0x150D)
68 #define COR_E_SERVER                    EMAKEHR(0x150E)
69 #define COR_E_SERVICEDCOMPONENT         EMAKEHR(0x150F)
70 #define COR_E_METHODACCESS              EMAKEHR(0x1510)
71 #define COR_E_MISSINGFIELD              EMAKEHR(0x1511)
72 #define COR_E_MISSINGMEMBER             EMAKEHR(0x1512)
73 #define COR_E_MISSINGMETHOD             EMAKEHR(0x1513)
74 #define COR_E_MULTICASTNOTSUPPORTED     EMAKEHR(0x1514)
75 #define COR_E_NOTSUPPORTED              EMAKEHR(0x1515)
76 #define COR_E_OVERFLOW                  EMAKEHR(0x1516)
77 #define COR_E_RANK                      EMAKEHR(0x1517)
78 #define COR_E_SYNCHRONIZATIONLOCK       EMAKEHR(0x1518)
79 #define COR_E_THREADINTERRUPTED         EMAKEHR(0x1519)
80 #define COR_E_MEMBERACCESS              EMAKEHR(0x151A)
81 #define COR_E_THREADSTATE               EMAKEHR(0x1520)
82 #define COR_E_THREADSTOP                EMAKEHR(0x1521)
83 #define COR_E_TYPELOAD                  EMAKEHR(0x1522)
84 #define COR_E_ENTRYPOINTNOTFOUND        EMAKEHR(0x1523)
85 #define COR_E_DLLNOTFOUND               EMAKEHR(0x1524)
86 #define COR_E_THREADSTART               EMAKEHR(0x1525)
87 #define COR_E_INVALIDCOMOBJECT          EMAKEHR(0x1527)
88 #define COR_E_NOTFINITENUMBER           EMAKEHR(0x1528)
89 #define COR_E_DUPLICATEWAITOBJECT       EMAKEHR(0x1529)
90 #define COR_E_SEMAPHOREFULL             EMAKEHR(0x152B)
91 #define COR_E_WAITHANDLECANNOTBEOPENED  EMAKEHR(0x152C)
92 #define COR_E_ABANDONEDMUTEX            EMAKEHR(0x152D)
93 #define COR_E_INVALIDOLEVARIANTTYPE     EMAKEHR(0x1531)
94 #define COR_E_MISSINGMANIFESTRESOURCE   EMAKEHR(0x1532)
95 #define COR_E_SAFEARRAYTYPEMISMATCH     EMAKEHR(0x1533)
96 #define COR_E_TYPEINITIALIZATION        EMAKEHR(0x1534)
97 #define COR_E_MARSHALDIRECTIVE          EMAKEHR(0x1535)
98 #define COR_E_MISSINGSATELLITEASSEMBLY  EMAKEHR(0x1536)
99 #define COR_E_FORMAT                    EMAKEHR(0x1537)
100 #define COR_E_SAFEARRAYRANKMISMATCH     EMAKEHR(0x1538)
101 #define COR_E_PLATFORMNOTSUPPORTED      EMAKEHR(0x1539)
102 #define COR_E_INVALIDPROGRAM            EMAKEHR(0x153A)
103 #define COR_E_OPERATIONCANCELED         EMAKEHR(0x153B)
104 #define COR_E_INSUFFICIENTMEMORY        EMAKEHR(0x153D)
105 #define COR_E_RUNTIMEWRAPPED            EMAKEHR(0x153E)
106 #define COR_E_DEVICESNOTSUPPORTED       EMAKEHR(0x1540)
107 #define COR_E_DATAMISALIGNED            EMAKEHR(0x1541)
108 #define COR_E_KEYNOTFOUND               EMAKEHR(0x1577)
109 #define COR_E_APPLICATION               EMAKEHR(0x1600)
110 #define COR_E_INVALIDFILTERCRITERIA     EMAKEHR(0x1601)
111 #define COR_E_REFLECTIONTYPELOAD        EMAKEHR(0x1602)
112 #define COR_E_TARGET                    EMAKEHR(0x1603)
113 #define COR_E_TARGETINVOCATION          EMAKEHR(0x1604)
114 #define COR_E_CUSTOMATTRIBUTEFORMAT     EMAKEHR(0x1605)
115 #define COR_E_IO                        EMAKEHR(0x1620)
116 #define COR_E_FILELOAD                  EMAKEHR(0x1621)
117 #define COR_E_OBJECTDISPOSED            EMAKEHR(0x1622)
118 #define COR_E_FAILFAST                  EMAKEHR(0x1623)
119 #define COR_E_HOSTPROTECTION            EMAKEHR(0x1640)
120 #define COR_E_ILLEGAL_REENTRANCY        EMAKEHR(0x1641)
121
122 #define FUSION_E_PRIVATE_ASM_DISALLOWED EMAKEHR(0x1044)
123 #define FUSION_E_INVALID_NAME           EMAKEHR(0x1047)
124
125 #define CLDB_E_FILE_OLDVER              EMAKEHR(0x1107)
126
127 #define CLR_E_SHIM_RUNTIME              EMAKEHR(0x1700)
128 #define CLR_E_SHIM_RUNTIMEEXPORT        EMAKEHR(0x1701)
129
130 #endif  /* __WINE_CORERROR_H */