IWICBitmapCodecInfo::MatchesMimeType method

Retrieves a value indicating whether the given mime type matches the mime type of the codec.

Syntax


HRESULT MatchesMimeType(
  [in]  LPCWSTR wzMimeType,
  [out] BOOL    *pfMatches
);

Parameters

wzMimeType [in]

Type: LPCWSTR

The mime type to compare.

pfMatches [out]

Type: BOOL*

Receives TRUE if the mime types match; otherwise, FALSE.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The operation was successful.

E_NOTIMPL

The codec does not implement this method.

 

Remarks

Note  The Windows provided codecs do not implement this method and return E_NOTIMPL.
 

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: