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