示例#1
0
        public virtual int Clone(
            out IEnumSTATSTG ppenum
            )
        {
            var fp = GetFunctionPointer(6);

            if (m_CloneFunc == null)
            {
                m_CloneFunc = (CloneFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CloneFunc));
            }
            ppenum = new IEnumSTATSTG();
            return(m_CloneFunc(m_ptr, out ppenum.PtrForNew));
        }
示例#2
0
        public virtual int EnumElements(
            uint reserved1,
            IntPtr reserved2,
            uint reserved3,
            out IEnumSTATSTG ppenum
            )
        {
            var fp = GetFunctionPointer(11);

            if (m_EnumElementsFunc == null)
            {
                m_EnumElementsFunc = (EnumElementsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(EnumElementsFunc));
            }
            ppenum = new IEnumSTATSTG();
            return(m_EnumElementsFunc(m_ptr, reserved1, reserved2, reserved3, out ppenum.PtrForNew));
        }