Sie sind auf Seite 1von 7

// // // // //

These error codes have been taken from the OLE header files and sorted into numerical order. The comments too come from the OLE header files. This list is provided as a convenience for interpreting OLE error codes when functions fail. 0x00000000 0x00000001 0x00030200 0x00040000 // all interfaces 0x00040000 // use the reg databas 0x00040001 // success, but static // macintosh clipboard

#define S_OK #define S_FALSE #define STG_S_CONVERTED #define OLE_S_FIRST #define OLE_S_USEREG e to provide the requested info #define OLE_S_STATIC

#define OLE_S_MAC_CLIPFORMAT 0x00040002 format #define OLE_S_LAST 0x000400FF #define DRAGDROP_S_DROP 0x00040100 #define DRAGDROP_S_CANCEL 0x00040101 #define DRAGDROP_S_USEDEFAULTCURSORS 0x00040102 #define CLASSFACTORY_S_FIRST 0x00040110 #define CLASSFACTORY_S_LAST 0x0004011F #define MARSHAL_S_FIRST 0x00040120 alInfo, marshal APIs #define MARSHAL_S_LAST 0x0004012F #define DATA_S_SAMEFORMATETC 0x00040130 #define DATA_S_FIRST 0x00040130 #define DATA_S_LAST 0x0004013F #define VIEW_S_FIRST 0x00040140 #define VIEW_S_LAST 0x0004014F #define REGDB_S_FIRST 0x00040150 n API #define REGDB_S_LAST 0x0004015F #define CACHE_S_FORMATETC_NOTSUPPORTED 0x00040170 #define CACHE_S_FIRST 0x00040170 #define CACHE_S_SAMECACHE 0x00040171 #define CACHE_S_SOMECACHES_NOTUPDATED 0x00040172 #define CACHE_S_LAST 0x0004017F #define OLEOBJ_S_FIRST 0x00040180 #define OLEOBJ_S_CANNOT_DOVERB_NOW 0x00040181 #define OLEOBJ_S_INVALIDHWND 0x00040182 #define OLEOBJ_S_LAST 0x0004018F #define CLIENTSITE_S_FIRST 0x00040190 #define CLIENTSITE_S_LAST 0x0004019F #define INPLACE_S_FIRST 0x000401A0 aceObject,IOleInPlaceActiveObject #define INPLACE_S_TRUNCATED 0x000401A0 , some of it had to be truncated before displaying #define INPLACE_S_LAST 0x000401AF ,IOleInPlaceFrame,IOleInPlaceSite #define ENUM_S_FIRST 0x000401B0 #define ENUM_S_LAST 0x000401BF #define CONVERT10_S_FIRST 0x000401C0 ToIStorage, OleConvertIStorageToOLESTREAM #define CONVERT10_S_NO_PRESENTATION 0x000401C0 API, the original object had no presentation #define CONVERT10_S_LAST 0x000401CF #define CLIPBRD_S_FIRST 0x000401D0 eGetClipboard, OleFlushClipboard #define CLIPBRD_S_LAST 0x000401DF

// IClassFactory // IMarshal, IStdMarsh

// IDataObject // IViewObject // reg.dat manipulatio

// IOleCache

// IOleObject

// IOleClientSite // IOleWindow,IOleInPl // Message is too long // IOleInPlaceUIWindow // IEnum* // OleConvertOLESTREAM // Returned by either // OleSetClipboard, Ol

#define MK_S_FIRST 0x000401E0 // IMoniker, IBindCtx, IRunningObjectTable, IParseDisplayName #define MK_S_REDUCED_TO_SELF 0x000401E2 #define MK_S_ME 0x000401E4 #define MK_S_HIM 0x000401E5 #define MK_S_US 0x000401E6 #define MK_S_MONIKERALREADYREGISTERED 0x000401E7 #define MK_S_LAST 0x000401EF // IOleContainer, IOle ItemContainer, IOleLink #define CO_S_FIRST 0x000401F0 // all Co* API #define CO_S_LAST 0x000401FF #define E_NOTIMPL 0x80000001 // not implemented #define E_OUTOFMEMORY 0x80000002 // ran out of memory #define E_INVALIDARG 0x80000003 // one or more argumen ts are invalid #define E_NOINTERFACE 0x80000004 // no such interface s upported #define E_POINTER 0x80000005 // invalid pointer #define E_HANDLE 0x80000006 // invalid handle #define E_ABORT 0x80000007 // operation aborted #define E_FAIL 0x80000008 // unspecified error #define E_ACCESSDENIED 0x80000009 // general access deni ed error #define E_UNEXPECTED 0x8000FFFF // relatively catastro phic failure #define RPC_E_CALL_REJECTED 0x80010001 // call was rejected b y callee #define RPC_E_CALL_CANCELED 0x80010002 // call was canceld by call - returned by MessagePending #define RPC_E_CANTPOST_INSENDCALL 0x80010003 // the caller is dispa tching an intertask SendMessage call and can NOT call out via PostMessage #define RPC_E_CANTCALLOUT_INASYNCCALL 0x80010004 // the caller is dispa tching an asynchronus call can NOT make an outgoing call on behalf of this call #define RPC_E_CANTCALLOUT_INEXTERNALCALL 0x80010005 // the caller is not i n a state where an outgoing call can be made #define RPC_E_CONNECTION_TERMINATED 0x80010006 // the connection term inated or is in a bogus state #define RPC_E_SERVER_DIED 0x80010007 // the callee (server [not server application]) is not available #define RPC_E_CLIENT_DIED 0x80010008 // the caller (client) disappeared while the callee (server) was processing a call #define RPC_E_INVALID_DATAPACKET 0x80010009 // the date paket with the marshalled parameter data is incorrect #define RPC_E_CANTTRANSMIT_CALL 0x8001000A // the call was not tr ansmitted properly; the message queue was full and was not emptied after yieldin g #define RPC_E_CLIENT_CANTMARSHAL_DATA 0x8001000B // the client (caller) can not marshall the parameter data #define RPC_E_CLIENT_CANTUNMARSHAL_DATA 0x8001000C // the client (caller) can not unmarshall the return data #define RPC_E_SERVER_CANTMARSHAL_DATA 0x8001000D // the server (caller) can not unmarshall the parameter data #define RPC_E_SERVER_CANTUNMARSHAL_DATA 0x8001000E // the server (caller) can not marshall the return data - low memory #define RPC_E_INVALID_DATA 0x8001000F // received data are i nvalid; can be server or client data #define RPC_E_INVALID_PARAMETER 0x80010010 // a particular parame ter is invalid and can not be un/marshalled #define RPC_E_CANTCALLOUT_AGAIN 0x80010011 // DDE conversation no second outgoing call on same channel

#define cured #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define

RPC_E_UNEXPECTED DISP_E_UNKNOWNINTERFACE DISP_E_MEMBERNOTFOUND DISP_E_PARAMNOTFOUND DISP_E_TYPEMISMATCH DISP_E_UNKNOWNNAME DISP_E_NONAMEDARGS DISP_E_BADVARTYPE DISP_E_EXCEPTION DISP_E_OVERFLOW DISP_E_BADINDEX DISP_E_UNKNOWNLCID DISP_E_ARRAYISLOCKED DISP_E_BADPARAMCOUNT DISP_E_PARAMNOTOPTIONAL DISP_E_BADCALLEE DISP_E_NOTACOLLECTION TYPE_E_BUFFERTOOSMALL TYPE_E_INVDATAREAD TYPE_E_UNSUPFORMAT TYPE_E_REGISTRYACCESS TYPE_E_LIBNOTREGISTERED TYPE_E_UNDEFINEDTYPE TYPE_E_QUALIFIEDNAMEDISALLOWED TYPE_E_INVALIDSTATE TYPE_E_WRONGTYPEKIND TYPE_E_ELEMENTNOTFOUND TYPE_E_AMBIGUOUSNAME TYPE_E_NAMECONFLICT TYPE_E_UNKNOWNLCID TYPE_E_DLLFUNCTIONNOTFOUND TYPE_E_BADMODULEKIND TYPE_E_SIZETOOBIG TYPE_E_DUPLICATEID TYPE_E_TYPEMISMATCH TYPE_E_OUTOFBOUNDS TYPE_E_IOERROR TYPE_E_CANTCREATETMPFILE TYPE_E_CANTLOADLIBRARY TYPE_E_INCONSISTENTPROPFUNCS TYPE_E_CIRCULARTYPE STG_E_INVALIDFUNCTION STG_E_FILENOTFOUND STG_E_PATHNOTFOUND STG_E_TOOMANYOPENFILES STG_E_ACCESSDENIED STG_E_INVALIDHANDLE STG_E_INSUFFICIENTMEMORY STG_E_INVALIDPOINTER STG_E_NOMOREFILES STG_E_DISKISWRITEPROTECTED STG_E_SEEKERROR STG_E_WRITEFAULT STG_E_READFAULT STG_E_SHAREVIOLATION STG_E_LOCKVIOLATION STG_E_FILEALREADYEXISTS STG_E_INVALIDPARAMETER STG_E_MEDIUMFULL

0x8001FFFF // a internal error oc 0x80020001 0x80020003 0x80020004 0x80020005 0x80020006 0x80020007 0x80020008 0x80020009 0x8002000A 0x8002000B 0x8002000C 0x8002000D 0x8002000E 0x8002000F 0x80020010 0x80020011 0x80028016 0x80028018 0x80028019 0x8002801C 0x8002801D 0x80028027 0x80028028 0x80028029 0x8002802A 0x8002802B 0x8002802C 0x8002802D 0x8002802E 0x8002802F 0x800288BD 0x800288C5 0x800288C6 0x80028CA0 0x80028CA1 0x80028CA2 0x80028CA3 0x80029C4A 0x80029C83 0x80029C84 0x80030001 0x80030002 0x80030003 0x80030004 0x80030005 0x80030006 0x80030008 0x80030009 0x80030012 0x80030013 0x80030019 0x8003001D 0x8003001E 0x80030020 0x80030021 0x80030050 0x80030057 0x80030070

#define STG_E_ABNORMALAPIEXIT 0x800300FA #define STG_E_INVALIDHEADER 0x800300FB #define STG_E_INVALIDNAME 0x800300FC #define STG_E_UNKNOWN 0x800300FD #define STG_E_UNIMPLEMENTEDFUNCTION 0x800300FE #define STG_E_INVALIDFLAG 0x800300FF #define STG_E_INUSE 0x80030100 #define STG_E_NOTCURRENT 0x80030101 #define STG_E_REVERTED 0x80030102 #define STG_E_CANTSAVE 0x80030103 #define STG_E_OLDFORMAT 0x80030104 #define STG_E_OLDDLL 0x80030105 #define STG_E_SHAREREQUIRED 0x80030106 #define STG_E_NOTFILEBASEDSTORAGE 0x80030107 #define STG_E_EXTANTMARSHALLINGS 0x80030108 #define OLE_E_FIRST 0x80040000 #define OLE_E_OLEVERB 0x80040000 ucture #define OLE_E_ADVF 0x80040001 s #define OLE_E_ENUM_NOMORE 0x80040002 any more, because the associated data is missing #define OLE_E_ADVISENOTSUPPORTED 0x80040003 doesn't take advises #define OLE_E_NOCONNECTION 0x80040004 ion for this connection id #define OLE_E_NOTRUNNING 0x80040005 to perform this operation #define OLE_E_NOCACHE 0x80040006 o operate on #define OLE_E_BLANK 0x80040007 t #define OLE_E_CLASSDIFF 0x80040008 rce class has changed #define OLE_E_CANT_GETMONIKER 0x80040009 moniker of the object #define OLE_E_CANT_BINDTOSOURCE 0x8004000A the source #define OLE_E_STATIC 0x8004000B peration not allowed #define OLE_E_PROMPTSAVECANCELLED 0x8004000C of save dialog #define OLE_E_INVALIDRECT 0x8004000D #define OLE_E_WRONGCOMPOBJ 0x8004000E old for the ole2.dll initialized #define OLE_E_INVALIDHWND 0x8004000F le #define OLE_E_NOT_INPLACEACTIVE 0x80040010 y of the inplace active states #define OLE_E_CANTCONVERT 0x80040011 the object #define OLE_E_NOSTORAGE 0x80040012 the operation because object is not given storage yet. #define DVGEN_E_FIRST 0x80040064 ight move to FACILITY_NULL #define DV_E_FORMATETC 0x80040064 tructure #define DV_E_DVTARGETDEVICE 0x80040065 ICE structure #define DV_E_STGMEDIUM 0x80040066

// all interfaces // invalid OLEVERB str // invalid advise flag // you can't enuemrate // this implementation // there is no connect // need run the object // there is no cache t // Uninitialized objec // linked object's sou // not able to get the // not able to bind to // object is static, o // user cancelled out // invalid rectangle // compobj.dll is too // invalid window hand // object is not in an // not able to convert // not able to perform // (OLE_E_FIRST+100) M // invalid FORMATETC s // invalid DVTARGETDEV // invalid STDGMEDIUM

structure #define DV_E_STATDATA ructure #define DV_E_LINDEX #define DV_E_TYMED #define DV_E_CLIPFORMAT ormat #define DV_E_DVASPECT #define DV_E_DVTARGETDEVICE_SIZE the DVTARGETDEVICE structure is invalid #define DV_E_NOIVIEWOBJECT ort IViewObject interface #define OLE_E_LAST #define DRAGDROP_E_FIRST arget #define DRAGDROP_S_FIRST arget #define DRAGDROP_E_INVALIDHWND #define DRAGDROP_E_ALREADYREGISTERED eady been registered as a drop target #define DRAGDROP_E_NOTREGISTERED drop target that has not been registered #define DRAGDROP_E_LAST #define DRAGDROP_S_LAST #define CLASS_E_NOAGGREGATION ort aggregation (or class object is remote) #define CLASSFACTORY_E_FIRST #define CLASS_E_CLASSNOTAVAILABLE that class (returned from DllGetClassObject) #define CLASSFACTORY_E_LAST #define MARSHAL_E_FIRST alInfo, marshal APIs #define MARSHAL_E_LAST #define DATA_E_FIRST #define DATA_E_LAST #define VIEW_E_DRAW #define VIEW_E_FIRST #define VIEW_E_LAST #define REGDB_E_FIRST n API #define REGDB_E_READREGDB the registration database #define REGDB_E_WRITEREGDB the registration database #define REGDB_E_KEYMISSING the registration database #define REGDB_E_INVALIDVALUE the registration database #define REGDB_E_CLASSNOTREG the registration database #define REGDB_E_IIDNOTREG the registration database #define REGDB_E_LAST #define CACHE_E_NOCACHE_UPDATED #define CACHE_E_FIRST #define CACHE_E_LAST #define OLEOBJ_E_NOVERBS #define OLEOBJ_S_INVALIDVERB #define OLEOBJ_E_FIRST #define OLEOBJ_E_INVALIDVERB

0x80040067 // invalid STATDATA st 0x80040068 // invalid lindex 0x80040069 // invalid tymed 0x8004006A // invalid clipboard f 0x8004006B // invalid aspect(s) 0x8004006C // tdSize paramter of 0x8004006D // object doesn't supp 0x800400FF 0x80040100 // IDropSource, IDropT 0x80040100 // IDropSource, IDropT 0x80040100 // invalid HWND 0x80040100 // this window has alr 0x80040100 // trying to revoke a 0x8004010F 0x8004010F 0x80040110 // class does not supp 0x80040110 // IClassFactory 0x80040111 // dll doesn't support 0x8004011F 0x80040120 // IMarshal, IStdMarsh 0x8004012F 0x80040130 // IDataObject 0x8004013F 0x80040140 0x80040140 // IViewObject 0x8004014F 0x80040150 // reg.dat manipulatio 0x80040150 // some error reading 0x80040151 // some error reading 0x80040152 // some error reading 0x80040153 // some error reading 0x80040154 // some error reading 0x80040155 // some error reading 0x8004015F 0x80040170 0x80040170 // IOleCache 0x8004017F 0x80040180 0x80040180 0x80040180 // IOleObject 0x80040181

#define OLEOBJ_E_LAST 0x8004018F #define CLIENTSITE_E_FIRST 0x80040190 // IOleClientSite #define CLIENTSITE_E_LAST 0x8004019F #define INPLACE_E_FIRST 0x800401A0 // IOleWindow,IOleInPl aceObject,IOleInPlaceActiveObject #define INPLACE_E_NOTUNDOABLE 0x800401A0 // undo is not avaiabl e #define INPLACE_E_NOTOOLSPACE 0x800401A1 // Space for tools is not available #define INPLACE_E_LAST 0x800401AF // IOleInPlaceUIWindow ,IOleInPlaceFrame,IOleInPlaceSite #define ENUM_E_FIRST 0x800401B0 // IEnum* #define ENUM_E_LAST 0x800401BF #define CONVERT10_E_FIRST 0x800401C0 // OleConvertOLESTREAM ToIStorage, OleConvertIStorageToOLESTREAM #define CONVERT10_E_OLESTREAM_GET 0x800401C0 // OLESTREAM Get metho d failed #define CONVERT10_E_OLESTREAM_PUT 0x800401C1 // OLESTREAM Put metho d failed #define CONVERT10_E_OLESTREAM_FMT 0x800401C2 // Contents of the OLE STREAM not in correct format #define CONVERT10_E_OLESTREAM_BITMAP_TO_DIB 0x800401C3 // There was in an err or in a Windows GDI call while converting the bitmap to a DIB #define CONVERT10_E_STG_FMT 0x800401C4 // Contents of the ISt orage not in correct format #define CONVERT10_E_STG_NO_STD_STREAM 0x800401C5 // Contents of IStorag e is missing one of the standard streams ("\1CompObj", "\1Ole", "\2OlePres000") #define CONVERT10_E_STG_DIB_TO_BITMAP 0x800401C6 // There was in an err or in a Windows GDI call while converting the DIB to a bitmap #define CONVERT10_E_LAST 0x800401CF #define CLIPBRD_E_FIRST 0x800401D0 // OleSetClipboard, Ol eGetClipboard, OleFlushClipboard #define CLIPBRD_E_CANT_OPEN 0x800401D0 // OpenClipboard Faile d #define CLIPBRD_E_CANT_EMPTY 0x800401D1 // EmptyClipboard Fail ed #define CLIPBRD_E_CANT_SET 0x800401D2 // SetClipboard Failed #define CLIPBRD_E_BAD_DATA 0x800401D3 // Data on clipboard i s invalid #define CLIPBRD_E_CANT_CLOSE 0x800401D4 // OpenClipboard Faile d #define CLIPBRD_E_LAST 0x800401DF #define MK_E_CONNECTMANUALLY 0x800401E0 #define MK_E_FIRST 0x800401E0 // IMoniker, IBindCtx, IRunningObjectTable, IParseDisplayName #define MK_E_EXCEEDEDDEADLINE 0x800401E1 #define MK_E_NEEDGENERIC 0x800401E2 #define MK_E_UNAVAILABLE 0x800401E3 #define MK_E_SYNTAX 0x800401E4 #define MK_E_NOOBJECT 0x800401E5 #define MK_E_INVALIDEXTENSION 0x800401E6 #define MK_E_INTERMEDIATEINTERFACENOTSUPPORTED 0x800401E7 #define MK_E_NOTBINDABLE 0x800401E8 #define MK_E_NOTBOUND 0x800401E9 // called IBindCtx->Re vokeObjectBound for an object which was not bound #define MK_E_CANTOPENFILE 0x800401EA #define MK_E_MUSTBOTHERUSER 0x800401EB #define MK_E_NOINVERSE 0x800401EC #define MK_E_NOSTORAGE 0x800401ED #define MK_E_NOPREFIX 0x800401EE

#define MK_E_LAST 0x800401EF // IOleContainer, IOle ItemContainer, IOleLink #define CO_E_FIRST 0x800401F0 // all Co* API #define CO_E_NOTINITIALIZED 0x800401F0 // CoInitialize has no t been called and must be #define CO_E_ALREADYINITIALIZED 0x800401F1 // CoInitialize has al ready been called and cannot be called again (temporary) #define CO_E_CANTDETERMINECLASS 0x800401F2 // can't determine cls id (e.g., extension not in reg.dat) #define CO_E_CLASSSTRING 0x800401F3 // the string form of the clsid is invalid (including ole1 classes) #define CO_E_IIDSTRING 0x800401F4 // the string form of the iid is invalid #define CO_E_APPNOTFOUND 0x800401F5 // application not fou nd #define CO_E_APPSINGLEUSE 0x800401F6 // application cannot be run more than once #define CO_E_ERRORINAPP 0x800401F7 // some error in the a pp program file #define CO_E_DLLNOTFOUND 0x800401F8 // dll not found #define CO_E_ERRORINDLL 0x800401F9 // some error in the d ll file #define CO_E_WRONGOSFORAPP 0x800401FA // app written for oth er version of OS or other OS altogether #define CO_E_OBJNOTREG 0x800401FB // object is not regis tered #define CO_E_OBJISREG 0x800401FC // object is already r egistered #define CO_E_OBJNOTCONNECTED 0x800401FD // handler is not conn ected to server #define CO_E_APPDIDNTREG 0x800401FE // app was launched, b ut didn't registered a class factory #define CO_E_LAST 0x800401FF #define FACILITY_NULL 0 // generally useful errors ([SE ]_*) #define FACILITY_RPC 1 // remote procedure call errors (RPC_E_*) #define FACILITY_DISPATCH 2 // late binding dispatch errors #define FACILITY_STORAGE 3 // storage errors (STG_E_*) #define FACILITY_ITF 4 // interface-specific errors // ========= END OF FILE OLE_ERRS.TXT =========