// ks.h
KSDDKAPI PVOID KsGetObjectFromFileObject(
[in] PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI reference
No description available.
The KsGetObjectFromFileObject function returns the AVStream object cast to PVOID from FileObject.
FileObject
[in]A pointer to the FILE_OBJECT structure for which to determine the associated AVStream object.
KsGetObjectFromFileObject returns a pointer to the AVStream object associated with FileObject (cast to PVOID). For example, this pointer may point to a KSFILTER or a KSPIN.
The KsGetObjectFromFileObject function does not check that the file object is associated with a KS object. If it is not, this may result in a memory access error. Driver developers should consider using structured exception handling to catch a possible exception.
KsPinGetConnectedPinFileObject