public static bool RenderPin(IGraphBuilder graphBuilder, IBaseFilter source, string pinName) { int hr = 0; if (graphBuilder.IsNull()) { throw new ArgumentNullException("graphBuilder"); } if (source.IsNull()) { throw new ArgumentNullException("source"); } IPin pin = DsFindPin.ByName(source, pinName); if (pin.NotNull()) { hr = graphBuilder.Render(pin); Marshal.ReleaseComObject(pin); return(hr >= 0); } return(false); }