KsGetFilterFromFileObject - NtDoc

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

PKSFILTER KsGetFilterFromFileObject(
  [in] PFILE_OBJECT FileObject
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksgetfilterfromfileobject)

KsGetFilterFromFileObject function

Description

The KsGetFilterFromFileObject function returns the AVStream filter object associated with FileObject.

Parameters

FileObject [in]

A pointer to the FILE_OBJECT for which to return the associated AVStream filter object.

Return value

KsGetFilterFromFileObject returns a pointer to the KSFILTER structure associated with FileObject.

Remarks

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.

See also

KsGetDeviceForDeviceObject

KsGetObjectFromFileObject

KsGetObjectTypeFromFileObject