CBaseRenderer.SendNotifyWindow 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 SendNotifyWindow method notifies the upstream filter of the video window handle.

Syntax

void SendNotifyWindow(
   IPin *pPin,
   HWND hwnd
);

Parameters

pPin

Pointer to the IPin interface of the upstream filter's output pin.

hwnd

Handle to the video window, or NULL.

Return value

This method does not return a value.

Remarks

If the output pin of the upstream filter supports the IMediaEventSink interface, this method sends it the EC_NOTIFY_WINDOW event code along with the window handle.

Video renderers can override their CBaseRenderer::CompleteConnect methods to call this method. It provides a mechanism for informing the upstream filter of the window handle. If you do this, override the CBaseRenderer::BreakConnect method as well, and call SendNotifyWindow with a NULL handle.

Requirements

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

See also

CBaseRenderer Class