// ks.h
PKSFILTER KsGetFilterFromFileObject(
[in] PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI reference
No description available.
The KsGetFilterFromFileObject function returns the AVStream filter object associated with FileObject.
FileObject
[in]A pointer to the FILE_OBJECT for which to return the associated AVStream filter object.
KsGetFilterFromFileObject returns a pointer to the KSFILTER structure associated with FileObject.
It is the responsibility of the minidriver to verify that FileObject is a file object associated with an AVStream filter. Do this by calling KsGetObjectTypeFromFileObject before calling KsGetFilterFromFileObject.
KsGetFilterFromFileObject is an inline call to KsGetObjectFromFileObject. The difference is that KsGetFilterFromFileObject typecasts the return as type pointer to a KSFILTER structure.