Writer File Sink Object

[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 file sink object is used when writing Windows Media output to a file.

The writer file sink object is created by the function WMCreateWriterFileSink, which sets a pointer to an IWMWriterFileSink interface. The other interfaces of the writer file sink object can be obtained by calling the QueryInterface method.

The following interfaces are supported by the writer file sink object.

Interface Description
IWMRegisterCallback Enables the application to get status messages from the object.
IWMWriterFileSink Opens a file to which the writer object can write data.
IWMWriterFileSink2 Provides extended management of a file sink object. Inherits all of the methods of IWMWriterFileSink.
IWMWriterFileSink3 Provides additional options for writing files. Inherits all of the methods of IWMWriterFileSink and IWMWriterFileSink2.
IWMWriterSink Allocates memory, determines whether the sink is operating in real time, and handles several callback functions.

 

The following callback interface should be implemented by the application to track the progress of a writer file sink object.

Interface Description
IWMStatusCallback Required when status information must be communicated to the host application.

 

Objects

Working with Writer Sinks