In unmanaged code I can use LoadTypeLib()
to obtain an ITypeLib*
pointer and use that to look into the typelib to find what interfaces it contains.
There is System.Runtime.InteropServices.ComTypes.ITypeLib
interface in C# but I can't find an equivalent to LoadTypeLib()
function.
How do I load a typelib and obtain an ITypeLib
reference in C#?
Copied straight from System.Design.NativeMethods, Reflector is useful: