To Get Writer Statistics

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The writer can provide statistical information about writing operations. There are two methods for gathering writer statistics: IWMWriterAdvanced::GetStatistics and IWMWriterAdvanced3::GetStatisticsEx. The information retrieved by GetStatisticsEx is more specific than the information retrieved by GetStatistics.

Both methods populate structures with statistical information. GetStatistics uses the WM_WRITER_STATISTICS structure, and GetStatisticsEx uses the WM_WRITER_STATISTICS_EX structure. GetStatisticsEx does not duplicate the data obtained by GetStatistics. For the most complete information, you should call both methods.

IWMWriterAdvanced Interface

IWMWriterAdvanced3 Interface

Writing ASF Files