// ks.h
KSDDKAPI PKSFILTER KsGetFilterFromIrp(
[in] PIRP Irp
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsGetFilterFromIrp function returns the AVStream filter object associated with a given IRP.
Irp [in]A pointer to the IRP structure for which to return the associated filter.
KsGetFilterFromIrp returns either a pointer to the KSFILTER structure associated with Irp or NULL. NULL indicates that Irp is not associated with an AVStream object.
KsGetFilterFromIrp is valid for filters, pins, and nodes.