Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The IFileSinkFilter2 Interfacereplaces this interface and inherits from it.

This interface is implemented on filters that write media streams to a file. A file sink filter in a video capture filter graph, for instance, writes the output of the video compression filter to a file. Typically, the application running this filter graph should enable the user to enter the name of the file to be written to. This interface enables the communication of this information.

If a filter needs the name of an output file, it should expose this interface to allow an application to set the file name. Note that there is currently no base class implementation of this interface.

Any application that must set the name of the file into which the file sink filter will write should use this interface to get and set the file name.

In addition to the methods inherited from IUnknown, the IFileSinkFilterinterface exposes the following methods.

Method Description

IFileSinkFilter::GetCurFile

Retrieves the name of the current file into which media samples will be written.

IFileSinkFilter::SetFileName

Sets the name of the file into which media samples will be written.

See Also