ThirdPartyFilter_AddToList
function ThirdPartyFilter_AddToList (Location: TThirdPartyFilterList; GUIDString: string; OptionalDLLFilePath: string; FilterName: string; Enable: Boolean; CanSaveFilterState: Boolean): Boolean;
bool __fastcall ThirdPartyFilter_AddToList(TThirdPartyFilterList Location, System::UnicodeString GUIDString, System::UnicodeString OptionalDLLFilePath, System::UnicodeString FilterName, bool Enable, bool CanSaveFilterState);
public bool ThirdPartyFilter_AddToList(TThirdPartyFilterList Location, string GUIDString, string OptionalDLLFilePath, string FilterName, bool Enable, bool CanSaveFilterState);
Public Function ThirdPartyFilter_AddToList(Location As TThirdPartyFilterList, GUIDString As String, OptionalDLLFilePath As String, FilterName As String, Enable As Boolean, CanSaveFilterState As Boolean) As Boolean
BOOL ThirdPartyFilter_AddToList (TThirdPartyFilterList Location, wchar_t *GUIDString, wchar_t *OptionalDLLFilePath, wchar_t *FilterName, BOOL Enable, BOOL CanSaveFilterState);
Adds a third-party DirectShow filter to a TThirdPartyFilterList list.
Returns true if the filter has been added, false upon failure (e.g. if the filter is already in the list). The other ThirdPartyFilter... functions identify the filter by its Location and its GUIDString.
Parameters:
-
Location: TThirdPartyFilterList insertion point in the preview (or recording or playback) graph.
-
GUIDString: GUID of the filter to insert.
-
OptionalDLLFilePath: optional file path of the .AX or .DLL file of the filter. If specified, the filter is loaded directly from this file and does not need to be registered with regsvr32.exe.
-
FilterName: name string associated with the filter (any value).
-
Enable: enables or disables the filter for the next preview (or recording or playback).
-
CanSaveFilterState: if true, the filter state is saved in the registry and retrieved automatically for the next preview (or recording or playback).