Freigeben über


IMFMediaTypeHandler::GetMediaTypeCount Method

Retrieves the number of media types in the object's list of supported media types.

Syntax

HRESULT GetMediaTypeCount(
  [out]  DWORD *pdwTypeCount
);

Parameter

  • pdwTypeCount [out]
    Receives the number of media types in the list.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Hinweise

To get the supported media types, call IMFMediaTypeHandler::GetMediaTypeByIndex.

For a media source, the media type handler for each stream must contain at least one supported media type. For media sinks, the media type handler for each stream might contain zero media types. In that case, the application must provide the medai type. To test whether a particular media type is supported, call IMFMediaTypeHandler::IsMediaTypeSupported.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP mit Service Pack 2 (SP2) und höher.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (Oktober 2006 Updaterollup für Windows XP Media Center Edition) installed.

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfidl.h

Bibliothek

Mfuuid.lib

Siehe auch

IMFMediaTypeHandler