Freigeben über


MFCreatePresentationDescriptor Function

Creates a presentation descriptor.

Syntax

HRESULT MFCreatePresentationDescriptor(
  DWORD cStreamDescriptors,
  IMFStreamDescriptor **apStreamDescriptors,
  IMFPresentationDescriptor **ppPresentationDescriptor
);

Parameter

  • cStreamDescriptors
    Number of elements in the apStreamDescriptors array.

  • apStreamDescriptors
    Array of IMFStreamDescriptor interface pointers. Each pointer represents a stream descriptor for one stream in the presentation.

  • ppPresentationDescriptor
    Receives a pointer to an IMFPresentationDescriptor interface of the presentation descriptor. The caller must release the interface.

Rückgabewert

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

Hinweise

If you are writing a custom media source, you can use this function to create the source presentation descriptor. The presentation descriptor is created with no streams selected. Generally, a media source should select at least one stream by default. To select a stream, call IMFPresentationDescriptor::SelectStream.

This function 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

Mfplat.lib

DLL

Mfplat.dll

Siehe auch

Media Foundation Functions

Presentation Descriptors