public virtual int Clone( out IEnumUnknown ppenum ) { var fp = GetFunctionPointer(6); if (m_CloneFunc == null) { m_CloneFunc = (CloneFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CloneFunc)); } ppenum = new IEnumUnknown(); return(m_CloneFunc(m_ptr, out ppenum.PtrForNew)); }
public virtual int CreateComponentEnumerator( uint componentTypes, uint options, out IEnumUnknown ppIEnumUnknown ) { var fp = GetFunctionPointer(23); if (m_CreateComponentEnumeratorFunc == null) { m_CreateComponentEnumeratorFunc = (CreateComponentEnumeratorFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateComponentEnumeratorFunc)); } ppIEnumUnknown = new IEnumUnknown(); return(m_CreateComponentEnumeratorFunc(m_ptr, componentTypes, options, out ppIEnumUnknown.PtrForNew)); }