FilterGraphTools.IsThisComObjectInstalled Method

DirectShowLib.Utils

A Managed DirectShow Toolkit

FilterGraphTools.IsThisComObjectInstalled Method 

Check if a COM Object is available

public static bool IsThisComObjectInstalled(
   Guid clsid
);

Parameters

clsid
The CLSID of this object

Return Value

true if the object is available, false if not

Example

This sample shows how to check if the MPEG-2 Demultiplexer filter is available

if (FilterGraphTools.IsThisComObjectInstalled(typeof(MPEG2Demultiplexer).GUID))
{
  // Use it...
}

See Also

FilterGraphTools Class | DirectShowLib.Utils Namespace