public int Stat(ref STATSTG pstatstg, uint grfStatFlag) { if (m_StatFunc == null) { var fp = GetFunctionPointer(9); m_StatFunc = (StatFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(StatFunc)); } return(m_StatFunc(m_ptr, ref pstatstg, grfStatFlag)); }
public int Next(uint celt, ref STATSTG rgelt, IntPtr pceltFetched) { if (m_NextFunc == null) { var fp = GetFunctionPointer(3); m_NextFunc = (NextFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(NextFunc)); } return(m_NextFunc(m_ptr, celt, ref rgelt, pceltFetched)); }