// ks.h
typedef struct {
ULONG EventId;
ULONG DataInput;
ULONG ExtraEntryData;
PFNKSADDEVENT AddHandler;
PFNKSREMOVEEVENT RemoveHandler;
PFNKSHANDLER SupportHandler;
} KSEVENT_ITEM, *PKSEVENT_ITEM;
View the official Windows Driver Kit DDI referenceNo description available.
The KSEVENT_ITEM structure describe a minidriver's support for a specific event within an event set.
EventIdSpecifies the unique ID of the event within the event set.
DataInputSpecifies the size in bytes of event data. The event data begins with a KSEVENTDATA structure that describes how the client should be notified when the event occurs, optionally followed by any additional parameters that specify when the event occurs. Must be at least sizeof(KSEVENTDATA).
ExtraEntryDataSpecifies the size in bytes of any additional memory that the system should allocate for each enable request for this event. The driver uses this memory to store any data it needs to keep track of the event request. The memory is allocated directly after the event enable request's KSEVENT_ENTRY structure.
AddHandlerPointer to a minidriver-supplied AVStrMiniAddEvent callback routine. Not used by the stream class driver. For AVStream minidrivers only.
RemoveHandlerPointer to a minidriver-supplied AVStrMiniRemoveEvent callback routine. Not used by the stream class driver. For AVStream minidrivers only.
SupportHandlerNot used by the stream class driver.
A minidriver that specifies the AddHandler and RemoveHandler members and does not properly clean the events up can cause a resource (memory/handle) leak.