Exemple #1
0
        public virtual int Invoke(
            IntPtr pvInstance,
            int memid,
            ushort wFlags,
            out tagDISPPARAMS pDispParams,
            out tagVARIANT pVarResult,
            out tagEXCEPINFO pExcepInfo,
            out uint puArgErr
            )
        {
            var fp = GetFunctionPointer(11);

            if (m_InvokeFunc == null)
            {
                m_InvokeFunc = (InvokeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InvokeFunc));
            }

            return(m_InvokeFunc(m_ptr, pvInstance, memid, wFlags, out pDispParams, out pVarResult, out pExcepInfo, out puArgErr));
        }
Exemple #2
0
        public virtual int Invoke(
            int dispIdMember,
            ref Guid riid,
            uint lcid,
            ushort wFlags,
            out tagDISPPARAMS pDispParams,
            out tagVARIANT pVarResult,
            out tagEXCEPINFO pExcepInfo,
            out uint puArgErr
            )
        {
            var fp = GetFunctionPointer(6);

            if (m_InvokeFunc == null)
            {
                m_InvokeFunc = (InvokeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InvokeFunc));
            }

            return(m_InvokeFunc(m_ptr, dispIdMember, ref riid, lcid, wFlags, out pDispParams, out pVarResult, out pExcepInfo, out puArgErr));
        }