IWICImagingFactory::CreateQueryWriter method (wincodec.h)

Creates a new instance of a query writer.

Syntax

HRESULT CreateQueryWriter(
  [in]  REFGUID                 guidMetadataFormat,
  [in]  const GUID              *pguidVendor,
  [out] IWICMetadataQueryWriter **ppIQueryWriter
);

Parameters

[in] guidMetadataFormat

Type: REFGUID

The GUID for the desired metadata format.

[in] pguidVendor

Type: const GUID*

The GUID for the preferred metadata writer vendor. Use NULL if no preferred vendor.

[out] ppIQueryWriter

Type: IWICMetadataQueryWriter**

When this method returns, contains a pointer to a new IWICMetadataQueryWriter.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header wincodec.h
Library Windowscodecs.lib
DLL Windowscodecs.dll

See also

Conceptual

IWICImagingFactory

Metadata Query Language Overview

Overview of Reading and Writing Image Metadata

WIC GUIDs and CLSIDs

WIC Metadata Overview