Retrieves the characteristics of the media source.
public:
HRESULT GetCharacteristics(
DWORD *pdwCharacteristics
)
pdwCharacteristics
Type: DWORD *
[out]
Receives a bitwise OR of zero or more flags from the MFMEDIASOURCE_CHARACTERISTICS enumeration.
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| 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.
The characteristics of a media source can change at any time. If this happens, the source sends an MESourceCharacteristicsChanged event.
Header: Declared in mfidl.h.
Library: Use mfuuid.lib.