WICGetMetadataContentSize function (wincodecsdk.h)

Returns the size of the metadata content contained by the specified IWICMetadataWriter. The returned size accounts for the header and the length of the metadata.

Syntax

HRESULT WICGetMetadataContentSize(
  [in]  REFGUID            guidContainerFormat,
  [in]  IWICMetadataWriter *pIWriter,
  [out] ULARGE_INTEGER     *pcbSize
);

Parameters

[in] guidContainerFormat

Type: REFGUID

The container GUID.

[in] pIWriter

Type: IWICMetadataWriter*

The IWICMetadataWriter that contains the content.

[out] pcbSize

Type: ULARGE_INTEGER*

A pointer that receives the size of the metadata content.

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