private void Release() { if (m_ipAttr != IntPtr.Zero) { TypeLibResourceManager.GetDaemon().ReleaseTypeLibAttr(m_typelib, m_ipAttr); } m_typelib = null; }
public TypeAttr(ITypeInfo typeinfo) { m_typeInfo = typeinfo; m_ipTypeAttr = TypeLibResourceManager.GetDaemon().GetTypeAttr(typeinfo); m_typeAttr = (TYPEATTR)Marshal.PtrToStructure(m_ipTypeAttr, typeof(TYPEATTR)); }
public FuncDesc(int index, ITypeInfo typeinfo) { m_typeinfo = typeinfo; m_ipFuncDesc = TypeLibResourceManager.GetDaemon().GetFuncDesc(typeinfo, index); m_funcdesc = (FUNCDESC)Marshal.PtrToStructure(m_ipFuncDesc, typeof(FUNCDESC)); }
public VarDesc(ITypeInfo typeinfo, int index) { m_typeinfo = typeinfo; m_ipVarDesc = TypeLibResourceManager.GetDaemon().GetVarDesc(typeinfo, index); m_vardesc = (VARDESC)Marshal.PtrToStructure(m_ipVarDesc, typeof(VARDESC)); }
public TypeLibAttr(ITypeLib typelib) { m_typelib = typelib; m_ipAttr = TypeLibResourceManager.GetDaemon().GetTypeLibAttr(typelib); m_attr = (TYPELIBATTR)Marshal.PtrToStructure(m_ipAttr, typeof(TYPELIBATTR)); }