Previous | Next |
The GetStatistics method retrieves statistics describing the current writing operation.
Syntax
HRESULT GetStatistics(
WORD wStreamNum,
WM_WRITER_STATISTICS* pStats
);
Parameters
wStreamNum
[in] Word containing the stream number.
pStats
[out] Pointer to a WM_WRITER_STATISTICS object.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Remarks
To get statistics, pass in a WM_WRITER_STATISTICS structure, which will be filled out by the GetStatistics() call with the requested statistics. Pass in a stream number to get statistics for a specific stream, or pass 0 to get statistics for the entire Windows Media file.
Stream numbers may only be in the range of 1-64.
See Also
Previous | Next |