Exemple #1
0
        public virtual int Write(
            uint cProperties,
            out tagPROPBAG2 pPropBag,
            out tagVARIANT pvarValue
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_WriteFunc == null)
            {
                m_WriteFunc = (WriteFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(WriteFunc));
            }

            return(m_WriteFunc(m_ptr, cProperties, out pPropBag, out pvarValue));
        }
Exemple #2
0
        public virtual int GetField(
            IntPtr pvData,
            ref ushort szFieldName,
            out tagVARIANT pvarField
            )
        {
            var fp = GetFunctionPointer(10);

            if (m_GetFieldFunc == null)
            {
                m_GetFieldFunc = (GetFieldFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetFieldFunc));
            }

            return(m_GetFieldFunc(m_ptr, pvData, ref szFieldName, out pvarField));
        }
Exemple #3
0
        public virtual int PutFieldNoCopy(
            uint wFlags,
            IntPtr pvData,
            ref ushort szFieldName,
            out tagVARIANT pvarField
            )
        {
            var fp = GetFunctionPointer(13);

            if (m_PutFieldNoCopyFunc == null)
            {
                m_PutFieldNoCopyFunc = (PutFieldNoCopyFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(PutFieldNoCopyFunc));
            }

            return(m_PutFieldNoCopyFunc(m_ptr, wFlags, pvData, ref szFieldName, out pvarField));
        }
Exemple #4
0
        public virtual int Read(
            uint cProperties,
            out tagPROPBAG2 pPropBag,
            IErrorLog pErrLog,
            out tagVARIANT pvarValue,
            out int phrError
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_ReadFunc == null)
            {
                m_ReadFunc = (ReadFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ReadFunc));
            }

            return(m_ReadFunc(m_ptr, cProperties, out pPropBag, pErrLog != null ? pErrLog.Ptr : IntPtr.Zero, out pvarValue, out phrError));
        }
Exemple #5
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 #6
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));
        }