IMFSinkWriter::GetStatistics method
Gets statistics about the performance of the sink writer.
Syntax
HRESULT GetStatistics(
[in] DWORD dwStreamIndex,
[out] MF_SINK_WRITER_STATISTICS *pStats
);
Parameters
- dwStreamIndex [in]
-
The zero-based index of a stream to query, or MF_SINK_WRITER_ALL_STREAMS to query the media sink itself.
- pStats [out]
-
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
|
Minimum supported client |
Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|
See also