// ks.h
KSDDKAPI KSOBJECTTYPE KsGetObjectTypeFromFileObject(
[in] PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI reference
No description available.
The KsGetObjectTypeFromFileObject function returns the AVStream object type that is associated with a given file object.
FileObject
[in]A pointer to the FILE_OBJECT structure for which to determine the associated AVStream object type.
KsGetObjectTypeFromFileObject returns the object type of the AVStream object associated with FileObject as a KSOBJECTTYPE enumeration. This can be one of the following: KsObjectTypeDevice, KsObjectTypeFilterFactory, KsObjectTypeFilter, or KsObjectTypePin.
The KsGetObjectTypeFromFileObject 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