IMFSinkWriter::GetStatistics method (mfreadwrite.h)
Gets statistics about the performance of the sink writer.
Syntax
HRESULT GetStatistics(
[in] DWORD dwStreamIndex,
[out] MF_SINK_WRITER_STATISTICS *pStats
);
Parameters
[in] dwStreamIndex
The zero-based index of a stream to query, or MF_SINK_WRITER_ALL_STREAMS to query the media sink itself.
[out] pStats
A pointer to an MF_SINK_WRITER_STATISTICS structure. Before calling the method, set the cb member to the size of the structure in bytes. The method fills the structure with statistics from the sink writer.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
Invalid stream number. |
Remarks
This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfreadwrite.h |