MFSerializePresentationDescriptor function
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 |
|---|---|
|
The function succeeded. |
Remarks
To deserialize the presentation descriptor, pass the byte array to the MFDeserializePresentationDescriptor function.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also