Windows error 0x800288BD, -2147317571

Detailed Error Information

TYPE_E_BADMODULEKIND[1]

MessageWrong module kind for the operation.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode2 (0x002)
NameFACILITY_DISPATCH[2][1]
DescriptionThe source of the error code is a COM Dispatch.[2][1]
Error Code35005 (0x88bd)

Questions

3votes
1answer

Why Exception occured getting address of COM function?

I am getting the address of a COM function by loading type library (TLB) and iterating over types using ITypeLib and ITypeInfo. After calling the AddressOfMember function of ITypeInfo I am facing the following exception: > System.Runtime.InteropServices.COMException (0x800288BD): Wrong module kind > for the operation. (Exception from HRESULT: 0x800288BD (TYPE_E_BADMODULEKIND)) [...] read more
c#
com
interop
vtable
typelib

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0