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