示例#1
0
        public virtual int GetMetadataQueryReader(
            out IWICMetadataQueryReader ppIMetadataQueryReader
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_GetMetadataQueryReaderFunc == null)
            {
                m_GetMetadataQueryReaderFunc = (GetMetadataQueryReaderFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetMetadataQueryReaderFunc));
            }
            ppIMetadataQueryReader = new IWICMetadataQueryReader();
            return(m_GetMetadataQueryReaderFunc(m_ptr, out ppIMetadataQueryReader.PtrForNew));
        }
示例#2
0
        public virtual int CreateQueryWriterFromReader(
            IWICMetadataQueryReader pIQueryReader,
            ref Guid pguidVendor,
            out IWICMetadataQueryWriter ppIQueryWriter
            )
        {
            var fp = GetFunctionPointer(27);

            if (m_CreateQueryWriterFromReaderFunc == null)
            {
                m_CreateQueryWriterFromReaderFunc = (CreateQueryWriterFromReaderFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateQueryWriterFromReaderFunc));
            }
            ppIQueryWriter = new IWICMetadataQueryWriter();
            return(m_CreateQueryWriterFromReaderFunc(m_ptr, pIQueryReader != null ? pIQueryReader.Ptr : IntPtr.Zero, ref pguidVendor, out ppIQueryWriter.PtrForNew));
        }