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