IWICBitmapDecoder::QueryCapability method

Retrieves the capabilities of the decoder based on the specified stream.

Syntax


HRESULT QueryCapability(
  [in]  IStream *pIStream,
  [out] DWORD   *pdwCapability
);

Parameters

pIStream [in]

Type: IStream*

The stream to retrieve the decoder capabilities from.

pdwCapability [out]

Type: DWORD*

The WICBitmapDecoderCapabilities of the decoder.

Return value

Type: HRESULT

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

Remarks

Custom decoder implementations should save the current position of the specified IStream, read whatever information is necessary in order to determine which capabilities it can provide for the supplied stream, and restore the stream position.

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

 

 

Show: