KsDefaultAddEventHandler
TOC
Collapse the table of content
Expand the table of content

KsDefaultAddEventHandler function

The KsDefaultAddEventHandler function is a default routine to handle event 'add' requests.

Syntax


NTSTATUS KsDefaultAddEventHandler(
  _In_    PIRP           Irp,
  _In_    PKSEVENTDATA   EventData,
  _Inout_ PKSEVENT_ENTRY EventEntry
);

Parameters

Irp [in]

The event IRP. This contains the object into which the event is inserted.

EventData [in]

A pointer to a KSEVENTDATA structure that describes an event notification method.

EventEntry [in, out]

The event entry that is to be inserted into the object's event list. The object is determined by Irp.

Return value

Returns the success or failure of adding the event into the object's event list.

Remarks

KsDefaultAddEventHandler determines the relevant object from Irp and adds the specified event to the object's event list.

This is functionally equivalent to KsAddEvent (or KsXxxAddEvent, see below) for the object that is associated with Irp. Use KsDefaultAddEventHandler from a minidriver-specified AddEvent handler to insert the event into the object's event list.

Requirements

Target platform

Universal

Version

Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.

Header

Ks.h (include Ks.h)

Library

Ks.lib

IRQL

PASSIVE_LEVEL

See also

KsAddEvent
KsFilterAddEvent
KsPinAddEvent
KsGenerateEvents
KSEVENT_ENTRY

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft