Compartir a través de


CBaseFilter::NotifyEvent

 
Microsoft DirectShow 9.0

CBaseFilter::NotifyEvent

The NotifyEvent method sends an event notification to the filter graph manager.

Syntax

  HRESULT NotifyEvent(
    long EventCode,
    LONG_PTR EventParam1,
    LONG_PTR EventParam2
);

Parameters

EventCode

Event notification code.

EventParam1

First parameter of the event.

EventParam2

Second parameter of the event.

Return Value

Returns an HRESULT value. Possible values include those in the following table.

Value Description
S_FALSE The filter graph manager is not accepting event notifications.
S_OK Success.
E_NOTIMPL Filter does not have a pointer to the IMediaEventSink interface.

Remarks

For a list of notification codes and parameter values, see Event Notification Codes.

In the base class, if the event code is EC_COMPLETE, the method sets the EventParam2 parameter to a pointer to the filter's IBaseFilter interface.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also