예제 #1
0
        public virtual int Stat(
            out tagSTATSTG pstatstg,
            uint grfStatFlag
            )
        {
            var fp = GetFunctionPointer(12);

            if (m_StatFunc == null)
            {
                m_StatFunc = (StatFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(StatFunc));
            }

            return(m_StatFunc(m_ptr, out pstatstg, grfStatFlag));
        }
예제 #2
0
        public virtual int Next(
            uint celt,
            out tagSTATSTG rgelt,
            out uint pceltFetched
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_NextFunc == null)
            {
                m_NextFunc = (NextFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(NextFunc));
            }

            return(m_NextFunc(m_ptr, celt, out rgelt, out pceltFetched));
        }