示例#1
0
        public virtual int GetTypeComp(
            out ITypeComp ppTComp
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_GetTypeCompFunc == null)
            {
                m_GetTypeCompFunc = (GetTypeCompFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetTypeCompFunc));
            }
            ppTComp = new ITypeComp();
            return(m_GetTypeCompFunc(m_ptr, out ppTComp.PtrForNew));
        }
示例#2
0
        public virtual int BindType(
            out ushort szName,
            uint lHashVal,
            out ITypeInfo ppTInfo,
            out ITypeComp ppTComp
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_BindTypeFunc == null)
            {
                m_BindTypeFunc = (BindTypeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(BindTypeFunc));
            }
            ppTInfo = new ITypeInfo(); ppTComp = new ITypeComp();
            return(m_BindTypeFunc(m_ptr, out szName, lHashVal, out ppTInfo.PtrForNew, out ppTComp.PtrForNew));
        }