IMFMediaSource::GetCharacteristics Method

Retrieves the characteristics of the media source.

Syntax

public:
HRESULT GetCharacteristics(
         DWORD *pdwCharacteristics
)  

Parameters

pdwCharacteristics
Type: DWORD *

[out]

Receives a bitwise OR of zero or more flags from the MFMEDIASOURCE_CHARACTERISTICS enumeration.

Return value

Type: HRESULT 

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

Return codes
Return code Description
S_OK The method succeeded.
MF_E_SHUTDOWN The media source’s Shutdown method has been called.

Refer to Media Foundation return codes.

Remarks

The characteristics of a media source can change at any time. If this happens, the source sends an MESourceCharacteristicsChanged event.

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.