CDynamicOutputPin.SetConfigInfo method

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The SetConfigInfo method specifies the IGraphConfig pointer and the stop event.

Syntax

void SetConfigInfo(
   IGraphConfig *pGraphConfig,
   HANDLE       hStopEvent
);

Parameters

pGraphConfig

Pointer to the IGraphConfig interface, or NULL.

hStopEvent

Handle to an event that is signaled when the filter stops, or NULL.

Return value

This method does not return a value.

Remarks

The filter must call this method when it joins the filter graph. The filter graph manager supports IGraphConfig. For the hStopEvent parameter, create a manual-reset event. When the filter leaves the filter graph, call this method again with NULL for both parameters.

Requirements

Requirement Value
Header
Amfilter.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CDynamicOutputPin Class