Bewerken

Delen via


KsAddEvent function (ks.h)

The KsAddEvent function adds an event to Object's event list.

Syntax

void KsAddEvent(
  [in] PVOID          Object,
  [in] PKSEVENT_ENTRY EventEntry
);

Parameters

[in] Object

The object to which to add the event.

[in] EventEntry

A pointer to an KSEVENT_ENTRY structure describing the event to add to Object.

Return value

None

Remarks

Minidrivers typically do not call this routine directly; instead, they use KsFilterAddEvent or KsPinAddEvent.

After events have been added to the event list, these events can be generated as data events by a KsXxxGenerateEvents call. Typecasting of the object (a filter or pin) to PVOID must be provided by the caller.

Requirements

Requirement Value
Minimum supported client Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib
IRQL PASSIVE_LEVEL

See also

KSEVENT_ENTRY

KsDefaultAddEventHandler

KsFilterAddEvent

KsGenerateEvents

KsPinAddEvent