IMSVidGraphSegmentContainer::get_Graph method (segment.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

The get_Graph method returns a pointer to the Filter Graph Manager.

Syntax

HRESULT get_Graph(
  [in] IGraphBuilder **ppGraph
);

Parameters

[in] ppGraph

Address of a variable that receives an IGraphBuilder interface pointer.

Return value

Returns S_OK if successful, or an HRESULT error code otherwise.

Remarks

Objects can use this method to find a specific DirectShow filter in the filter graph. It is not recommended that applications use this method. Applications should always control the filter graph using the Video Control.

The returned IGraphBuilder interface has an outstanding reference count. The caller must release the interface.

Examples


CComQIPtr<IMSVidGraphSegmentContainer> pSeg(m_pVideoControl);
if (pSeg)
{
    CComPtr<IGraphBuilder> pGraph;
    hr = pSeg->get_Graph(&pGraph);
    if (SUCCEEDED(hr))
    {
        // Use IGraphBuilder::EnumFilters to enumerate the filters.
    }
}

Requirements

   
Minimum supported client Windows�XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header segment.h (include Msvidctl.h)

See also

IMSVidGraphSegmentContainer Interface