IWICComponentInfo::GetVersion method (wincodec.h)

Retrieves the component's version.


HRESULT GetVersion(
  [in]      UINT  cchVersion,
  [in, out] WCHAR *wzVersion,
  [out]     UINT  *pcchActual


[in] cchVersion

Type: UINT

The size of the wzVersion buffer.

[in, out] wzVersion

Type: WCHAR*

A pointer that receives a culture invariant string of the component's version.

[out] pcchActual

Type: UINT*

A pointer that receives the actual length of the component's version. The version is optional; if a value is not specified by the component, the length returned is 0.

Return value


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


All built-in components return "", except for pixel formats, which do not have a version.

If cchAuthor is 0 and wzAuthor is NULL, the required buffer size is returned in pccchActual.


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