KsGetObjectTypeFromFileObject - NtDoc

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

KSDDKAPI KSOBJECTTYPE KsGetObjectTypeFromFileObject(
  [in] PFILE_OBJECT FileObject
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

KsGetObjectTypeFromFileObject function

Description

The KsGetObjectTypeFromFileObject function returns the AVStream object type that is associated with a given file object.

Parameters

FileObject [in]

A pointer to the FILE_OBJECT structure for which to determine the associated AVStream object type.

Return value

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.

Remarks

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.

See also

KsGetFilterFromFileObject

KsGetObjectFromFileObject

KsGetPinFromFileObject

KsPinGetConnectedPinFileObject