FilgraphManager.AddSourceFilter

Note  This topic is deprecated. It applies to Visual Basic 6.0. DirectShow is not supported for Visual Basic .NET or C#.

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

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 Value

This method does not return a value.

Examples

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

Requirements

Type Library

ActiveMovie control type library

DLL

Quartz.dll

See Also

FilgraphManager Object

 

 

Send comments about this topic to Microsoft

Build date: 8/31/2010