internal static string GetNameOfLib(ComTypes.ITypeLib typeLib) { string name; string strDocString; int dwHelpContext; string strHelpFile; typeLib.GetDocumentation(-1, out name, out strDocString, out dwHelpContext, out strHelpFile); return name; }
internal static void GetInfoFromType(ComTypes.ITypeInfo typeInfo, out string name, out string documentation) { int dwHelpContext; string strHelpFile; typeInfo.GetDocumentation(-1, out name, out documentation, out dwHelpContext, out strHelpFile); }
/// <summary> /// Gets the name of the method or property defined by funcdesc /// </summary> /// <param name="typeinfo">ITypeInfo interface of the type</param> /// <param name="funcdesc">FuncDesc of property of method</param> /// <returns>name of the method or property</returns> internal static string GetNameFromFuncDesc(COM.ITypeInfo typeinfo, COM.FUNCDESC funcdesc) { //Get the method or property name. String strName, strDoc, strHelp; int id; typeinfo.GetDocumentation(funcdesc.memid, out strName, out strDoc, out id, out strHelp); return strName; }