Microsoft DirectX 9.0

FilgraphManager.AddSourceFilter

The AddSourceFilter method adds a source filter to the filter graph, for a specified file.

Syntax

objGraph.AddSourceFilter(
    strFileName As String, 
    ByRef objFilterInfo As IFilterInfo) 

Parameters

strFileName

Specifies the name of the file to load.

objFilterInfo

Variable that receives an IFilterInfo object representing the source filter.

Return Values

This method does not return a value.

Example Code

Dim objFilter As IFilterInfo
mGraph.AddSourceFilter "C:\MyVideo.avi", objFilter

See Also