Windows Media Format SDK banner art
PreviousNext

IWMWriter::BeginWriting

The BeginWriting method initializes the writing process.

Syntax

HRESULT BeginWriting();

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_OUTOFMEMORY There is not enough available memory.
E_UNEXPECTED The method failed for an unspecified reason.

Remarks

BeginWriting must be called before writing any samples. This method does not actually start writing, but initializes the process. Between this call and the call to EndWriting there can be no configuration changes to the writer.

EndWriting must be called to cleanly end the writing of the samples.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.