Retrieves a value that indicates the merit of the DirectShow filter.
|C||HRESULT IltmmFilterEnum_get_Merit(pInput, Name, pValue)|
|C++||HRESULT get_Merit(Name, pValue)|
Pointer to an IltmmFilterEnum Interface.
Name is a string that can show either the Display Name or the Friendly Name of the filter. It is better to use Display Name since display names are unique. Two filters can be different and yet still have the same Friendly Name. When two Friendly Names are used, this function works on the first filter it internally enumerates with the specified friendly name.
Pointer to a variable to be updated with a value that represents the merit of a DirectShow filter.
|S_OK||The function was successful.|
|<> S_OK||An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.|
Merit values are used when building filter graphs. A DirectShow filter is enabled if its Merit is above 0x00200000. Otherwise it is disabled. For more information, refer to the Microsoft documentation for DirectShow Merit.
A Display Name uniquely identifies a DirectShow filter (or any filter). Display names for software filters have the following format:
For example, Microsoft MPEG-2 Splitter display name is:
Since a Friendly Name is not unique there can be more than one filter with the same name. Despite this, it is useful as a descriptive name in user interfaces. For example, the Friendly Name for Microsoft MPEG-2 Splitter is
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries