Windows Media Format SDK banner art
PreviousNext

IWMWriter::Flush

The Flush method clears the writer of data, leaving the writer prepared to run again for the next WriteSample method call.

Syntax

HRESULT Flush();

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Meaning
E_UNEXPECTED The method failed for an unspecified reason.
NS_E_INVALID_STATE The writer cannot currently be run.

Remarks

This method flushes the writer, and closes the output file. This closes server connections, creates indexes, or does whatever else is needed to cleanly shut down the application.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.