WICSerializeMetadataContent function (wincodecsdk.h)

Writes metadata into a given stream.

Syntax

HRESULT WICSerializeMetadataContent(
  [in] REFGUID            guidContainerFormat,
  [in] IWICMetadataWriter *pIWriter,
  [in] DWORD              dwPersistOptions,
  [in] IStream            *pIStream
);

Parameters

[in] guidContainerFormat

Type: REFGUID

The container format GUID.

[in] pIWriter

Type: IWICMetadataWriter*

The metadata writer to write metadata to the stream.

[in] dwPersistOptions

Type: DWORD

The WICPersistOptions options to use when writing the metadata.

[in] pIStream

Type: IStream*

A pointer to the stream in which to write the metadata.

Return value

Type: HRESULT

If this function 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 wincodecsdk.h (include Wincodec.h)
Library Windowscodecs.lib
DLL Windowscodecs.dll