IMVSCSetFile

The IMVSCSetFile Interface from the MontiVision Smart Control  provides methods to change the file/folder for file source/sink filter and MV Batch File Source filter. The methods reconnect the filter graph to work with the new files. Therefore the filter graph must have the state:  STATE_STOP to change the files/folder.

Methods:

GetBatchFolder Get the current folder from a batch file source filter.
GetSinkFile Get the current file path from a file sink filter.
GetSourceFile Get the current file path from a file source filter.
SetBatchFolder Set the folder for a batch file source filter.
SetSinkFile Set a new file for a file sink filter.
SetSourceFile Set a new file for a file source filter.

Typelib: MV SMartControl


Method IMVSCSetFile::GetBatchFolder

Declaration: Function GetBatchFolder(Filter As String) As String

Get the current folder from a batch file source filter.

Parameter:

Filter MV Batch File Source filter label within the filter graph configuration.
Prototype:

HRESULT GetBatchFolder(BSTR Filter, BSTR* value);


Method IMVSCSetFile::GetSinkFile

Declaration: Function GetSinkFile(Filter As String) As String

Get the current file path from a file sink filter.

Parameter:

Filter File sink filter label within the filter graph configuration.
Prototype:

HRESULT GetSinkFile(BSTR Filter, BSTR* value);


Method IMVSCSetFile::GetSourceFile

Declaration: Function GetSourceFile(Filter As String) As String

Get the current file path from a file source filter.

Parameter:

Filter File source filter label within the filter graph configuration.
Prototype:

HRESULT GetSourceFile(BSTR Filter, BSTR* value);


Method IMVSCSetFile::SetBatchFolder

Declaration: Sub SetBatchFolder(Filter As String, Folder As String)

Set the folder for a batch file source filter.

Parameter:

Filter MV Batch File Source filter label within the filter graph configuration.
Folder New folder path.
Prototype:

HRESULT SetBatchFolder(BSTR Filter, BSTR Folder);


Method IMVSCSetFile::SetSinkFile

Declaration: Sub SetSinkFile(Filter As String, Path As String)

Set a new file for a file sink filter.

Parameter:

Filter File sink filter label within the filter graph configuration.
Path New file path.
Prototype:

HRESULT SetSinkFile(BSTR Filter, BSTR Path);


Method IMVSCSetFile::SetSourceFile

Declaration: Sub SetSourceFile(Filter As String, Path As String)

Set a new file for a file source filter.

Parameter:

Filter File source filter label within the filter graph configuration.
Path New file path.
Prototype:

HRESULT SetSourceFile(BSTR Filter, BSTR Path);