Condividi tramite


IMediaEvent::CancelDefaultHandling

 
Microsoft DirectShow 9.0

IMediaEvent::CancelDefaultHandling

The CancelDefaultHandling method cancels the Filter Graph Manager's default handling for a specified event. The event notification is passed to the application.

Syntax

  HRESULT CancelDefaultHandling(
  long lEvCode
);

Parameters

lEvCode

Event code for which to cancel default handling.

Return Values

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

Return code Description
S_OK Success.
E_INVALIDARG No default handling for this event.

Remarks

To restore the default handling for an event, call the IMediaEvent::RestoreDefaultHandling method with the event code.

Requirements

Header: Declared in Control.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also