IMFPresentationDescriptor::GetStreamDescriptorCount Method

Retrieves the number of stream descriptors in the presentation. Each stream descriptor contains information about one stream in the media source. To retrieve a stream descriptor, call the IMFPresentationDescriptor::GetStreamDescriptorByIndex method.

Syntax

public:
HRESULT GetStreamDescriptorCount(
         DWORD *pdwDescriptorCount
)  

Parameters

pdwDescriptorCount
Type: DWORD *

[out]

Receives the number of stream descriptors.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Refer to Media Foundation return codes.

Remarks

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.