Previous Next

Event Handling in AVStream

In order to support events, an AVStream minidriver places a series of KSEVENT_ITEM structures in the automation table (see KSAUTOMATION_TABLE). User-mode components register to be notified of an event by sending an IOCTL_KS_ENABLE_EVENT to the device. In the event item structures, the AddHandler and RemoveHandler pointers may be NULL or non-NULL. To decide which is appropriate for your driver, see the comments section in KSEVENT_ITEM.