KsDefaultAddEventHandler - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

KSDDKAPI NTSTATUS KsDefaultAddEventHandler(
  [in]      PIRP           Irp,
  [in]      PKSEVENTDATA   EventData,
  [in, out] PKSEVENT_ENTRY EventEntry
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksdefaultaddeventhandler)

KsDefaultAddEventHandler function

Description

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

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.

See also

KSEVENT_ENTRY

KsAddEvent

KsFilterAddEvent

KsGenerateEvents

KsPinAddEvent