Search code examples
c#comunmanagedmanagedvtable

How to Call COM unmanaged code at Runtime from C#.NET using ITypeLib and ITypeInfo?


I need to call unmanaged COM code from C#.NET. By loading unmanaged COM Type libraries from (LoadTypeLibEx), I am able to iterate over all exposed types by COM TLB. I need to know the addresses to call those exposed methods at runtime or by accessing the COM vtable's starting address and apply indexing for getting addresses of those exposed methods under interfaces.


Solution

  • Just a suggestion:

    Create a proxy unmanaged COM server which will do that for you, by using only fixed set of methods, than use this proxy service from your c# application