KsAddEvent function

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

Syntax


void KsAddEvent(
  _In_ PVOID          Object,
  _In_ PKSEVENT_ENTRY EventEntry
);

Parameters

Object [in]

The object to which to add the event.

EventEntry [in]

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

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

KsFilterAddEvent
KsPinAddEvent
KsDefaultAddEventHandler
KsGenerateEvents
KSEVENT_ENTRY

 

 

Send comments about this topic to Microsoft

Show: