Пример #1
0
 public int AddError(IntPtr pszPropName, ref EXCEPINFO pExcepInfo)
 {
     if (m_AddErrorFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_AddErrorFunc = (AddErrorFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(AddErrorFunc));
     }
     return(m_AddErrorFunc(m_ptr, pszPropName, ref pExcepInfo));
 }
Пример #2
0
 public int Invoke(int dispIdMember, ref Guid riid, uint lcid, ushort wFlags, ref DISPPARAMS pDispParams, ref VARIANT pVarResult, ref EXCEPINFO pExcepInfo, ref uint puArgErr)
 {
     if (m_InvokeFunc == null)
     {
         var fp = GetFunctionPointer(6);
         m_InvokeFunc = (InvokeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InvokeFunc));
     }
     return(m_InvokeFunc(m_ptr, dispIdMember, ref riid, lcid, wFlags, ref pDispParams, ref pVarResult, ref pExcepInfo, ref puArgErr));
 }
Пример #3
0
 public int Invoke(IntPtr pvInstance, int memid, ushort wFlags, ref DISPPARAMS pDispParams, ref VARIANT pVarResult, ref EXCEPINFO pExcepInfo, ref uint puArgErr)
 {
     if (m_InvokeFunc == null)
     {
         var fp = GetFunctionPointer(11);
         m_InvokeFunc = (InvokeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InvokeFunc));
     }
     return(m_InvokeFunc(m_ptr, pvInstance, memid, wFlags, ref pDispParams, ref pVarResult, ref pExcepInfo, ref puArgErr));
 }