MFSerializePresentationDescriptor function (mfidl.h)

Serializes a presentation descriptor to a byte array.

Syntax

HRESULT MFSerializePresentationDescriptor(
  IMFPresentationDescriptor *pPD,
  DWORD                     *pcbData,
  BYTE                      **ppbData
);

Parameters

pPD

Pointer to the IMFPresentationDescriptor interface of the presentation descriptor to serialize.

pcbData

Receives the size of the ppbData array, in bytes.

ppbData

Receives a pointer to an array of bytes containing the serialized presentation descriptor. The caller must free the memory for the array by calling CoTaskMemFree.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The function succeeded.

Remarks

To deserialize the presentation descriptor, pass the byte array to the MFDeserializePresentationDescriptor function.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfplat.lib
DLL Mfplat.dll

See also

IMFPresentationDescriptor

Media Foundation Functions