Layout of the Registry Keys
DirectShow filters are registered in two places:
- The DLL that contains the filter is registered as the filter's COM server. When an application calls CoCreateInstance to create the filter, the Microsoft Windows COM library uses this registry entry to locate the DLL.
- Additional information about the filter can be registered within a filter category. This information enables the System Device Enumerator and the Filter Mapper to locate the filter.
Filters are not required to register the additional filter information. As long as the DLL is registered as the COM server, an application can create the filter and add it to a filter graph. However, if you want your filter to be discoverable by the System Device Enumerator or the Filter Mapper, you must register the additional information.
The registry entry for the DLL has the following keys:
HKEY_CLASSES_ROOT CLSID Filter CLSID REG_SZ: (Default) = Friendly name InprocServer32 REG_SZ: (Default) = File name of the DLL REG_SZ: ThreadingModel = Both
The registry entry for the filter information has the following keys:
HKEY_CLASSES_ROOT CLSID Category Instance Filter CLSID REG_SZ: CLSID = Filter CLSID REG_BINARY: FilterData = Filter information REG_SZ: FriendlyName = Friendly name
All of the filter category GUIDs are listed in the registry under the following key: