private TypeLibrary(string filePath, ComTypes.ITypeLib typeLib, TypeLibraries typeLibraries) { FilePath = filePath; Name = ComHelper.GetTypeLibName(typeLib); _typeLib = typeLib; _typeLibraries = typeLibraries; var libAttr = ComHelper.GetTypeLibAttr(typeLib); Guid = libAttr.guid; Hidden = libAttr.wLibFlags.HasFlag(ComTypes.LIBFLAGS.LIBFLAG_FHIDDEN) || libAttr.wLibFlags.HasFlag(ComTypes.LIBFLAGS.LIBFLAG_FRESTRICTED); Lcid = libAttr.lcid; MajorVersion = libAttr.wMajorVerNum; MinorVersion = libAttr.wMinorVerNum; CreateTypeInformation(); BuildMembers(); }
internal TypeLibrary(ComTypes.ITypeLib typeLib, TypeLibraries typeLibraries) : this("", typeLib, typeLibraries) { }
internal TypeLibrary(string filePath, TypeLibraries typeLibraries) : this(filePath, ComHelper.LoadTypeLibrary(filePath), typeLibraries) { }