WICGetMetadataContentSize function

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

guidContainerFormat [in]

Type: REFGUID

The container GUID.

pIWriter [in]

Type: IWICMetadataWriter*

The IWICMetadataWriter that contains the content.

pcbSize [out]

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

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1

Header

Wincodec.h

DLL

Windowscodecs.dll;
Wincodec.lib

 

 

Show: