PFNKSREMOVEEVENT - NtDoc

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

PFNKSREMOVEEVENT Pfnksremoveevent;

VOID Pfnksremoveevent(
  [in] PFILE_OBJECT FileObject,
  [in] _KSEVENT_ENTRY *EventEntry
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ks-pfnksremoveevent)

PFNKSREMOVEEVENT callback function

Description

An AVStream minidriver's AVStrMiniRemoveEvent routine is called when a client requests to be removed from the notification queue for an event. This routine is optional.

Parameters

FileObject [in]

Pointer to the file object for which to remove the event.

EventEntry [in]

Pointer to an AVStream-generated KSEVENT_ENTRY structure.

Remarks

The minidriver specifies this routine's address in the RemoveHandler member of a KSEVENT_ITEM structure. Event Handling in AVStream describes how the minidriver provides this structure to the class driver.

If the minidriver provides AVStrMiniRemoveEvent and either does not specify an AddHandler or specifies an AddHandler that calls KsXxxAddEvent, then the minidriver's AVStrMiniRemoveEvent must call RemoveEntryList with a pointer to the LIST_ENTRY structure in the KSEVENT_ENTRY structure:

&EventEntry -> ListEntry

Otherwise, your AVStrMiniRemoveEvent should reverse the steps taken in the AddHandler.

See also

AVStrMiniAddEvent

KSAUTOMATION_TABLE

KSEVENTDATA

KSEVENT_ENTRY

KSEVENT_ITEM

KsFilterAddEvent

KsFilterGenerateEvents

KsPinAddEvent

KsPinGenerateEvents