Export (0) Print
Expand All

IWICComponentInfo::GetSpecVersion method

Retrieves the component's specification version.

Syntax


HRESULT GetSpecVersion(
  [in]      UINT  cchSpecVersion,
  [in, out] WCHAR *wzSpecVersion,
  [out]     UINT  *pcchActual
);

Parameters

cchSpecVersion [in]

Type: UINT

The size of the wzSpecVersion buffer.

wzSpecVersion [in, out]

Type: WCHAR*

When this method returns, contain a culture invarient string of the component's specification version. The version form is NN.NN.NN.NN.

pcchActual [out]

Type: UINT*

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

Return value

Type: HRESULT

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

Remarks

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

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

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]

Header

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft