Skip to main content
IWMWriter interface

The IWMWriter interface is used to write ASF files. It includes methods for allocating buffers, setting and retrieving input properties, and setting profiles and output file names. The writer object exposes this interface. To create the writer object, call the WMCreateWriter function.

Members

The IWMWriter interface inherits from the IUnknown interface. IWMWriter also has these types of members:

Methods

The IWMWriter interface has these methods.

MethodDescription
AllocateSample

Allocates a buffer that the application can use to supply samples to the writer.

BeginWriting

Initializes the writing process.

EndWriting

Terminates the writing process.

Flush

Functionality removed. Always returns S_OK.

GetInputCount

Retrieves the number of uncompressed input streams.

GetInputFormat

Retrieves possible media formats for the specified input.

GetInputFormatCount

Retrieves the number of format types supported by this input on the writer.

GetInputProps

Retrieves the media properties of a specified input stream.

SetInputProps

Specifies the media properties of a specified input stream.

SetOutputFilename

Specifies the name of the file to be written.

SetProfile

Specifies the profile to use for the current writing task, using a pointer to an IWMProfile object.

SetProfileByID

Specifies the profile to use for the current writing task, identifying the profile by its globally unique identifier.

WriteSample

Passes in uncompressed data to be compressed and appended to the Windows Media file that is being created.

 

For information about which interfaces can be obtained by using the QueryInterface method of this interface, see Writer Object.

See also

Interfaces
IWMWriterAdvanced Interface
IWMWriterFileSink Interface
IWMWriterNetworkSink Interface
IWMWriterSink Interface
Writer Object
Writing ASF Files