Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 internal TypeLibrary(ComTypes.ITypeLib typeLib, TypeLibraries typeLibraries)
     : this("", typeLib, typeLibraries)
 {
 }
Ejemplo n.º 3
0
 internal TypeLibrary(string filePath, TypeLibraries typeLibraries)
     : this(filePath, ComHelper.LoadTypeLibrary(filePath), typeLibraries)
 {
 }