Ejemplo n.º 1
0
 public int Write(uint cProperties, ref PROPBAG2 pPropBag, ref VARIANT pvarValue)
 {
     if (m_WriteFunc == null)
     {
         var fp = GetFunctionPointer(4);
         m_WriteFunc = (WriteFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(WriteFunc));
     }
     return(m_WriteFunc(m_ptr, cProperties, ref pPropBag, ref pvarValue));
 }
Ejemplo n.º 2
0
 public int GetPropertyInfo(uint iProperty, uint cProperties, ref PROPBAG2 pPropBag, IntPtr pcProperties)
 {
     if (m_GetPropertyInfoFunc == null)
     {
         var fp = GetFunctionPointer(6);
         m_GetPropertyInfoFunc = (GetPropertyInfoFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetPropertyInfoFunc));
     }
     return(m_GetPropertyInfoFunc(m_ptr, iProperty, cProperties, ref pPropBag, pcProperties));
 }
Ejemplo n.º 3
0
 public int Read(uint cProperties, ref PROPBAG2 pPropBag, IntPtr pErrLog, ref VARIANT pvarValue, ref int phrError)
 {
     if (m_ReadFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_ReadFunc = (ReadFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ReadFunc));
     }
     return(m_ReadFunc(m_ptr, cProperties, ref pPropBag, pErrLog, ref pvarValue, ref phrError));
 }